Sitelet https://web.archive.org/web/20240111050841/https://github.com/badges/shields/issues/6760
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

support custom pypi index #6760

Open
LeoQuote opened this issue Jul 12, 2021 · 4 comments
Open

support custom pypi index #6760

LeoQuote opened this issue Jul 12, 2021 · 4 comments
Labels
good first issue New contributors, join in! service-badge Accepted and actionable changes, features, and bugs

Comments

@LeoQuote
Copy link

馃搵 Description
I set up an internal pypi repo , this repo support the identical api with pypi.org , can I create a badge for a custom pypi ?

I cannot see any parameter I can pass in the pypi badge.

@calebcartwright
Copy link
Member

Could you please expand on which specific badges you're referring to (e.g. version vs. license vs. downloads vs. etc.)? Shields always has to reach out to some upstream API to get the required data needed for building a badge, and various badges, even those under the same "umbrella", use different APIs and sometimes even different API providers.

@LeoQuote
Copy link
Author

Thanks for you reply. For now the version badge is most used, it would be good if sheild can support self-hosted pypi repo!

@chris48s
Copy link
Member

I think it would be possible to do this for all the pypi badges except for downloads in a similar way to how we allow a registry_uri param for NPM.
One thing to note: If we added this feature to shields.io it would only be possible for the alternate pypi registry to be a public registry that does not require authentication. For a non-public registry you would have to host your own instance of shields in order to address it.

@LeoQuote
Copy link
Author

certainly, non-public registry cannot be reached from shields.io

@chris48s chris48s added good first issue New contributors, join in! service-badge Accepted and actionable changes, features, and bugs labels Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue New contributors, join in! service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

No branches or pull requests

3 participants