Repository navigation
feat(release): publish syspi to PyPI as platform wheels - #30
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Users whose IT policy blocks the Go toolchain and the installer scripts can install Python packages, so the release now also ships
syspion PyPI:pip install syspi(orpipx/uv tool install).syspi-<version>-py3-none-<platform>.whl. Each carries the binary from the release archive in<name>.data/scripts/, so pip puts the nativesyspistraight into the environment's scripts directory. Nothing is downloaded or compiled at install time and there are no Python dependencies. There is no sdist.python -m syspiruns the same binary through a smallsyspimodule (packaging/pypi/), for machines where the scripts directory is not onPATH. It looks first in the scripts directory of the install the module came from, so apip install --usercopy is not shadowed by an environment-wide one.scripts/build-pypi-wheels.py <tag> <dist> <out>writes the wheels from whatbuild-release-artifacts.shproduced: it checks each archive againstSHA256SUMS.txtand the binary's version stamp first. Standard library only, byte-reproducible for a givenSOURCE_DATE_EPOCH.vX.Y.Z→X.Y.Z;vX.Y.Z-rc.N/alpha/beta→ PEP 440 pre-release (X.Y.ZrcN), which pip installs only on request. Any other tag suffix fails the release before anything is published.release.yml: thepublishjob builds the wheels beside the archives; a newpypijob publishes them with trusted publishing (environmentpypi, no token) after the GitHub release exists, so it can be re-run alone;validate-pypithen installs the version from PyPI on all three systems.ci.yml:scripts/pypi-test.pyruns on Linux, macOS and Windows: fake release → wheels → contents,RECORD, tags and reproducibility checked → this machine's wheel installed withpip --no-indexinto a fresh venv →syspi version,python -m syspi version, and a user-site copy beside the environment's one.The test passes in CI on all three systems; locally
twine check --strictaccepts all six wheels anduv pip installinstalls the wheel as well. Publishing itself andvalidate-pypifirst run on the next release tag.Implemented in session Publish SysPI CLI to PyPI
Review with Devin · Open in Devin Desktop