From 441cb45e8aa6f2991fdc3e6f2c304f2eff901223 Mon Sep 17 00:00:00 2001 From: Felix Dangel <48687646+f-dangel@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:38:46 -0400 Subject: [PATCH] [REF] Revert to using PyPI API token (#79) * [DOC] Update changelog, prepare `v0.0.3` release * [FIX] Use PyPI token for upload * [REF] Replace `pkg_resources` with `distutils` and `importlib` * [REF] Enable verbose output of `twine` * [REF] Use trusted publisher from PyPI * [REF] Use `build` instead of `setup.py` * [REF] Revert to using PYPI API token --- .github/workflows/python-publish.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yaml b/.github/workflows/python-publish.yaml index a42a69a..51096ff 100644 --- a/.github/workflows/python-publish.yaml +++ b/.github/workflows/python-publish.yaml @@ -20,8 +20,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build twine + pip install setuptools wheel twine - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | - python -m build + python setup.py sdist bdist_wheel twine upload --verbose dist/*