A thin wrapper to distribute just via pip.
Project description
pybin
This project was inspired by how Maturin packages rust binaries. The key observation is that in the wheel format, the distribution-1.0.data/scripts/ directory is copied to bin, which means we can leverage this to seamlessly copy binaries into a user's PATH.
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.
Wheel Building Process
The core of the logic lies in the build_wheels.py
script.
- A mapping from download URL (often github releases) to pypi platform tag is required.
- For each platform:
- Download the release & extract the binary.
- Set file permissions and place into scripts directory within wheel archive.
- Create the METADATA and WHEEL files within wheel archive.
- Place wheel into
dist/
folder.
- Once all wheels are constructed, the distribution is uploaded to PyPI.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for just_bin-0.0.1a1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580e95d9b459679f9260888e7f384c8821a5d44fde97c4b18e1917f85fecda5e |
|
MD5 | 52b957d660d354933bed2ee4078eed52 |
|
BLAKE2b-256 | 73ae8785455075745fea3d827be8391eac0c117acf3e7db5de872b30b947275b |
Hashes for just_bin-0.0.1a1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef1ecce041883dd95463212c754f739e27f0084eeea7206938f00e0c9dbcc69a |
|
MD5 | 398d370c3affd978bd9eb5583cf49eb9 |
|
BLAKE2b-256 | 3e05d3f7adcbfeaeacaf3808125a4fd576374a5ebe4ab06e41b76797cd5bb722 |
Hashes for just_bin-0.0.1a1-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc9cabc121444b04e6f4ff8984a642a7299f871b46c0046eec8320d5b7a4b7f |
|
MD5 | dc48ca4925a19ceec953471cf0839784 |
|
BLAKE2b-256 | 02017ad23fe48af459a6ee276600b7a120a679a9bc84a5deb653795c9eb957b8 |
Hashes for just_bin-0.0.1a1-py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4727f2f983c1e3493aa19e1d6ccbc3060511498b73e52c87a0c0e516b3acd97 |
|
MD5 | 3c437cdc981414dcccc8eb2d6b8a2cc0 |
|
BLAKE2b-256 | dcae7db6eee9eee1e7dff5b7e6983245096c205bacea31e38d3c3250b5140eed |