From 8fbcf5469371a34f8baf16e6cfdb198af6054ce4 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Tue, 1 Oct 2024 16:12:46 -0400 Subject: [PATCH 1/4] Fix environment name --- .github/workflows/pypi_release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml index 534d5bb5..b5fb7444 100644 --- a/.github/workflows/pypi_release.yaml +++ b/.github/workflows/pypi_release.yaml @@ -53,7 +53,7 @@ jobs: - build runs-on: ubuntu-latest environment: - name: pypi + name: PyPI-Release url: https://pypi.org/project/${{ env.PYPI_NAME }} permissions: id-token: write @@ -107,13 +107,13 @@ jobs: publish-to-testpypi: name: Publish Python distribution to TestPyPI - if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'theochem' }} + if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'theochem' }} needs: - build runs-on: ubuntu-latest environment: - name: testpypi + name: TestPyPI url: https://test.pypi.org/project/${{ env.PYPI_NAME }} permissions: From f45185eaf79bb6ca8e491e4764bb7ba8ad7d5e27 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Tue, 1 Oct 2024 16:21:19 -0400 Subject: [PATCH 2/4] Add tokens for PyPI release --- .github/workflows/pypi_release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml index b5fb7444..70603a38 100644 --- a/.github/workflows/pypi_release.yaml +++ b/.github/workflows/pypi_release.yaml @@ -66,6 +66,9 @@ jobs: path: dist/ - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + env: + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} github-release: name: Sign the Python distribution with Sigstore and upload them to GitHub Release From 0b2dc8cd5328b464bcd6e52361dd22a0adcfaa7e Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Tue, 1 Oct 2024 16:27:43 -0400 Subject: [PATCH 3/4] Test PyPI release for all the branches --- .github/workflows/pypi_release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml index 70603a38..dd2981d8 100644 --- a/.github/workflows/pypi_release.yaml +++ b/.github/workflows/pypi_release.yaml @@ -110,7 +110,7 @@ jobs: publish-to-testpypi: name: Publish Python distribution to TestPyPI - if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'theochem' }} + # if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'theochem' }} needs: - build runs-on: ubuntu-latest From 1d9dc959be20e3aab44949db260bddb71962fc93 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Tue, 1 Oct 2024 16:56:10 -0400 Subject: [PATCH 4/4] Fix valid classifier in matadata in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7dd30f79..6a44be78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ readme = "README.md" license = {text = "GPL-3.0-or-later"} requires-python = ">=3.9" classifiers = [ - 'Development Status :: 0 - Released', + 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Operating System :: POSIX :: Linux',