Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom API hosts #8

Open
asmacdo opened this issue Oct 6, 2022 · 2 comments
Open

allow custom API hosts #8

asmacdo opened this issue Oct 6, 2022 · 2 comments

Comments

@asmacdo
Copy link

asmacdo commented Oct 6, 2022

Currently, pypi.org is hardcoded into the request. Ideally this should be configurable to allow usage with a mirror.

@pelson
Copy link

pelson commented Jul 25, 2023

(non maintainer here)

FWIW, that mirror would currently have to serve the (non-standardised) JSON API (info at https://warehouse.pypa.io/api-reference/json.html).

If you had such a repository, the key LOC is

JSON_URL = 'https://pypi.org/pypi/{package}/json'
.

It would be interesting to make use of modern PEPs to get this project working without the JSON API (PEP-691, and PEP-700, which includes upload time in the simple response).

@pelson
Copy link

pelson commented Sep 10, 2024

Coming back a year later to say that I prototyped this in #10. So long as the mirror serves PEP-700 metadata, it will work nicely.

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

No branches or pull requests

2 participants