We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d47a0 commit 8f493cdCopy full SHA for 8f493cd
netfoundry/version.py
@@ -1,9 +1,7 @@
1
"""Print the version string."""
2
-from importlib.metadata import version, PackageNotFoundError
3
-
+from ._version import get_versions
4
try:
5
- __version__ = version("netfoundry")
6
- print("v"+__version__)
7
-except PackageNotFoundError:
+ print("v"+get_versions()['version'] )
+except:
8
# package is not installed
9
- raise Exception("ERROR: 'netfoundry' package is not installed.")
+ raise Exception("ERROR: could not do get_version() from versioneer.")
0 commit comments