Skip to content

Commit

Permalink
Adopt PEP 517 tooling for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Osvaldo Barrera authored and WhyNotHugo committed Oct 14, 2023
1 parent c84fbc7 commit c4e061d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools twine wheel
python -m pip install -U setuptools twine wheel build
- name: Build package
run: |
python setup.py --version
python setup.py sdist --format=gztar bdist_wheel
python -m setuptools_scm
python -m build --sdist --wheel --no-isolation
twine check dist/*
- name: Upload packages to Jazzband
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]

[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
Expand Down Expand Up @@ -51,3 +54,7 @@ required-imports = ["from __future__ import annotations"]
# This likely needs to be addressed in Django itself (either use an immutable
# type or annotate these fields as ClassVar)
"testapp/testapp/testmain/migrations/0*.py"= ["RUF012"]

[tool.setuptools_scm]
write_to = "payments/version.py"
version_scheme = "post-release"

0 comments on commit c4e061d

Please sign in to comment.