diff --git a/.github/workflows/pypi-wheels.yml b/.github/workflows/pypi-wheels.yml index 6166b30..46bbc03 100644 --- a/.github/workflows/pypi-wheels.yml +++ b/.github/workflows/pypi-wheels.yml @@ -20,7 +20,7 @@ on: permissions: contents: read - + id-token: write jobs: build_wheels: @@ -115,17 +115,6 @@ jobs: python -m pip install --upgrade twine - name: Upload to PyPI - env: - TWINE_USERNAME: __token__ - TEST_PYPI_TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} - PYPI_TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: | - ls -la artifacts || true - - if [ "${{ github.event.inputs.PyPiDeployTarget }}" == "pypi.org" ]; then - echo "Deploy to testpypi " - python -m twine upload artifacts/* -u "$TWINE_USERNAME" -p "$TEST_PYPI_TWINE_PASSWORD" --non-interactive --verbose - else - python -m twine upload --repository testpypi artifacts/* -u "$TWINE_USERNAME" -p "$PYPI_TWINE_PASSWORD" --non-interactive --verbose - fi - shell: bash + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: artifacts/ # This tells the action to look in your dist folder \ No newline at end of file diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 6e5c512..fb90f05 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -29,7 +29,7 @@ jobs: submodules: true fetch-depth: 0 - name: Setup Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python }} - name: Install build dependencies diff --git a/pyproject.toml b/pyproject.toml index 87d570d..bc2e112 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ description = "Cython interface between the numpy arrays and the Matrix/Array cl readme = "README.md" requires-python = ">=3.9" -license = "LicenseRef-Custom-License" +license = "LicenseRef-Wouter-Boomsma-1.0" license-files = ["LICENSE"] dependencies = [