Skip to content

Commit

Permalink
Fix dynamic version specification. (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefmolin committed Jul 3, 2023
1 parent 894c8c4 commit e5cee43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ packages = [
'numpydoc',
'numpydoc.hooks',
]
[tool.setuptools.dynamic.version]
attr = 'numpydoc.__version__'

[tool.setuptools.package-data]
numpydoc = [
Expand Down
3 changes: 3 additions & 0 deletions tools/pyproject.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ packages = [
]
include-package-data = false

[tool.setuptools.dynamic]
version = {attr = "numpydoc.__version__"}

[tool.setuptools.package-data]
numpydoc = [
"tests/test_*.py",
Expand Down

0 comments on commit e5cee43

Please sign in to comment.