Closed wiseaidev closed 2 years ago
Lemme test it. BRB.
Edit: Hey @ofek, it doesn't work by applying these changes.
python3 -m build --sdist
You can checkout this branch to try it out.
Also tried to add it in build-system
to see if it works:
[build-system]
requires = ["hatchling>=1.8.0", "versioneer-518"]
Raises the same exception.
Add search-paths = ["src"]
then change import to from fides._version import get_versions
In my opinion, this thing requires documentation, like common gotchas or something.
Hey everyone. From the docs, the only way to get the version of a package is from a source file, the static value
__version__
stored in asrc/__init__.py
file.versioneer
allows you to dynamically fetch the value of the package version like so:Based on the above info, I am not sure how to tell
hatch
to get the value of the__version__
variable from versionneer. If it is not possible, it would be nice to add support for it.That's pretty much it. Have a nice day/night.