Skip to content

Add workflow to publish releases to PyPI#315

Merged
mdickinson merged 4 commits into
mainfrom
ci/automate-pypi-publishing
Aug 15, 2022
Merged

Add workflow to publish releases to PyPI#315
mdickinson merged 4 commits into
mainfrom
ci/automate-pypi-publishing

Conversation

@mdickinson
Copy link
Copy Markdown
Member

This PR adds a workflow which automatically publishes releases to PyPI.

This is almost identical to the corresponding workflow on Envisage (which ran successfully this morning). The only difference is an extra line to upgrade pip if necessary. (This line doesn't make a difference right now, but it's not inconceivable that some future release of build or twine can only be installed properly with an updated pip.)

I've tested the commands in the workflow manually by:

  • Creating a new, clean Python 3.10 venv
  • Running python -m pip install --upgrade pip and python -m pip install build twine
  • Running python -m build followed by python -m twine check --strict dist/*.

The strict checks passed for me.

@mdickinson
Copy link
Copy Markdown
Member Author

Note: appropriate PYPI_USERNAME and PYPI_PASSWORD secrets have been added to the repository.

Comment thread docs/releases/upcoming/313.build.rst Outdated
@mdickinson mdickinson merged commit 54b0ee3 into main Aug 15, 2022
@mdickinson mdickinson deleted the ci/automate-pypi-publishing branch August 15, 2022 15:25
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.

2 participants