Skip to content

Commit 3ee4195

Browse files
authored
Update PDM package-type syntax (#991)
Co-authored-by: Dylan Anthony <[email protected]>
1 parent c437e41 commit 3ee4195

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
default: major
3+
---
4+
5+
# Update PDM metadata syntax
6+
7+
Metadata generated for PDM will now use the new `distribution = true` syntax instead of `package-type = "library"`.
8+
New packages generated will require PDM `2.12.0` or later to build.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ build/
44
dist/
55
*.egg-info/
66
.pytest_cache/
7+
.ruff_cache
78

89
# macOS
910
.DS_Store

end_to_end_tests/metadata_snapshots/pdm.pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
]
1313

1414
[tool.pdm]
15-
package-type = "library"
15+
distribution = true
1616

1717
[build-system]
1818
requires = ["pdm-backend"]

integration-tests/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
requires-python = ">=3.8,<4.0"
1313

1414
[tool.pdm]
15-
package-type = "library"
15+
distribution = true
1616

1717
[tool.pdm.dev-dependencies]
1818
dev = [

openapi_python_client/templates/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
]
2626

2727
[tool.pdm]
28-
package-type = "library"
28+
distribution = true
2929
{% endif %}
3030
{% if poetry %}
3131

0 commit comments

Comments
 (0)