ghostbit-cli 1.1.1__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/PKG-INFO +1 -1
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/cli.py +10 -1
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/ghostbit_cli.egg-info/PKG-INFO +1 -1
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/pyproject.toml +1 -1
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/README.md +0 -0
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/ghostbit_cli.egg-info/SOURCES.txt +0 -0
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/ghostbit_cli.egg-info/dependency_links.txt +0 -0
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/ghostbit_cli.egg-info/entry_points.txt +0 -0
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/ghostbit_cli.egg-info/requires.txt +0 -0
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/ghostbit_cli.egg-info/top_level.txt +0 -0
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/setup.cfg +0 -0
- {ghostbit_cli-1.1.1 → ghostbit_cli-1.2.0}/setup.py +0 -0
|
@@ -23,7 +23,16 @@ import urllib.error
|
|
|
23
23
|
import urllib.request
|
|
24
24
|
from pathlib import Path
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
# Version is read from the installed package metadata (single source of truth:
|
|
27
|
+
# cli/pyproject.toml). Falls back to "dev" when running from a source checkout.
|
|
28
|
+
try:
|
|
29
|
+
from importlib.metadata import PackageNotFoundError, version as _pkg_version
|
|
30
|
+
try:
|
|
31
|
+
__version__ = _pkg_version("ghostbit-cli")
|
|
32
|
+
except PackageNotFoundError:
|
|
33
|
+
__version__ = "dev"
|
|
34
|
+
except ImportError:
|
|
35
|
+
__version__ = "dev"
|
|
27
36
|
_USER_AGENT = f"Ghostbit-CLI/{__version__}"
|
|
28
37
|
|
|
29
38
|
# Build an SSL context that works on macOS (certifi) and everywhere else.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|