Github Action to: Check version / Test / git tag / GitHub Release / Deploy to PyPI
Repo patrick-kidger/action_update_python_project, read from GitHub 10 h ago. patrick-kidger has not joined Take My Repo.
Added optional arguments:
pypi-repository-url: What PyPI repository to use. Defaults to 'https://pypi.org/'checkout: Whether to check out the repository. Set to false to disable this if you've already done this in an earlier step.allow-first-release: Whether to allow a first release to PyPI. Defaults to false, to avoid accidentally pushing code publicly until you're ready. (We generally recommend pushing a first release manually when you're ready, but this flag can be useful if you're pushing to an internal PyPI repository that only your CD has authentication for.)In addition:
python-version: false to not install any Python version.pypi-token: false to upload to pypi-repository-url without attempting to authenticate. (For example, if using a cloud provider's PyPI implementation, and you have already authenticated with that cloud provider in an earlier step.)Now using uv as it supports installing deps without the current project.
Removed the PyPA action for pushing to PyPI, which seems to have become unreliable. Now just using twine directly.
(Skipping the v5 release as this was stuck using the old broken PyPA action.)
Removed email notifications. The emailing itself has always ended up being flakier than running the tests, so removed this functionality.