-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
We are currently using either the deprecated python setup.py --version or the slow build-a-wheel-and-extract-metadata method to get the current version.
Proposed Solution
Use the approach recommended by setuptools_scm to get the version:
from importlib.metadata import version, PackageNotFoundError
try:
__version__ = version("package-name")
except PackageNotFoundError:
# package is not installed
passWe'd have to install the package in editable mode so that the version can remain dynamic.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request