Skip to content

Commit

Permalink
feat: adhere to PEP 517 (#213)
Browse files Browse the repository at this point in the history
* feat: adhere to PEP 517

Use the modern PEP 517 build system.

https://peps.python.org/pep-0517/

* ci: build package using build
  • Loading branch information
jooola authored Jun 22, 2023
1 parent cb13230 commit 7a19add
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
pip install --upgrade pip
pip install --upgrade build twine
- name: Build
run: python3 -m build

- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
run: twine upload dist/*
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

0 comments on commit 7a19add

Please sign in to comment.