Skip to content

Commit 78fa00c

Browse files
committed
Use build to build package
1 parent 8f80ac8 commit 78fa00c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ jobs:
3434
- name: Run tests
3535
run: scripts/test.sh
3636
- name: Build package
37-
run: python setup.py clean sdist
37+
run: |
38+
pip install --upgrade setuptools twine build wheel
39+
python -m build

.github/workflows/pypi.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ jobs:
1515
python-version: '3.13'
1616
- name: Install dependencies
1717
run: |
18-
pip install --upgrade pip wheel
19-
pip install setuptools twine
18+
pip install --upgrade setuptools twine build wheel pip
2019
- name: Build and publish
2120
env:
2221
TWINE_USERNAME: __token__
2322
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2423
run: |
25-
python setup.py sdist bdist_wheel
24+
python -m build
2625
twine upload dist/*

0 commit comments

Comments
 (0)