Skip to content

Commit 38afa86

Browse files
Avoid setuptools bug by keeping a small part of the setup.cfg
1 parent 9cf6831 commit 38afa86

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ license-files = [
6363
"LICENSE",
6464
]
6565

66-
[tool.setuptools.dynamic.version]
67-
attr = "pytest_asyncio.__version__"
68-
6966
[tool.setuptools_scm]
7067
write_to = "pytest_asyncio/_version.py"
7168

setup.cfg

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[metadata]
2+
# Not everything is in in pyproject.toml because of this issue:
3+
; Traceback (most recent call last):
4+
; File "/tmp/build-env-rud8b5r6/lib/python3.12/site-packages/setuptools/config/expand.py", line 69, in __getattr__
5+
; return next(
6+
; ^^^^^
7+
;StopIteration
8+
;
9+
;The above exception was the direct cause of the following exception:
10+
;
11+
;Traceback (most recent call last):
12+
; File "/tmp/build-env-rud8b5r6/lib/python3.12/site-packages/setuptools/config/expand.py", line 183, in read_attr
13+
; return getattr(StaticModule(module_name, spec), attr_name)
14+
; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
; File "/tmp/build-env-rud8b5r6/lib/python3.12/site-packages/setuptools/config/expand.py", line 75, in __getattr__
16+
; raise AttributeError(f"{self.name} has no attribute {attr}") from e
17+
;AttributeError: pytest_asyncio has no attribute __version__
18+
version = attr: pytest_asyncio.__version__

0 commit comments

Comments
 (0)