Skip to content

Add automatic PyPI build+upload#60

Open
AlecThomson wants to merge 3 commits intolofar-astron:masterfrom
AlecThomson:cicd
Open

Add automatic PyPI build+upload#60
AlecThomson wants to merge 3 commits intolofar-astron:masterfrom
AlecThomson:cicd

Conversation

@AlecThomson
Copy link
Contributor

Closes #57

Modified GitHub Action config following python packaging guide.

This will trigger on each v*.*.* tag. I've commented out github-release and publish-to-testpypi sections, but they can be easily re-enabled.

To enable, the following configuration is required:

  1. Go to https://pypi.org/manage/account/publishing/.

  2. Fill in the name you wish to publish your new PyPI project under (the name value in your setup.cfg or pyproject.toml), the GitHub repository owner’s name (org or user), and repository name, and the name of the release workflow file under the .github/ folder, see Creating a workflow definition. Finally, add the name of the GitHub Environment (pypi) we’re going set up under your repository. Register the trusted publisher.

@gmloose
Copy link
Collaborator

gmloose commented Jul 11, 2024

This workflow builds native python wheels, which is fine for packages that don't contain compiled extensions. However, we need to use cibuildwheel to build portable binary wheels using manylinux. Have a look at the examples I gave.

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.

PyPI releases

2 participants