You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
fromimportlib.metadataimportversion, PackageNotFoundErrortry:
__version__=version("package-name")
exceptPackageNotFoundError:
# package is not installedpass
We'd have to install the package in editable mode so that the version can remain dynamic.
The text was updated successfully, but these errors were encountered:
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:
We'd have to install the package in editable mode so that the version can remain dynamic.
The text was updated successfully, but these errors were encountered: