Skip to content

Commit d745c94

Browse files
committed
Setuptools shenanigans 2
1 parent 6f59f59 commit d745c94

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.pyproject_generation/pyproject_template.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=69"]
2+
requires = ["setuptools>=80.3"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -10,7 +10,7 @@ authors = [
1010
requires-python = ">=3.9"
1111
license = { text = "Apache 2.0" }
1212
classifiers = [
13-
"Development Status :: 1 - Planning",
13+
"Development Status :: 5 - Production/Stable",
1414
"Operating System :: POSIX :: Linux",
1515
"Programming Language :: Python :: 3",
1616
"Programming Language :: Python :: 3.12",
@@ -40,6 +40,7 @@ fixable = [
4040
"UP", # e.g. List -> list
4141
"I", # sort imports
4242
"D", # pydocstyle
43+
"RUF022", # sort items in __all__
4344
]
4445
ignore = [
4546
"E111", # indentation with invalid multiple (for formatter)
@@ -59,6 +60,7 @@ ignore = [
5960
"D206", # indent-with-spaces (for formatter)
6061
"D300", # triple-single-quotes (for formatter)
6162
"UP040", # type statement (not yet supported by mypy)
63+
"PLC0206", # Extracting value from dictionary without calling `.items()`
6264
]
6365
select = [
6466
"C90", # McCabe Complexity
@@ -99,8 +101,9 @@ check_untyped_defs = true
99101
no_site_packages = false
100102

101103
[tool.pytest.ini_options]
102-
minversion = "8.0"
104+
minversion = "8.3"
103105
asyncio_mode = "strict"
106+
asyncio_default_fixture_loop_scope = "function"
104107

105108
[tool.coverage.paths]
106109
source = [

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ RUN apk add build-base gcc g++ libffi-dev zlib-dev
4646
RUN apk upgrade --available
4747
WORKDIR /service
4848
COPY --from=builder /service/lock/requirements.txt /service
49-
RUN pip install --no-deps -r requirements.txt
49+
RUN pip install -U "setuptools>=80.3" && pip install --no-deps -r requirements.txt
5050

5151
# RUNNER: a container to run the service
5252
FROM base AS runner

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=69",
3+
"setuptools>=80.3",
44
]
55
build-backend = "setuptools.build_meta"
66

@@ -11,7 +11,7 @@ authors = [
1111
]
1212
requires-python = ">=3.9"
1313
classifiers = [
14-
"Development Status :: 1 - Planning",
14+
"Development Status :: 5 - Production/Stable",
1515
"Operating System :: POSIX :: Linux",
1616
"Programming Language :: Python :: 3",
1717
"Programming Language :: Python :: 3.12",
@@ -69,6 +69,7 @@ fixable = [
6969
"UP",
7070
"I",
7171
"D",
72+
"RUF022",
7273
]
7374
ignore = [
7475
"E111",
@@ -88,6 +89,7 @@ ignore = [
8889
"D206",
8990
"D300",
9091
"UP040",
92+
"PLC0206",
9193
]
9294
select = [
9395
"C90",
@@ -147,8 +149,9 @@ check_untyped_defs = true
147149
no_site_packages = false
148150

149151
[tool.pytest.ini_options]
150-
minversion = "8.0"
152+
minversion = "8.3"
151153
asyncio_mode = "strict"
154+
asyncio_default_fixture_loop_scope = "function"
152155

153156
[tool.coverage.paths]
154157
source = [

0 commit comments

Comments
 (0)