fix Pimoroni LTR559 is not a known CircuitPython library#120
Conversation
|
I thought this looked straight forward, but as I look at this, I see the repo name https://github.com/pimoroni/Pimoroni_CircuitPython_LTR559 and the .py file name and the setup.py all say Pimoroni_CircuitPython_LTR559. So I'm now confused as to why it would need to be special cased... I'm probably forgetting something... digging ... |
|
It's because pimoroni didn't drop
In general though the conversion from pypi/module name only works as long as the name follows the exact same convention of |
|
It is a little more complicated 12 of the 41 community bundle libraries don't install. Also, I'll look at this more tonight... day job calls. ;-) |
I don't see that. Outside of a bunch of C Python libraries that are in the requirements for
Oh I didn't think of the cokie cutter allowing for no-prefix. |
|
data ... Total Libraries Tested: 41 11 Failed libraries: ['circuithon_base64', 'circuithon_display_frame', 'circuithon_hmac', 'nonblocking_timersparkfun_qwiicrelay', 'circuithon_nrf24l01gamblor21_ahrsodt_at42qt1070', 'barbudor_ina3221circuithon_parse', 'pimoroni_circuithon_ltr559', 'circuithon_schedule', 'bluepad32dotstar_featherwingi2cencoderlibv21', 'btevedynamixel', 'jepler_udecimalsparkfun_qwiicas3935'] 1 Libraries with failed dependencies: [{'arrowline': 'vectorio'}] |
|
circuithon ? Note: I generated the list from a command in my upcoming PR to manage 3rd party bundles (circup bundle-info --modules) but also |
|
On the other hand, while I am testing all the installs, the module "adafruit_display_button": "adafruit_button", |
|
OK... my test was wrong... I took all the .py filenames and then used that as the library name... I change my test to use In reality, the pimoroni_circuitpython_ltr559 failure is not a dependency, but my check is just for if the failed library name is the same as one I asked circup to install. so now we're back to the core issue you originally identified. Anyway.. I still don't get why this is needing to be special cased. I think this is a bug in circup. |
|
Ok.. I get it. The CP should not be in the filename. Since this is an older library, let's approve the PR. Sorry for the long back and forth. |
askpatrickw
left a comment
There was a problem hiding this comment.
tested and approved and discussed (a lot) :-)
added Pimoroni LTR559 library to the not_standard_names dictionary.
Post addition: