Skip to content

Commit 7a19add

Browse files
authored
feat: adhere to PEP 517 (#213)
* feat: adhere to PEP 517 Use the modern PEP 517 build system. https://peps.python.org/pep-0517/ * ci: build package using build
1 parent cb13230 commit 7a19add

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12+
1213
- name: Set up Python
1314
uses: actions/setup-python@v4
1415
with:
1516
python-version: "3.x"
17+
1618
- name: Install dependencies
1719
run: |
18-
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
20-
- name: Build and publish
20+
pip install --upgrade pip
21+
pip install --upgrade build twine
22+
23+
- name: Build
24+
run: python3 -m build
25+
26+
- name: Publish
2127
env:
2228
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2329
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24-
run: |
25-
python setup.py sdist bdist_wheel
26-
twine upload dist/*
30+
run: twine upload dist/*

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)