scikit-hep / pylhe

Lightweight Python interface to read Les Houches Event (LHE) files

Home Page:https://pypi.org/project/pylhe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyPI API token set wrong

matthewfeickert opened this issue · comments

Hi @lukasheinrich after trying to release v0.0.6 the workflow hit an error that resulted in a

HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.

Given the "Getting 403 forbidden from TestPypi" Discussion on pypa/gh-action-pypi-publish I think the PyPI API token is set wrong. Can you regenerate one and set it as a new PYPI_PASSWORD GitHub secret (or give me access to the PyPI page so I can do it)?

I was at first worried as https://upload.pypi.org/legacy/ from this step

- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pylhe'
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
password: ${{ secrets.pypi_password }}

seemed wrong, but twine's docs seems to verify that URL as being correct for PyPI (TestPyPI uses https://test.pypi.org/legacy/).

Thanks for fixing this @lukasheinrich!