Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions .github/workflows/pypi-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:

permissions:
contents: read

id-token: write

jobs:
build_wheels:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Loading