Skip to content

Commit 99a98db

Browse files
Transurgeonclaude
andcommitted
Bump to v0.1.1 and add TestPyPI staging step
Publishes to TestPyPI first, then PyPI, both on v* tag push. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d394069 commit 99a98db

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,28 @@ jobs:
4747
name: cibw-sdist
4848
path: ./dist/*.tar.gz
4949

50-
upload_pypi:
50+
upload_testpypi:
5151
needs: [build_wheels, build_sdist]
5252
runs-on: ubuntu-latest
53+
environment: testpypi
54+
permissions:
55+
id-token: write
56+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
57+
steps:
58+
- uses: actions/download-artifact@v4
59+
with:
60+
pattern: cibw-*
61+
path: dist
62+
merge-multiple: true
63+
64+
- name: Publish to TestPyPI
65+
uses: pypa/gh-action-pypi-publish@release/v1
66+
with:
67+
repository-url: https://test.pypi.org/legacy/
68+
69+
upload_pypi:
70+
needs: [upload_testpypi]
71+
runs-on: ubuntu-latest
5372
environment: pypi
5473
permissions:
5574
id-token: write

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "sparsediffpy"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "Python bindings for SparseDiffEngine automatic differentiation"
99
requires-python = ">=3.11"
1010
dependencies = ["numpy >= 2.0.0"]

0 commit comments

Comments
 (0)