Skip to content

Commit afd85b4

Browse files
committed
warn about ignored PyPI dependencies
1 parent f56c537 commit afd85b4

File tree

1 file changed

+10
-0
lines changed
  • minimum_versions/environments

1 file changed

+10
-0
lines changed

minimum_versions/environments/pixi.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ def parse_pixi_environment(name: str, manifest_path: pathlib.Path | None):
9393

9494
specs = []
9595
warnings = []
96+
97+
pypi_dependencies = {
98+
feature: get_in([feature, "pypi-dependencies"], all_features, default=[])
99+
for feature in env["features"]
100+
}
101+
with_pypi_dependencies = {
102+
feature: bool(deps) for feature, deps in pypi_dependencies.items() if deps
103+
}
104+
for feature in with_pypi_dependencies:
105+
warnings.append((f"feature:{feature}", ["Ignored PyPI dependencies."]))
96106
for name, pin in pins.items():
97107
spec, warnings_ = parse_spec(name, pin)
98108

0 commit comments

Comments
 (0)