Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat(release): publish syspi to PyPI as platform wheels - #30

Merged
HuiJun merged 5 commits into
developfrom
feat/pypi-wheels
Nov 30, 2026
Merged

HuiJun merged 5 commits into
developfrom
feat/pypi-wheels

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Users whose IT policy blocks the Go toolchain and the installer scripts can install Python packages, so the release now also ships syspi on PyPI: pip install syspi (or pipx / uv tool install).

  • One wheel per release platform (Linux, macOS, Windows on amd64 and arm64), syspi-<version>-py3-none-<platform>.whl. Each carries the binary from the release archive in <name>.data/scripts/, so pip puts the native syspi straight 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 syspi runs the same binary through a small syspi module (packaging/pypi/), for machines where the scripts directory is not on PATH. It looks first in the scripts directory of the install the module came from, so a pip install --user copy is not shadowed by an environment-wide one.
  • scripts/build-pypi-wheels.py <tag> <dist> <out> writes the wheels from what build-release-artifacts.sh produced: it checks each archive against SHA256SUMS.txt and the binary's version stamp first. Standard library only, byte-reproducible for a given SOURCE_DATE_EPOCH.
  • Versions: 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: the publish job builds the wheels beside the archives; a new pypi job publishes them with trusted publishing (environment pypi, no token) after the GitHub release exists, so it can be re-run alone; validate-pypi then installs the version from PyPI on all three systems.
  • ci.yml: scripts/pypi-test.py runs on Linux, macOS and Windows: fake release → wheels → contents, RECORD, tags and reproducibility checked → this machine's wheel installed with pip --no-index into 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 --strict accepts all six wheels and uv pip install installs the wheel as well. Publishing itself and validate-pypi first run on the next release tag.


Product Engineer opened this PR for Jason
Implemented in session Publish SysPI CLI to PyPI
Review with Devin · Open in Devin Desktop


devin-ai-integration Bot and others added 2 commits November 30, 2026 17:47
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 30, 2026 17:48
@devin-ai-integration
devin-ai-integration Bot marked this pull request as draft November 30, 2026 17:48
devin-ai-integration Bot and others added 2 commits November 30, 2026 17:51
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 30, 2026 18:15
Co-Authored-By: jason.han <hanhuijun@gmail.com>
@HuiJun
HuiJun merged commit 2830d33 into develop Nov 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant