-
I'm using pip 22.3.1, python 3.9.13, MacOS. Using this pyproject.toml file:
and "0.0.1" in my VERSION file, python -m build gets me whl and tar files with the 0.0.1 version:
So far, so good. But if I turn on the dynamic version
my whl file has 0.0.0 for the version:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
How did you run the build? |
Beta Was this translation helpful? Give feedback.
-
Answer: #3752 (reply in thread) Yup, that was it. No VERSION in the tar file. I updated my pyproject.toml:
and reran the build. Still no VERSION in the tar :-( Then I actually committed the VERSION file to git, and now I've got VERSION in the tar file and the whl file is properly named:
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Answer: #3752 (reply in thread)
Yup, that was it. No VERSION in the tar file. I updated my pyproject.toml:
and reran the build. Still no VERSION in the tar :-( Then I actually committed the VERSION file to git, and now I've got VERSION in the tar file and the whl file is properly named:
Thanks for your help!