Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic PyPI build+upload #60

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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