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

Badge request: piwheels package version #6506

Closed
lordmauve opened this issue May 15, 2021 · 5 comments 路 Fixed by #7656
Closed

Badge request: piwheels package version #6506

lordmauve opened this issue May 15, 2021 · 5 comments 路 Fixed by #7656
Labels
good first issue New contributors, join in! service-badge Accepted and actionable changes, features, and bugs

Comments

@lordmauve
Copy link

馃搵 Description

Show the current version of a Python package on piwheels.org:

piwheels | 0.3.0

馃敆 Data

piwheels has a JSON API, documented here: https://www.piwheels.org/json.html

馃帳 Motivation

piwheels.org is a mirror of PyPI, the Python Package Index, with packages rebuilt on Raspberry Pi OS for ARM CPUs. I'd like to include a "piwheels" badge to show support for piwheels and also to allow me to spot if piwheels has fallen behind PyPI (because a package is not building successfully for Raspberry PI).

@lordmauve lordmauve added the service-badge Accepted and actionable changes, features, and bugs label May 15, 2021
@lordmauve lordmauve changed the title piwheels build status piwheels version May 15, 2021
@PyvesB
Copy link
Member

PyvesB commented May 15, 2021

Hello @lordmauve ! 馃憢馃徎

Thanks for the suggestion. Do you know if there are any rate-limiting constraints on the piwheels API?

@lordmauve
Copy link
Author

@bennuttall, one of the creators of the service, may be able to answer.

@bennuttall
Copy link

There's no constraint as the JSON API is statically generated.

I was considering implementing this in piwheels, see piwheels/piwheels#216

What would be the best way forward?

@lordmauve lordmauve changed the title piwheels version Badge request: piwheels package version May 15, 2021
@PyvesB
Copy link
Member

PyvesB commented May 16, 2021

What would be the best way forward?

That's entirely up to you!

Obviously, you can freely use the endpoint badge you mentioned in piwheels/piwheels#216. There aren't any restrictions there, though we obviously do encourage users to do sensible things!

The barrier of entry for integrating a badge as part of the core Shields.io service is higher. However, a badge integrating with the piwheels service would meet our badge guidelines as far as I can tell. In particular it's a service targetted at developers with an easy-to-use and documented API.

If you want to get a feel of the work involved, you can check our tutorial out, or take a look at our existing PyPi implementation.

@chris48s chris48s added the good first issue New contributors, join in! label May 16, 2021
@bennuttall
Copy link

Ok cool I think it should be easy enough to add to piwheels. @lordmauve if you fancy pairing on it that would be fun.

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

Successfully merging a pull request may close this issue.

4 participants