-
Notifications
You must be signed in to change notification settings - Fork 193
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
Request Inclusion of .MPY Files in Github Repository #464
Comments
If I understand you correctly, we do have these .zip files already, for example: https://github.com/adafruit/Adafruit_CircuitPython_HID/releases/tag/6.1.1.
circup has a "match" feature: adafruit/circup#62
Are you talking about https://docs.circuitpython.org/projects/bundle/en/latest/drivers.html ? I opened an issue in the past about including the library name in there: #418 |
My apologies Dan! You know how sometimes you are looking right at something and not seeing it! I was expecting to see 'Releases' in the menu bar along the top. I think this does what I wanted. It might be better for the Learn Guides to point people to this and/or Circup. The bundles are getting way too large for comfort! |
The bundles are 13-14MB each at this point. If you have slow internet, I can see that might be a bit annoying, though it's basically once or day or less. I made a typo in my reply (now fixed) and didn't make clear my question about the readthedocs page for libraries. If you have some suggestions, let us know. |
The size does also make it hard to find the right driver, especially as it might be a folder, a py or a mpy file, and it might be in one of two different bundles (and sometimes not in a bundle at all). My acid comment about ReadTheDocs was this sort of thing: But many thanks for your help. I am writing my first 'Playground' article which is about developing for Adafruit products using VS Code for a range of scenarios, Arduino, CircuitPython (USB Serial and UPDI) and Blinka on a remote Raspberry Pi. |
For simple libraries with just .py files I find by far the most comfortable workflow is just to search for a library on Github and download the 'raw' .py file directly to the lib folder on the CIRCUITPY drive. But this workflow fails if the bundled library has the files compiled to .mpy. Everything would be so much easier if the compiled .mpy files were in the repository along with the source files. Rather than checking the .mpy files into the repository, it might be better to use the 'Releases' mechanism to make it downloadable as a zip file, essentially the same as what is in the bundle, but just for that one library.
A search on a device name on Git will usually yield the right repository immediately regardless of which bundle it is in, whether is is a .py file, a .mpy file or a library folder. It will even usually find it if it is an unofficial driver that has not been adopted. Unlike Circup, you do not need to know the precise name of the library. Also you get all the information you need in one place and do not have to hunt it down, particularly in the truly horrible 'read the docs' site! I often find myself going to Github first and then having to spend painfully unnecessary time tracking the compiled version down in the bundles. The bundle zips now take quite a long time to download and unpack which is not optimal just to find a few library updates.
The text was updated successfully, but these errors were encountered: