Skip to content

Provide package version #1415

Answered by konstin
bicarlsen asked this question in Q&A
Jan 16, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Is this something that could be solved by importlib.metadata.version? E.g. in __init__.py:

from importlib.metadata import version

__version__ = version(__name__)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@bicarlsen
Comment options

@konstin
Comment options

@bicarlsen
Comment options

Answer selected by bicarlsen
Comment options

You must be logged in to vote
2 replies
@messense
Comment options

@bicarlsen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants