Skip to content

util/resolve: add support for PyPI requirements in API client#332

Merged
cuixq merged 3 commits intogoogle:mainfrom
cuixq:api
Feb 25, 2026
Merged

util/resolve: add support for PyPI requirements in API client#332
cuixq merged 3 commits intogoogle:mainfrom
cuixq:api

Conversation

@cuixq
Copy link
Collaborator

@cuixq cuixq commented Feb 25, 2026

This PR adds support for fetching and processing PyPI requirements in the APIClient:

  • Implements pypiRequirements method to process PyPI requirements:
    • Extras are mapped to dep.EnabledDependencies attribute.
    • EnvironmentMarker is mapped to dep.Environment attribute.
  • Tests are also added to reflect this change.

@cuixq cuixq marked this pull request as ready for review February 25, 2026 22:37
@tymzd
Copy link
Member

tymzd commented Feb 25, 2026

Thank you!

@tymzd tymzd closed this Feb 25, 2026
@tymzd tymzd reopened this Feb 25, 2026
@cuixq cuixq merged commit 765e10b into google:main Feb 25, 2026
5 checks passed
@cuixq cuixq deleted the api branch February 25, 2026 22:53
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.

2 participants