-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (144 loc) · 3.59 KB
/
pyproject.toml
File metadata and controls
161 lines (144 loc) · 3.59 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling>=1.27"]
[project]
name = "batou"
description = "A utility for automating multi-host, multi-environment software builds and deployments."
readme = "README.md"
keywords = ["deployment"]
license = "BSD-2-Clause"
authors = [{ name = "Christian Theune", email = "ct@flyingcircus.io" }]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
version = "2.8.0.dev0"
dependencies = [
"ConfigUpdater>=3.2",
"Jinja2>=3.1.4",
"execnet>=1.8.1",
"py>=1.11.0",
"pyyaml",
"remote-pdb",
"requests",
"setuptools>=66.1.0",
]
[project.urls]
Homepage = "https://batou.readthedocs.io/en/latest/"
Repository = "https://github.com/flyingcircusio/batou"
[project.scripts]
batou = "batou.main:main"
[project.entry-points."zc.buildout"]
requirements = "batou.buildout:Requirements"
[project.entry-points."batou.provisioners"]
fc-nixos-dev-container = "batou.provision:FCDevContainer"
fc-nixos-dev-vm = "batou.provision:FCDevVM"
# PEP 735
[dependency-groups]
dev = [
"scriv",
"tox",
"tox-uv-bare",
{ include-group = "test" },
]
test = [
"mock",
"pytest",
"pytest-cov",
"pytest-instafail",
"pytest-timeout",
]
docs = [
"furo",
"recommonmark",
"sphinx",
"sphinx-copybutton",
]
lint = [
"pre-commit",
"ruff",
]
release = [
"zest.releaser",
]
[tool.ruff]
line-length = 80
exclude = [
"appenv.py",
"examples/errors/components/component5/component.py",
]
[tool.ruff.lint]
select = ["I"]
ignore = [
"F401", # imported but unused
"E501", # line too long
]
[tool.pytest.ini_options]
testpaths = ["src"]
addopts = [
"-W", "error",
"--timeout=120",
"--tb=native",
"--instafail",
"--import-mode=importlib",
]
markers = [
"slow: This is a slow test.",
]
[tool.tox]
env_list = ["3.10", "3.11", "3.12", "3.13", "3.14"]
skip_missing_interpreters = true
allowlist_externals = ["git"]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
package = "wheel"
setenv = { APPENV_BEST_PYTHON = "{envpython}", IN_TOX_TEST = "1"}
dependency_groups = ["test"]
commands = [["pytest", { replace = "posargs", extend = true }]]
[tool.tox.env.cov]
base_python = [ "3.14" ]
package = "wheel"
runner = "uv-venv-lock-runner"
setenv = { APPENV_BEST_PYTHON = "{envpython}" }
dependency_groups = [ "test" ]
description = "Tests for newest supported Python version with coverage"
commands = [
[ "pytest", "--cov=src/batou", "--cov-report=html" ],
]
[tool.tox.env.pre-commit]
description = "This env runs all linters configured in .pre-commit-config.yaml"
skip_install = true
dependency_groups = ["lint"]
commands = [
["pre-commit", "run", "--all-files", "--show-diff-on-failure"]
]
[tool.scriv]
format = "md"
fragment_directory = "CHANGES.d"
output_file = "CHANGES.md"
version = "unreleased"
entry_title_template = ""
new_fragment_template = "- New changelog entry."
insert_marker = "- Nothing changed yet."
categories = ""
[tool.hatch.build.targets.sdist]
include = ["/src", "/README.md", "/LICENSE"]
[tool.hatch.build.targets.wheel]
packages = ["src/batou"]
artifacts = [
"src/batou/init-template/**/*",
"src/batou/tests/fixture/**/*",
"src/batou/secrets/tests/fixture/**/*",
"src/batou/lib/resources/**/*",
"src/batou/insecure-private.key",
"src/batou/**/*.txt",
"src/batou/**/*.in",
"src/batou/**/*.key",
]