Skip to content

Commit c58c7cb

Browse files
jdmonacoclaude
andcommitted
Migrate CI from flit to hatchling/build+twine
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0cf47bb commit c58c7cb

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/tests.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
pip install --upgrade pip
29-
pip install flit
30-
flit install --extras=test
29+
pip install ".[test]"
3130
3231
- name: Run tests
3332
run: |
@@ -46,11 +45,15 @@ jobs:
4645
with:
4746
python-version: "3.12"
4847

49-
- name: Install Flit
50-
run: pip install flit
51-
52-
- name: Build and publish
53-
run: flit publish
48+
- name: Build package
49+
run: |
50+
pip install build
51+
python -m build
52+
53+
- name: Publish to PyPI
54+
run: |
55+
pip install twine
56+
twine upload dist/*
5457
env:
55-
FLIT_USERNAME: __token__
56-
FLIT_PASSWORD: ${{ secrets.PYPI_KEY }}
58+
TWINE_USERNAME: __token__
59+
TWINE_PASSWORD: ${{ secrets.PYPI_KEY }}

0 commit comments

Comments
 (0)