Skip to content

Distribute native wheels through PyPI and automate release updates - #20

Open
eiad-hamwi wants to merge 5 commits into
pals-project:mainfrom
eiad-hamwi:feat/pypi-wheels
Open

eiad-hamwi wants to merge 5 commits into
pals-project:mainfrom
eiad-hamwi:feat/pypi-wheels

Conversation

@eiad-hamwi

@eiad-hamwi eiad-hamwi commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Pip and uv installations currently need an externally built PALSParserCpp library. This adds platform wheels with PALSParserCpp v0.0.4 bundled, so supported installations can use the parser without a compiler or neighboring checkout.

  • Keep setuptools and the existing conda external-library mode (PALS_BUNDLE_NATIVE=0, also selected by conda-build). Explicit library/checkouts override the bundled library.
  • Pin native source commits in native-lock.json, statically bundle rapidyaml/PCRE2/APC, include their notices in wheels, and ship complete native sources/submodules in the sdist.
  • Build repaired py3-none wheels from that sdist for Linux x86-64, macOS Intel/ARM, and Windows x86-64. Run installed-package tests outside the checkout on Python 3.10, plus a uv install/test on Python 3.14.
  • Check upstream weekly and propose version/pin updates as review PRs. Only widen the supported native range automatically if the public C header is unchanged. No automatic merge or release.
  • On a published GitHub release, verify Python version metadata and publish to PyPI only after the wheel and uv checks pass, using the pypi environment and Trusted Publishing. Monthly Dependabot updates cover Actions and Python build dependencies.

Validation: native ARM macOS sdist-to-wheel build and uv installation passed; installed suite: 148 passed, 6 optional xtrack tests skipped. Native dylib dependencies are only libc++/libSystem. External-library-only build produced a pure Python wheel. Actionlint and Python compilation checks passed. All four platform wheel builds and installed-package suites passed, as did uv installation/testing on Python 3.14: https://github.com/pals-project/PALSParserPy/actions/runs/45042440079. Publication was skipped as expected on the PR run. The real native updater path was also checked on temporary files from v0.0.3 to v0.0.4, including dependency pins and supported-range extension.

Before first publication, an administrator must configure the PyPI Trusted Publisher for pals-project/PALSParserPy, wheels.yml, environment pypi; protect that GitHub environment with a required reviewer; and allow Actions to create update PRs. No release or PyPI upload has been made. Full setup and maintenance instructions are in docs/src/guide/releases.md.

Prepared with AI assistance.

This branch has not been deployed

No deployments
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