forked from aws-deadline/deadline-cloud-test-fixtures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
executable file
·194 lines (164 loc) · 4.13 KB
/
pyproject.toml
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 = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "deadline-cloud-test-fixtures"
description = "This package contains pytest fixtures that are used to test AWS Deadline Cloud Python packages."
authors = [
{name = "Amazon Web Services"},
]
dynamic = ["version"]
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.9"
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
]
# Note: All deps should be using >= since this is a *library*. Applications that
# consume this library should be the ones that are more strictly limiting dependencies
# if they want/need to.
dependencies = [
"boto3 >= 1.34.75,<2.0",
# boto3 depends on botocore, but we're finding that if we leave botocore to be resolved
# transitively then resolving the dependency closure of this package in conjunction with
# other test dependencies in other packages can result in it taking 20+ minutes to resolve
# dependencies in Python3.9. So, we explicitly include the botocore dependency here.
"botocore >= 1.34.75"
]
[project.urls]
Homepage = "https://github.com/aws-deadline/deadline-cloud-test-fixtures"
Source = "https://github.com/aws-deadline/deadline-cloud-test-fixtures"
[project.entry-points.pytest11]
deadline_test_fixtures = "deadline_test_fixtures.fixtures"
[tool.hatch.build]
artifacts = [
"*_version.py",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
version_scheme = "post-release"
[tool.hatch.build.hooks.vcs]
version-file = "_version.py"
[tool.hatch.build.hooks.custom]
path = "hatch_version_hook.py"
[[tool.hatch.build.hooks.custom.copy_map]]
sources = [
"_version.py",
]
destinations = [
"src/deadline_test_fixtures",
]
[tool.hatch.build.targets.sdist]
include = [
"src/*",
"hatch_version_hook.py",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/deadline_test_fixtures"
]
[tool.mypy]
check_untyped_defs = true
show_error_codes = true
pretty = true
files = [ "src/**/*.py" ]
[[tool.mypy.overrides]]
module = [
"boto3",
"botocore.*"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "moto"
ignore_missing_imports = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
ignore = [
"E501",
]
[tool.ruff.lint.isort]
known-first-party = [
"deadline_test_fixtures"
]
[tool.black]
line-length = 100
[tool.pytest.ini_options]
xfail_strict = true
addopts = [
"--durations=5",
"--cov=src/deadline_test_fixtures",
"--color=yes",
"--cov-report=html:build/coverage",
"--cov-report=xml:build/coverage/coverage.xml",
"--cov-report=term-missing",
"--numprocesses=auto",
]
testpaths = [ "test" ]
looponfailroots = [
"src",
"test",
]
# looponfailroots is deprecated, this removes the deprecation from the test output
filterwarnings = [
"ignore::DeprecationWarning"
]
[tool.coverage.run]
source_pkgs = [ "deadline_test_fixtures" ]
omit = [
"models.py",
"fixtures.py",
"deadline/stubs.py",
]
[tool.coverage.paths]
source = [
"src/"
]
[tool.coverage.report]
show_missing = true
[tool.semantic_release]
# Can be removed or set to true once we are v1
major_on_zero = false
tag_format = "{version}"
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = []
patch_tags = [
"chore",
"feat",
"fix",
"refactor",
]
[tool.semantic_release.publish]
upload_to_vcs_release = false
[tool.semantic_release.changelog]
template_dir = ".semantic_release"
[tool.semantic_release.changelog.environment]
trim_blocks = true
lstrip_blocks = true
[tool.semantic_release.branches.release]
match = "(mainline|release)"