-
Notifications
You must be signed in to change notification settings - Fork 17
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
Get package name from pyproject.toml, allow arbitrary files in packages #101
Conversation
This is more dependable, and when we know the package name we can glob inside it to get all files such as bin or ttf files. This will allow e.g., 5x8.bin & ov5640_autofocus.bin within bundles. the behavior of bundlefly and circup when encountering .bin files needs to be checked. Tested by building modified pycamera bundle and the autofocus.bin file appears in the generated zip files: ``` pycamera-py-ec67bde/lib/adafruit_pycamera/ov5640_autofocus.bin 4077 4096 pycamera-8.x-mpy-ec67bde/lib/adafruit_pycamera/ov5640_autofocus.bin 4077 4096 pycamera-9.x-mpy-ec67bde/lib/adafruit_pycamera/ov5640_autofocus.bin 4077 4096 ``` There's at least one library in the bundle that has incorrect metadata and that leads to an error: adafruit/Adafruit_CircuitPython_Colorsys#29
6de3690
to
033bf0a
Compare
circup appears to use |
033bf0a
to
b2116cb
Compare
(it's smaller on disk)
b2116cb
to
0c58704
Compare
This'll require some metadata problems across multiple libs to be corrected. |
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101 Please make a new tagged release after incorporating this change. If you don't think you'll be able to deal with this in a timely fashion, please let me know.
The test failure appears to be due to wrong metadata. I think I've filed PRs with every affected library now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about whether you mean settings.toml
or pyproject.toml
.
I have settings.toml on the brain because of circuitpython, but it should be pyproject.toml everywhere here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look fine; proof is in the running.
Trying to think of a creative way to let this land without requiring all those libs to be updated. Could be as simple as a blacklist of things that DON'T get the treatment, or disabling it in the communty bundle for now. (allowing the build process to opt out of using the new thing) |
I've implemented a simple blacklist (of values that appear in py_modules today and are wrong) so that this can complete CI without all those related issues being closed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tracking down the outliers.
None of the repos under jposada202020 have been fixed, and they have no github activity in the last year. If it is important to get rid of this list of non-comforming libraries, we may need to fork them (e.g., into the circuitpython org) so they can be group maintained. |
@jepler sorry about that I create the tag release as requested. Sorry about the delay |
Thanks @jposada202020, that's appreciated! |
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101
This is needed so that we can rely on the metadata in adafruit/circuitpython-build-tools#101
This is more dependable, and when we know the package name we can glob inside it to get all files such as bin or ttf files.
This will allow e.g., 5x8.bin & ov5640_autofocus.bin within
bundles.
the behavior of bundlefly and circup when encountering .bin files needs to be checked.
Tested by building modified pycamera bundle and the autofocus.bin file appears in the generated zip files:
There's at least one library in the bundle that has incorrect metadata and that leads to an error:
adafruit/Adafruit_CircuitPython_Colorsys#29