From c3cd8a4826d71ea05af5ef9c119d3871a9f52be0 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Mon, 8 Jun 2026 15:13:26 +0100 Subject: [PATCH 1/2] Drop macOS classifier. --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aabe4f9..0d962cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,6 @@ requires-python = ">=3.11" classifiers = [ "Development Status :: 4 - Beta", "Operating System :: POSIX :: Linux", - "Operating System :: MacOS :: MacOS X", "Intended Audience :: Science/Research", "Programming Language :: Python", "Programming Language :: Python :: 3", From a9ace8b9c9d280900fffcdaaf84ac7ff581c859c Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Mon, 8 Jun 2026 15:21:33 +0100 Subject: [PATCH 2/2] Align cd.yml with vcztools publish-flow conventions Switch the push trigger to a test-publish branch, harden the artifact upload with if-no-files-found, surface artifacts before publishing, and publish to TestPyPI verbosely from test-publish or tags. --- .github/workflows/cd.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a8987b6..3cbd6f8 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -4,7 +4,7 @@ on: merge_group: push: branches: - - main + - test-publish tags: - '*' release: @@ -38,6 +38,7 @@ jobs: with: name: python-package-distributions path: dist/ + if-no-files-found: error publish-to-pypi: if: github.repository_owner == 'sgkit-dev' && github.event_name == 'release' @@ -56,11 +57,13 @@ jobs: with: name: python-package-distributions path: dist/ + - name: Show artifacts + run: ls -lah dist - uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1 publish-to-testpypi: - if: github.repository_owner == 'sgkit-dev' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + if: github.repository_owner == 'sgkit-dev' && github.event_name == 'push' && (github.ref_name == 'test-publish' || startsWith(github.event.ref, 'refs/tags')) needs: - packaging runs-on: ubuntu-latest @@ -77,6 +80,9 @@ jobs: with: name: python-package-distributions path: dist/ + - name: Show artifacts + run: ls -lah dist - uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1 with: + verbose: true repository-url: https://test.pypi.org/legacy/