Skip to content

Commit 48b92fb

Browse files
mgornypawamoy
authored andcommitted
build: Migrate to pdm-backend
Migrate from the deprecated pdm-pep517 backend to pdm-backend that superseded it. This required moving the build-specific keys from tool.pdm table to tool.pdm.backend, as well as modernizing the SCM version usage. The artifacts produced after this change are equivalent, except that their names are normalized to "mkdocs_autorefs" as required by modern PyPA standards. The migration guide is at: https://pdm-backend.fming.dev/migration/ It does not mention SCM support, probably because the "new" metadata is already supported by newer pdm-pep517 versions. The docs are at: https://pdm-backend.fming.dev/metadata/#read-from-scm-tag-supporting-git-and-hg
1 parent 4a45c3b commit 48b92fb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pyproject.toml

+6-4
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 = "mkdocs-autorefs"
@@ -49,11 +49,13 @@ Gitter = "https://gitter.im/mkdocstrings/community"
4949
[project.entry-points."mkdocs.plugins"]
5050
autorefs = "mkdocs_autorefs.plugin:AutorefsPlugin"
5151

52-
[tool.pdm]
53-
version = {use_scm = true}
52+
[tool.pdm.build]
5453
package-dir = "src"
5554
editable-backend = "editables"
5655

56+
[tool.pdm.version]
57+
source = "scm"
58+
5759
[tool.pdm.dev-dependencies]
5860
duty = ["duty>=0.7"]
5961
docs = [

0 commit comments

Comments
 (0)