From 91df65f15e577d41025a0b87c928c38f59f3b883 Mon Sep 17 00:00:00 2001 From: Sebastien Besson Date: Wed, 28 Oct 2020 14:56:00 +0000 Subject: [PATCH] Remove publication to test PyPI Originally motivated by https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi-and-testpypi, the continuous delivery to test PyPI failed for two separate reasons: - distributions with the same version cannot be overwritten - dev version generated by setuptools_scm are generally PEP440 incompatible --- .github/workflows/publish_pypi.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index d14eb00..50f2c32 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -5,7 +5,6 @@ on: push jobs: build-n-publish: name: Publish to PyPI - if: github.repository_owner == 'ome' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -14,12 +13,6 @@ jobs: run: | python -mpip install wheel python setup.py sdist bdist_wheel - - name: Publish distribution to Test PyPI - uses: pypa/gh-action-pypi-publish@v1.3.0 - with: - skip_existing: true - password: ${{ secrets.TEST_PYPI_PASSWORD }} - repository_url: https://test.pypi.org/legacy/ - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@v1.3.0