-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (98 loc) · 2.76 KB
/
pyproject.toml
File metadata and controls
118 lines (98 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[project]
name = "temply"
version = "0.8.2-dev"
description = "Render jinja2 templates on the command line with shell environment variables."
authors = [
{ name = "Adrien Mannocci", email = "adrien.mannocci@gmail.com" }
]
license = { text = "Apache-2.0" }
readme = "README.md"
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.12,<3.14"
dependencies = [
"click>=8.4.1", # BSD
"jinja2>=3.1.4", # BSD
"PyYAML>=6.0.2", # MIT
]
[project.urls]
Repository = "https://github.com/techcode-io/temply"
Documentation = "https://github.com/techcode-io/temply"
Changelog = "https://github.com/techcode-io/temply/CHANGELOG.md"
Tracker = "https://github.com/techcode-io/temply/issues"
[project.scripts]
temply = "temply.cli:main"
[build-system]
requires = ["uv_build>=0.11.17,<0.12.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"poethepoet>=0.46.0", # MIT
"pre-commit>=4.6.0", # MIT
"pyinstaller>=6.20.0", # GPL-2.0: https://pyinstaller.org/en/stable/license.html
"pytest>=9.0.3", # MIT
"ruff>=0.15.15", # MIT
"sh>=2.1.0", # MIT
]
[tool.poe.tasks."env:configure"]
help = "Setup project environment."
script = "scripts.env:configure"
[tool.poe.tasks."env:wipe"]
shell = """
import shutil
for path in ["build", "dist"]:
try:
shutil.rmtree(path)
except FileNotFoundError:
print(f"Skipping {path} deletion...")
"""
help = "Wipe project environment."
interpreter = "python"
[tool.poe.tasks."project:upgrade"]
help = "Upgrade project dependencies."
sequence = [
{ cmd = "uv sync -U" },
{ cmd = "pre-commit autoupdate" },
]
[tool.poe.tasks.generate]
help = "Generate configuration files."
script = "scripts.generate:run"
[tool.poe.tasks.lint]
help = "Lint code project."
cmd = "ruff check src"
[tool.poe.tasks.fmt]
help = "Format code project."
sequence = [
{ cmd = "ruff check --select I --fix" },
{ cmd = "ruff format" },
]
[tool.poe.tasks.build]
deps = ["env:wipe"]
help = "Build standalone binary."
script = "scripts.build:run"
[tool.poe.tasks.test]
help = "Run all tests."
cmd = "pytest tests"
[tool.poe.tasks."package:deb"]
control.expr = "sys.platform"
help = "Build debian packages."
[[tool.poe.tasks."package:deb".switch]]
case = "linux"
script = "scripts.package:deb"
[tool.poe.tasks."package:rpm"]
control.expr = "sys.platform"
help = "Build rpm packages."
[[tool.poe.tasks."package:rpm".switch]]
case = "linux"
script = "scripts.package:rpm"
[tool.poe.tasks."release:pre"]
help = "Create a PR with changes for release."
script = "scripts.release:pre"
[tool.poe.tasks."release"]
help = "Create a new temply release."
script = "scripts.release:run"
[tool.poe.tasks."release:post"]
help = "Prepare next iteration."
script = "scripts.release:post"