Skip to content

Commit 9d11d30

Browse files
authored
fix: don't set "dependencies" as empty list for uv tomml if there is no dependencies in the raw toml file (#3378) (#3381)
1 parent d363210 commit 9d11d30

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

news/3378.bugfix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Don't set "dependencies" as empty list for uv toml if there is no dependencies in the raw toml file.

src/pdm/formats/uv.py

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def build_pyproject_toml(self) -> Path:
4848
)
4949

5050
data.setdefault("project", {})["requires-python"] = self.requires_python
51-
data.setdefault("project", {})["dependencies"] = []
5251
data.pop("dependency-groups", None)
5352
data.setdefault("project", {}).pop("optional-dependencies", None)
5453
sources = {}

0 commit comments

Comments
 (0)