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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghostbit-cli
3
- Version: 1.1.1
3
+ Version: 1.2.0
4
4
  Summary: Ghostbit CLI — create end-to-end encrypted pastes from the terminal
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/stackopshq/ghostbit
@@ -23,7 +23,16 @@ import urllib.error
23
23
  import urllib.request
24
24
  from pathlib import Path
25
25
 
26
- __version__ = "1.1.1"
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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghostbit-cli
3
- Version: 1.1.1
3
+ Version: 1.2.0
4
4
  Summary: Ghostbit CLI — create end-to-end encrypted pastes from the terminal
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/stackopshq/ghostbit
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ghostbit-cli"
7
- version = "1.1.1"
7
+ version = "1.2.0"
8
8
  description = "Ghostbit CLI — create end-to-end encrypted pastes from the terminal"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes
File without changes