Skip to content

Commit 6d36ecd

Browse files
committed
CI: Update release job on GHA
- Package metadata now maintained within `pyproject.toml` - Use `build` package for building packages instead of `wheel`
1 parent 0437bb0 commit 6d36ecd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
with:
1717
python-version: '3.12'
1818
cache: 'pip'
19-
cache-dependency-path: 'setup.py'
19+
cache-dependency-path: 'pyproject.toml'
2020

2121
- name: Build package
2222
run: |
23-
python -m pip install twine wheel
24-
python setup.py sdist bdist_wheel
25-
twine check dist/*.tar.gz
23+
python -m pip install build twine
24+
python -m build
25+
twine check dist/{*.tar.gz,*.whl}
2626
2727
- name: Publish package to PyPI
2828
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)