Add CI to build wheels and deploy using cibuildwheel #33
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.
Implements automated wheel building and PyPI deployment following the cibuildwheel deployment pattern.
Changes
.github/workflows/build-pynec-wheels.yml: GitHub Actions workflow for PyNEC package with three jobs:build_wheels: Builds wheels for PyNEC on Linux x86_64, macOS Intel, and macOS ARM for Python 3.9-3.12build_sdist: Builds source distribution for PyNECupload_pypi: Deploys to PyPI on release publications using trusted publishing (OIDC).github/workflows/build-necpp-wheels.yml: GitHub Actions workflow for necpp package with three jobs:build_wheels: Builds wheels for necpp on Linux x86_64, macOS Intel, and macOS ARM for Python 3.9-3.12build_sdist: Builds source distribution for necppupload_pypi: Deploys to PyPI on release publications using trusted publishing (OIDC)necpp/pyproject.toml: Adds modern build system configuration (PyNEC already had one)Build Pipeline
Each workflow independently handles the complex build requirements:
make -f Makefile.git && ./configure --without-lapack)Benefits of Separate Workflows
Prerequisites for Deployment
Configure the
pypienvironment in repository settings and set up PyPI trusted publishing before the first release. Each workflow can be manually triggered independently via Actions tab for testing.Scope Limitations
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.