Closed prjemian closed 12 months ago
To upload to PyPI from a GHA workflow (such as in apstools), we must create a repository token for PyPI to use, so it accepts new package builds from our GHA workflow.
Once you have an account with PyPI:
GitHub Actions CI/CD — BCDA-APS/gemviz
gemviz
Keep this page open so you can copy the token (all text start with pypi-
) in a step below. You won't see it again.
Visit this page: https://github.com/BCDA-APS/gemviz/settings/secrets/actions
Button: New repository secret
Name: PYPI_API_TOKEN
Secret: <as just generated on PyPI, starts with pypi-
>
Progress! This error in the most recent run of the publishing workflow says that we need a clean tag (no modifiers such as +g85112a3
) to publish.
INFO Response from https://upload.pypi.org/legacy/:
400 '0.1.dev1+g85112a3' is an invalid value for Version. Error: Can't
use PEP 440 local versions. See
https://packaging.python.org/specifications/core-metadata for more
information.
The most recent tag is 0.0.1
. I'll tag with 0.0.2dev1
to indicate this is the next pre-release tag, for development purposes.
register package with PyPI for installation by
pip install gemviz