Closed fenchu closed 1 month ago
I do not have a __init__.py
So I expected it to pick up directly from the module:
>>> import report
>>> report.report.__version__
0.96
so changing it to:
[tool.setuptools.dynamic]
version = {attr = "report.report.__version__"}
fixed it.
But the error message and stacktrace is totaly confusing. something like unavle to pick up version would be much saner than this unable to install module
setuptools version
69.2.0
Python version
3.12.2
OS
windows11
Additional environment information
No response
Description
this pyproject.toml file works:
But when I try to add dynamic versioning from report.VERSION it looks like this:
I get this error:
So how should we use dynamic loading, I want to set the version once not two places.
Expected behavior
If I do not use dynamic it works fine
How to Reproduce
pip install git+https:/xxx/testtools/report with the dynamic version of pyproject.toml
Output
I can add some feature in my module so the VERSION reads the pyproject.toml file :-)