From 5d2cbcf1b8e7f013a8a9e03238d2c33192710c61 Mon Sep 17 00:00:00 2001 From: David Bold Date: Thu, 30 Apr 2026 06:29:42 +0200 Subject: [PATCH 1/2] CI: fix release workflow --- .github/workflows/python_publish.yml | 4 ++-- .github/workflows/python_publish_test.yml | 24 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/python_publish_test.yml diff --git a/.github/workflows/python_publish.yml b/.github/workflows/python_publish.yml index 30356ea..524f42e 100644 --- a/.github/workflows/python_publish.yml +++ b/.github/workflows/python_publish.yml @@ -17,11 +17,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools wheel twine build - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m build twine upload dist/* diff --git a/.github/workflows/python_publish_test.yml b/.github/workflows/python_publish_test.yml new file mode 100644 index 0000000..d5fc4d2 --- /dev/null +++ b/.github/workflows/python_publish_test.yml @@ -0,0 +1,24 @@ +name: Upload Python Package + +on: + push + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine build + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python -m build From c656d53d98e53d521f8083631f291499000d18fe Mon Sep 17 00:00:00 2001 From: David Bold Date: Thu, 30 Apr 2026 06:31:50 +0200 Subject: [PATCH 2/2] Cleanup old classifiers --- .github/workflows/python_publish_test.yml | 2 +- setup.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/python_publish_test.yml b/.github/workflows/python_publish_test.yml index d5fc4d2..69c95ac 100644 --- a/.github/workflows/python_publish_test.yml +++ b/.github/workflows/python_publish_test.yml @@ -1,4 +1,4 @@ -name: Upload Python Package +name: Test Build Python Package on: push diff --git a/setup.py b/setup.py index 59b05e7..887f265 100644 --- a/setup.py +++ b/setup.py @@ -26,11 +26,7 @@ classifiers=[ "Intended Audience :: Education", "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Visualization", ], zip_safe=False,