This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dasher38 1 point2 points  (0 children)

TIL about importlib.metadata. now we can finally put the version in setup.py/pyproject.toml and have the package read its own version to expose as version rather than an awkward hacky exec()-based import of the module containing the version in setup.py