Skip to content

ci: publish to PyPi on new release, fixes #141#147

Merged
andreww merged 1 commit intomainfrom
141-publish-pypi
Jun 17, 2025
Merged

ci: publish to PyPi on new release, fixes #141#147
andreww merged 1 commit intomainfrom
141-publish-pypi

Conversation

@abhidg
Copy link
Contributor

@abhidg abhidg commented Jun 8, 2025

No description provided.

Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

By eyeball, looks to configure the dedicated publish external workflow correctly for our context and the YAML is all valid so nothing strikes me as amiss, however I don't know a good way to test it explicitly without changing it around too much to use TestPyPI - don't want to accidentally create a new official release from a test/fork branch!

Happy to approve regardless but for validation/reassurance it would be good to know it has been tested - have you checked this via publishing to TestPyPI or otherwise?

Copy link
Collaborator

@andreww andreww left a comment

Choose a reason for hiding this comment

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

I think essentially we just need to try in and see. Worst that can happen? An extra version on PyPi that doesn't work and we fix it by hand. The process should probably be documented (but maybe just open an issue with text saying how to create a PyPi release.

I'm guessing there are also settings on the PyPi side that you've had to change. Are these tied to your account there @abhidg? We probably need to avoid the situation where we have single person points of failure (I guess I need to deal with the same thing on ReadTheDocs now).

run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we pin to a particular commit id for this action (rather than a branch)? In principle, it is possible for the branch to change under us so what happens when we create a new release could change. At least, that's what it suggests in the documentation

@andreww andreww merged commit 1a0a232 into main Jun 17, 2025
1 check passed
@andreww andreww deleted the 141-publish-pypi branch June 24, 2025 15:06
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.

3 participants