Skip to content

Commit 121288f

Browse files
committed
build: Migrate to pdm-backend and auto-fill the release PR
- Replace the deprecated pdm-pep517 build backend with pdm-backend - Move the scm version and build config to their pdm-backend sections - Fill the release PR from commits so it is non-interactive
1 parent 7316cdc commit 121288f

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def release(session: nox.Session) -> None:
199199
session.run('git', 'push', '-u', 'origin', f'release_{version}', external=True)
200200

201201
# Create and merge PR from release branch to main
202-
session.run('gh', 'pr', 'create', '--base', 'main', external=True)
202+
session.run('gh', 'pr', 'create', '--base', 'main', '--fill', external=True)
203203
session.run('gh', 'pr', 'merge', '--rebase', '--delete-branch', external=True)
204204

205205
# Create and push the tag, which triggers the release workflow to build and

pyproject.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["pdm-pep517"]
3-
build-backend = "pdm.pep517.api"
2+
requires = ["pdm-backend"]
3+
build-backend = "pdm.backend"
44

55
[project]
66
name = "sports_betting"
@@ -57,9 +57,12 @@ gui = [
5757
"reflex==0.7.0",
5858
"reflex-ag-grid>=0.0.10",
5959
]
60-
[tool.pdm]
61-
version = {source = "scm"}
62-
build = {package-dir = "src", editable-backend = "editables"}
60+
[tool.pdm.version]
61+
source = "scm"
62+
63+
[tool.pdm.build]
64+
package-dir = "src"
65+
editable-backend = "editables"
6366

6467
[tool.pdm.scripts]
6568
clean = "nox --error-on-external-run -R -s clean"

0 commit comments

Comments
 (0)