gh-bin 2.61.0__py3-none-macosx_10_9_x86_64.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.
Potentially problematic release.
This version of gh-bin might be problematic. Click here for more details.
|
Binary file
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: gh-bin
|
|
3
|
+
Version: 2.61.0
|
|
4
|
+
Summary: A thin wrapper to distribute https://github.com/cli/cli via pip.
|
|
5
|
+
Description-Content-Type: text/markdown
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.7
|
|
8
|
+
Project-URL: Repository, https://github.com/justin-yan/pybin
|
|
9
|
+
|
|
10
|
+
# pybin
|
|
11
|
+
|
|
12
|
+
This project was inspired by how [Maturin packages rust binaries](https://www.maturin.rs/bindings#bin). The key observation is that in the wheel format, the [distribution-1.0.data/scripts/ directory is copied to bin](https://packaging.python.org/en/latest/specifications/binary-distribution-format/#installing-a-wheel-distribution-1-0-py32-none-any-whl), which means we can leverage this to seamlessly copy binaries into a user's PATH.
|
|
13
|
+
|
|
14
|
+
Combined with Python's platform-specific wheels, this allows us to use pip as a "cross-platform package manager" for distributing single-binary CLI applications.
|
|
15
|
+
|
|
16
|
+
This is the [list of tools bundled this way](https://github.com/justin-yan/pybin/tree/main/src/pybin), which can be installed with `pip install $TOOLNAME-bin`.
|
|
17
|
+
|
|
18
|
+
## Wheel Building Process
|
|
19
|
+
|
|
20
|
+
The core of the logic lies in the `buildlib.py` module.
|
|
21
|
+
|
|
22
|
+
- A mapping from download URL (often github releases) to pypi platform tag is required.
|
|
23
|
+
- For each platform:
|
|
24
|
+
- Download the release & extract the binary.
|
|
25
|
+
- Set file permissions and place into scripts directory within wheel archive.
|
|
26
|
+
- Create the METADATA and WHEEL files within wheel archive.
|
|
27
|
+
- Place wheel into `dist/` folder.
|
|
28
|
+
- Once all wheels are constructed, the distribution is uploaded to PyPI.
|
|
29
|
+
|
|
30
|
+
CICD is configured to automatically recognize new *PyPI* releases by looking for a diff on the PYPI_VERSION. When this happens, a build-and-release cycle is performed for that release version.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
gh_bin-2.61.0.data/scripts/gh,sha256=9e45GVXNal-SZtr111mhdFeIsPICq7Toe1TpEROUlIw,51053648
|
|
2
|
+
gh_bin-2.61.0.dist-info/METADATA,sha256=XCoOx36nSJSiiLmP0dHBpozhQF-NaE6v6DDCAH7eLp0,1730
|
|
3
|
+
gh_bin-2.61.0.dist-info/WHEEL,sha256=UP6Ln4YpY_d_DPpo5WAtDLc2ApNXoKn7u4a1FbVvfAU,103
|
|
4
|
+
gh_bin-2.61.0.dist-info/RECORD,,
|