-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
194 lines (171 loc) · 4.34 KB
/
pyproject.toml
File metadata and controls
194 lines (171 loc) · 4.34 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
[build-system]
requires = [
"wheel",
"setuptools>=50.3.2",
"setuptools_scm[toml]>=3.4",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/saltext/dockermod/version.py"
write_to_template = "__version__ = \"{version}\"\n"
[project]
name = "saltext.dockermod"
description = "Salt Extension for interacting with Dockermod"
authors = [
{name = "Marek Czernek", email = "marek.czernek@suse.com"},
]
keywords = [
"salt-extension",
]
license = {text = "Apache Software License"}
classifiers = [
"Programming Language :: Python",
"Programming Language :: Cython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
]
requires-python = ">= 3.10"
dynamic = ["version"]
dependencies = [
"salt>=3006",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/salt-extensions/saltext-dockermod"
Source = "https://github.com/salt-extensions/saltext-dockermod"
Tracker = "https://bugzilla.opensuse.org"
[project.optional-dependencies]
changelog = ["towncrier==25.8.0"]
dev = [
"nox[uv]>=2024.3,!=2025.05.01",
"pre-commit>=2.21.0",
]
# These dependencies are used in automations. It can be helpful
# to have them installed in the dev venv, e.g. for editor integration.
# When initializing the dev env using the included automation, pass
# `--extras` to install them automatically.
dev_extra = [
"black==26.1.0",
"isort==7.0.0",
"coverage==7.13.2",
]
docs = [
"sphinx",
"sphinx-prompt",
"sphinxcontrib-spelling",
"sphinx-copybutton",
"towncrier==25.8.0",
"sphinxcontrib-towncrier",
"myst_parser",
"furo",
"sphinx-inline-tabs",
]
docsauto = ["sphinx-autobuild"]
lint = [
"pylint==4.0.4",
]
tests = [
"pytest>=7.2.0",
"pytest-salt-factories>=1.0.0; sys_platform == 'win32'",
"pytest-salt-factories[docker]>=1.0.0; sys_platform != 'win32'",
"pytest-instafail",
]
[project.entry-points."salt.loader"]
"saltext.dockermod" = "saltext.dockermod"
[tool.uv]
# Salt's legacy setup.py requires old setuptools.
# Since uv 0.6.0, it does not fall back to reading requirements from egg-info.
build-constraint-dependencies = ["setuptools<69"]
[tool.setuptools]
zip-safe = false
include-package-data = true
platforms = ["any"]
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests"]
[tool.distutils.bdist_wheel]
# Use this option if your package is pure-python
universal = 1
[tool.distutils.sdist]
owner = "root"
group = "root"
[tool.build_sphinx]
source_dir = "docs"
build_dir = "build/sphinx"
[tool.black]
line-length = 100
[tool.isort]
force_single_line = true
skip = ["src/saltext/dockermod/__init__.py"]
profile = "black"
line_length = 100
[tool.towncrier]
package = "saltext.dockermod"
filename = "CHANGELOG.md"
template = "changelog/.template.jinja"
directory = "changelog/"
start_string = "# Changelog\n"
underlines = ["", "", ""]
title_format = "## {version} ({project_date})"
issue_format = "[#{issue}](https://bugzilla.opensuse.org/{issue})"
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "security"
name = "Security"
showcontent = true
# While we currently don't use ruff for linting, it's helpful to include
# these settings in case a user has setup ruff in their editor environment.
[tool.ruff]
builtins = [
"__opts__",
"__salt__",
"__pillar__",
"__grains__",
"__context__",
"__runner__",
"__ret__",
"__env__",
"__low__",
"__states__",
"__lowstate__",
"__running__",
"__active_provider_name__",
"__master_opts__",
"__jid_event__",
"__instance_id__",
"__salt_system_encoding__",
"__proxy__",
"__serializers__",
"__reg__",
"__executors__",
"__events__",
]