diff --git a/.github/workflows/build-publish-pypi.yml b/.github/workflows/build-publish-pypi.yml index 57303ee0..0c3472fe 100644 --- a/.github/workflows/build-publish-pypi.yml +++ b/.github/workflows/build-publish-pypi.yml @@ -50,11 +50,37 @@ jobs: path: dist/*.tar.gz retention-days: 1 - upload_pypi: - name: Upload to pypi + # publish-to-testpypi: + # name: Upload to TestPyPI + # needs: [build_wheels, build_sdist] + # runs-on: ubuntu-latest + + # environment: + # name: testpypi + # url: https://test.pypi.org/p/xraylib + + # permissions: + # id-token: write # IMPORTANT: mandatory for trusted publishing + + # steps: + # - uses: actions/download-artifact@v4 + # with: + # # unpacks all CIBW artifacts into dist/ + # pattern: cibw-* + # path: dist + # merge-multiple: true + # - name: Publish distribution 📦 to TestPyPI + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # repository-url: https://test.pypi.org/legacy/ + + publish-to-pypi: + name: Upload to PyPI needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - environment: pypi + environment: + name: pypi + url: https://pypi.org/p/xraylib permissions: id-token: write if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') @@ -65,7 +91,6 @@ jobs: pattern: cibw-* path: dist merge-multiple: true - - - uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # To test: repository-url: https://test.pypi.org/legacy/ \ No newline at end of file + - name: Publish distribution 📦 to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ca059236..fb594a44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ requires-python = "~=3.8" readme = "README.md" classifiers = [ "Intended Audience :: Developers", - "License :: OSI Approved :: BSD", + "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ]