doppler-bin 3.76.5__py3-none-win_amd64.whl
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.
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: doppler-bin
|
|
3
|
+
Version: 3.76.5
|
|
4
|
+
Summary: Doppler CLI executable distributed as Python wheels
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/DopplerHQ/cli#usage
|
|
8
|
+
Project-URL: Repository, https://github.com/acuminata/doppler-tools.git
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Description-Content-Type: text/markdown; charset=UTF-8
|
|
14
|
+
|
|
15
|
+
# Doppler CLI
|
|
16
|
+
|
|
17
|
+
The Doppler CLI distributed as platform-specific Python wheels.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
Install a version matching the Doppler CLI release:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
python -m pip install doppler-bin==3.77.1
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Verify the installation:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
doppler --version
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Use the CLI as usual:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
doppler secrets
|
|
37
|
+
doppler run -- <your-command>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Supported platforms
|
|
41
|
+
|
|
42
|
+
The package distributes the official Doppler CLI executable for the
|
|
43
|
+
platforms and architectures listed in the corresponding release.
|
|
44
|
+
|
|
45
|
+
Each wheel bundles its executable. No download is required at runtime.
|
|
46
|
+
|
|
47
|
+
| Runtime | Release platform | Architecture |
|
|
48
|
+
|-----------|------------------|--------------------------------------------|
|
|
49
|
+
| `linux` | Linux | `amd64`, `arm64`, `armv6`, `armv7`, `i386` |
|
|
50
|
+
| `darwin` | macOS | `amd64`, `arm64` |
|
|
51
|
+
| `win32` | Windows | `amd64`, `arm64` |
|
|
52
|
+
| `freebsd` | FreeBSD | `amd64`, `arm64`, `armv6`, `armv7` |
|
|
53
|
+
| `netbsd` | NetBSD | `amd64`, `arm64`, `armv6`, `armv7`, `i386` |
|
|
54
|
+
| `openbsd` | OpenBSD | `amd64`, `arm64`, `armv6`, `armv7`, `i386` |
|
|
55
|
+
|
|
56
|
+
## Versioning
|
|
57
|
+
|
|
58
|
+
The Python package version matches the [upstream Doppler CLI](https://github.com/DopplerHQ/cli) version.
|
|
59
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
doppler_cli/__init__.py,sha256=WzEANvDSx66Beb5rzTGO_0nqh2CBCtdMxZDQyiLPyOM,66
|
|
2
|
+
doppler_cli/launcher.py,sha256=CipruWpTpOdd3L61xouioXtryOmQTVV9aEMutMRIqXY,1313
|
|
3
|
+
doppler_cli/bin/doppler.exe,sha256=VGbb6jpJ5bzxFg7nYcitkvhcYCR11xgXDqVdt6g4L9M,12424704
|
|
4
|
+
doppler_bin-3.76.5.dist-info/METADATA,sha256=AmN4-sGYzsnFvNcWCJgcr4PJ5J3QSEfDfRGH3cHEpnQ,1865
|
|
5
|
+
doppler_bin-3.76.5.dist-info/WHEEL,sha256=kj-K_EkTSQL0J_IuVee5d5pB38uo0Zgf4cP7WGNfddY,103
|
|
6
|
+
doppler_bin-3.76.5.dist-info/entry_points.txt,sha256=3Z9ag_7Lxma2tv7mh1IXsIxD_z278TSQHndJ5CegP0o,54
|
|
7
|
+
doppler_bin-3.76.5.dist-info/RECORD,,
|
doppler_cli/__init__.py
ADDED
|
Binary file
|
doppler_cli/launcher.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import platform
|
|
3
|
+
import subprocess
|
|
4
|
+
import sys
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def _binary_path() -> Path:
|
|
9
|
+
package_dir = Path(__file__).resolve().parent
|
|
10
|
+
filename = "doppler.exe" if sys.platform == "win32" else "doppler"
|
|
11
|
+
executable = package_dir / "bin" / filename
|
|
12
|
+
|
|
13
|
+
if not executable.is_file():
|
|
14
|
+
raise FileNotFoundError(
|
|
15
|
+
f"Doppler executable is missing: {executable}. "
|
|
16
|
+
"Reinstall the doppler-bin package."
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
return executable
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def main() -> None:
|
|
23
|
+
executable = _binary_path()
|
|
24
|
+
|
|
25
|
+
if sys.platform != "win32":
|
|
26
|
+
try:
|
|
27
|
+
executable.chmod(executable.stat().st_mode | 0o111)
|
|
28
|
+
except OSError as exc:
|
|
29
|
+
print(
|
|
30
|
+
f"Unable to make Doppler executable: {exc}",
|
|
31
|
+
file=sys.stderr,
|
|
32
|
+
)
|
|
33
|
+
raise SystemExit(1) from exc
|
|
34
|
+
|
|
35
|
+
try:
|
|
36
|
+
if os.name == "nt":
|
|
37
|
+
result = subprocess.run(
|
|
38
|
+
[str(executable), *sys.argv[1:]],
|
|
39
|
+
check=False,
|
|
40
|
+
)
|
|
41
|
+
raise SystemExit(result.returncode)
|
|
42
|
+
|
|
43
|
+
os.execv(str(executable), [str(executable), *sys.argv[1:]])
|
|
44
|
+
except OSError as exc:
|
|
45
|
+
print(f"Unable to execute Doppler CLI: {exc}", file=sys.stderr)
|
|
46
|
+
raise SystemExit(1) from exc
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if __name__ == "__main__":
|
|
50
|
+
main()
|