Skip to content

Commit e5cee43

Browse files
authored
Fix dynamic version specification. (#477)
1 parent 894c8c4 commit e5cee43

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ packages = [
7272
'numpydoc',
7373
'numpydoc.hooks',
7474
]
75+
[tool.setuptools.dynamic.version]
76+
attr = 'numpydoc.__version__'
7577

7678
[tool.setuptools.package-data]
7779
numpydoc = [

tools/pyproject.toml.in

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ packages = [
5353
]
5454
include-package-data = false
5555

56+
[tool.setuptools.dynamic]
57+
version = {attr = "numpydoc.__version__"}
58+
5659
[tool.setuptools.package-data]
5760
numpydoc = [
5861
"tests/test_*.py",

0 commit comments

Comments
 (0)