dynamic = ["version"] in new pyproject.toml build #3190
-
I'm testing the brand-new [build-system]
requires = [
"setuptools @ git+https://github.com/pypa/setuptools",
]
build-backend = "setuptools.build_meta" When using [project]
# ...
dynamic = ["version"] the version is always set to 0.0.0, so I guess setuptools doesn't pick it up from the packages (So far, I've always used flit which does it automatically.) |
Beta Was this translation helpful? Give feedback.
Answered by
abravalheri
Mar 24, 2022
Replies: 1 comment 7 replies
-
Hi @nschloe thank you very much for trying it out. To get the version from an attribute you can use: [tool.setuptools.dynamic]
version = {attr = "mymodule.__version__"} |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
nschloe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @nschloe thank you very much for trying it out.
To get the version from an attribute you can use: