Skip to content

Commit

Permalink
fix: don't set "dependencies" as empty list for uv tomml if there is …
Browse files Browse the repository at this point in the history
…no dependencies in the raw toml file (#3378) (#3381)
  • Loading branch information
monchin authored Jan 16, 2025
1 parent d363210 commit 9d11d30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions news/3378.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't set "dependencies" as empty list for uv toml if there is no dependencies in the raw toml file.
1 change: 0 additions & 1 deletion src/pdm/formats/uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def build_pyproject_toml(self) -> Path:
)

data.setdefault("project", {})["requires-python"] = self.requires_python
data.setdefault("project", {})["dependencies"] = []
data.pop("dependency-groups", None)
data.setdefault("project", {}).pop("optional-dependencies", None)
sources = {}
Expand Down

0 comments on commit 9d11d30

Please sign in to comment.