Skip to content

Comments

feat: support pip style no-deps#5464

Open
lucifer1004 wants to merge 4 commits intoprefix-dev:mainfrom
lucifer1004:no-deps-pip
Open

feat: support pip style no-deps#5464
lucifer1004 wants to merge 4 commits intoprefix-dev:mainfrom
lucifer1004:no-deps-pip

Conversation

@lucifer1004
Copy link

Description

Summary:

  • Added no-deps support for PyPI dependencies so users can install/lock a package without pulling its transitive requirements.
  • For registry packages, the direct requirement is resolved to a concrete version using index metadata and the best compatible wheel (or sdist), but Requires-Dist is ignored. For git/path/url, we lock metadata directly without resolving dependencies.
  • This mirrors pip install --no-deps expectations (direct requirement only, no transitive deps) while keeping the lockfile deterministic and avoiding dependency solver influence from no-deps entries.

Context:
Users expect no-deps to skip transitive dependencies but still allow unpinned direct requirements.

Fixes #1417

How Has This Been Tested?

Full test suite passed locally:

  • cargo test --workspace

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Codex (Cursor)

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py

If you want this scoped down to only the no-deps behavior (and exclude the stability/doctest fixes), say so and I’ll trim the description and checklist accordingly.

@lucifer1004 lucifer1004 force-pushed the no-deps-pip branch 2 times, most recently from 8f8e8ad to f34f3b3 Compare February 8, 2026 09:06
@lucifer1004 lucifer1004 force-pushed the no-deps-pip branch 3 times, most recently from aadb39f to 50e76f1 Compare February 8, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support --no-deps option for pypi dependencies

1 participant