Skip to content

Commit

Permalink
Switch to PDM build system
Browse files Browse the repository at this point in the history
  • Loading branch information
strayge committed Nov 17, 2022
1 parent 2f2948b commit 4a63e90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
uses: ./.github/actions/deps
with:
python-version: '3.10'
- run: pip install build twine
- run: python -m build
- run: pip install build twine pdm-pep517
- run: python -m build -n
- run: twine upload dist/*
env:
TWINE_USERNAME: __token__
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ optional-dependencies.dev = [
FHO = "flake8_hangover:Plugin"

[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"

[tool.setuptools_scm]
[tool.pdm]
version = { source = "scm" }

[tool.flake8]
exclude = [
Expand Down

0 comments on commit 4a63e90

Please sign in to comment.