Skip to content

Update PDM package-type syntax #991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/update_pdm_metadata_syntax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
default: major
---

# Update PDM metadata syntax

Metadata generated for PDM will now use the new `distribution = true` syntax instead of `package-type = "library"`.
New packages generated will require PDM `2.12.0` or later to build.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build/
dist/
*.egg-info/
.pytest_cache/
.ruff_cache

# macOS
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion end_to_end_tests/metadata_snapshots/pdm.pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
]

[tool.pdm]
package-type = "library"
distribution = true

[build-system]
requires = ["pdm-backend"]
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
requires-python = ">=3.8,<4.0"

[tool.pdm]
package-type = "library"
distribution = true

[tool.pdm.dev-dependencies]
dev = [
Expand Down
2 changes: 1 addition & 1 deletion openapi_python_client/templates/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies = [
]

[tool.pdm]
package-type = "library"
distribution = true
{% endif %}
{% if poetry %}

Expand Down