gh-cli-bin 2.96.0__py3-none-win_arm64.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.
gh_cli_bin/__init__.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""The GitHub CLI (``gh``) packaged as a wheel.
|
|
2
|
+
|
|
3
|
+
The ``gh`` executable is installed into the environment's scripts directory,
|
|
4
|
+
so it is normally just on ``PATH``. :func:`gh_path` locates it explicitly.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import os
|
|
10
|
+
import shutil
|
|
11
|
+
import sys
|
|
12
|
+
import sysconfig
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
|
|
15
|
+
__all__ = ["__version__", "GH_VERSION", "gh_path"]
|
|
16
|
+
|
|
17
|
+
__version__ = "2.96.0"
|
|
18
|
+
#: Version of the upstream GitHub CLI bundled in this wheel.
|
|
19
|
+
GH_VERSION = "2.96.0"
|
|
20
|
+
|
|
21
|
+
_EXE = "gh.exe" if os.name == "nt" else "gh"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def gh_path() -> Path:
|
|
25
|
+
"""Return the path to the bundled ``gh`` executable.
|
|
26
|
+
|
|
27
|
+
Raises:
|
|
28
|
+
FileNotFoundError: if ``gh`` cannot be located.
|
|
29
|
+
"""
|
|
30
|
+
candidates = [
|
|
31
|
+
Path(sysconfig.get_path("scripts")) / _EXE,
|
|
32
|
+
Path(sys.executable).parent / _EXE,
|
|
33
|
+
]
|
|
34
|
+
for candidate in candidates:
|
|
35
|
+
if candidate.is_file():
|
|
36
|
+
return candidate
|
|
37
|
+
found = shutil.which(_EXE)
|
|
38
|
+
if found:
|
|
39
|
+
return Path(found)
|
|
40
|
+
raise FileNotFoundError(
|
|
41
|
+
f"could not locate the {_EXE} executable installed by gh-cli-bin"
|
|
42
|
+
)
|
gh_cli_bin/__main__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Run the bundled ``gh``: ``python -m gh_cli_bin <args...>``."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import subprocess
|
|
6
|
+
import sys
|
|
7
|
+
|
|
8
|
+
from . import gh_path
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def main() -> int:
|
|
12
|
+
return subprocess.call([str(gh_path()), *sys.argv[1:]])
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
if __name__ == "__main__":
|
|
16
|
+
raise SystemExit(main())
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gh-cli-bin
|
|
3
|
+
Version: 2.96.0
|
|
4
|
+
Summary: The GitHub CLI (gh) 2.96.0 as an installable wheel
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Project-URL: Upstream, https://github.com/cli/cli
|
|
10
|
+
Project-URL: Homepage, https://github.com/cli/cli
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
16
|
+
Classifier: Topic :: Utilities
|
|
17
|
+
|
|
18
|
+
# gh-cli-bin
|
|
19
|
+
|
|
20
|
+
The [GitHub CLI](https://github.com/cli/cli) (`gh`), repackaged as a Python
|
|
21
|
+
wheel so it can be installed by `pip`, `uv`, or any other Python packaging
|
|
22
|
+
tool.
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
uv tool install gh-cli-bin # standalone, on PATH
|
|
26
|
+
uv add gh-cli-bin # as a project dev dependency
|
|
27
|
+
uvx --from gh-cli-bin gh --help # one-off
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The wheel ships the official, unmodified `gh` binary published by the GitHub
|
|
31
|
+
CLI team, verified against the release checksums at build time. This wheel
|
|
32
|
+
version tracks the upstream `gh` version: `gh-cli-bin==2.96.0` gives you
|
|
33
|
+
`gh` 2.96.0.
|
|
34
|
+
|
|
35
|
+
This project is not affiliated with or endorsed by GitHub.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
gh_cli_bin/__init__.py,sha256=q_qk88Ug4k3x7PsTV9s3OoyE3TBgu-HcZ4PMWXYy-eY,1079
|
|
2
|
+
gh_cli_bin/__main__.py,sha256=o0S5YL3ZnKPArelCYm19aOe3G_WrKZ1uZpJNc1WKAlw,294
|
|
3
|
+
gh_cli_bin-2.96.0.data/scripts/gh.exe,sha256=o61if5KPDSm7jlwNTyeD36tUlTgs7b1wp7htfPMbSzk,38131512
|
|
4
|
+
gh_cli_bin-2.96.0.dist-info/METADATA,sha256=dVVEJFcYzCZip5qttEtF6CnlE-ksf6leq7fRetoYzIA,1246
|
|
5
|
+
gh_cli_bin-2.96.0.dist-info/WHEEL,sha256=BAA8UyIKWw_2mdM1H3ug-u_XIWGiFJGHdngMW5nX4GI,96
|
|
6
|
+
gh_cli_bin-2.96.0.dist-info/licenses/LICENSE,sha256=iZkTcBBYLaKUVsEOCmKL8_p-rQWrOuX0JK0lzQ3ZRXQ,1089
|
|
7
|
+
gh_cli_bin-2.96.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 GitHub Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|