Skip to content

Conversation

@tiran
Copy link
Collaborator

@tiran tiran commented Sep 3, 2025

The project https://pypi.org/project/pypi-simple/ provides an easy-to-use, convenient wrapper around PyPI's simple HTML and JSON API as well as a bunch of packaging PEPs. Replace our custom html5lib and requests library with pypi-simple.

PyPI API calls now prefer the faster, more feature-rich JSON API and fall back to HTML for local index and GitLab.

Fixes: #741

@mergify mergify bot added the ci label Sep 3, 2025
@tiran tiran force-pushed the pypi-simple branch 3 times, most recently from 85b3027 to 0fdb786 Compare September 7, 2025 14:28
@tiran tiran marked this pull request as ready for review September 7, 2025 14:38
@tiran tiran requested a review from a team as a code owner September 7, 2025 14:38
Copy link
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A clarification question but overall looks good

Copy link
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I would prefer if @dhellmann or @LalatenduMohanty takes a look as well!

Copy link
Member

@LalatenduMohanty LalatenduMohanty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

The project https://pypi.org/project/pypi-simple/ provides an
easy-to-use, convenient wrapper around PyPI's simple HTML and JSON API
as well as a bunch of packaging PEPs. Replace our custom `html5lib` and
`requests` library with pypi-simple.

PyPI API calls now prefer the faster, more feature-rich JSON API and
fall back to HTML for local index and GitLab.

Fixes: python-wheel-build#741
Signed-off-by: Christian Heimes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PEP 691 support to get_project_from_pypi

3 participants