diff --git a/pyproject.toml b/pyproject.toml index 7c903670..a5ef9ceb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,8 @@ packages = [ 'numpydoc', 'numpydoc.hooks', ] +[tool.setuptools.dynamic.version] +attr = 'numpydoc.__version__' [tool.setuptools.package-data] numpydoc = [ diff --git a/tools/pyproject.toml.in b/tools/pyproject.toml.in index 7b43e025..8ca66ca7 100644 --- a/tools/pyproject.toml.in +++ b/tools/pyproject.toml.in @@ -53,6 +53,9 @@ packages = [ ] include-package-data = false +[tool.setuptools.dynamic] +version = {attr = "numpydoc.__version__"} + [tool.setuptools.package-data] numpydoc = [ "tests/test_*.py",