From 0de25a7ba669a2d55bc0763bd33bbed0dfe11f39 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 19 Jun 2021 17:11:05 -0500 Subject: [PATCH 1/2] Update publish to v1.4.2 --- .github/workflows/publish-package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 9fa756f1..fc928f26 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -47,12 +47,12 @@ jobs: - name: Publish distribution 📦 to Test PyPI # every PR will trigger a push event on master, so check the push event is actually coming from master if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'scikit-hep/pylhe' - uses: pypa/gh-action-pypi-publish@v1.4.1 + uses: pypa/gh-action-pypi-publish@v1.4.2 with: password: ${{ secrets.test_pypi_password }} repository_url: https://test.pypi.org/legacy/ - 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 + uses: pypa/gh-action-pypi-publish@v1.4.2 with: password: ${{ secrets.pypi_password }} From 03fabcd579fff16ef293ba0781727cab8cf3e997 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 19 Jun 2021 17:12:31 -0500 Subject: [PATCH 2/2] Update default build behavior --- .github/workflows/publish-package.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index fc928f26..2d901258 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -26,12 +26,13 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel python -m pip install build check-manifest twine + python -m pip list - name: Check MANIFEST run: | check-manifest - - name: Build a binary wheel and a source tarball + - name: Build a sdist and a wheel run: | - python -m build --sdist --wheel --outdir dist/ . + python -m build --outdir dist/ . - name: Verify history available for dev versions run: | wheel_name=$(find dist/ -iname "*.whl" -printf "%f\n")