-
Notifications
You must be signed in to change notification settings - Fork 12
Add pyasn1 as dependency #25
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
Conversation
I'm not sure that I understand why this is a required dependency. Did you do some testing and run into a need for it? On a Feather RP2040 I am able to run the simpletest for this library as is without Here is output from successful run and lack of pyasn1
Is this needed only in specific use cases or something like that? |
The other two scripts in examples, |
Ah, well glad the simpletest works. My reasoning is that |
I'm not sure I understand the use case for this library on Blinka if there are specific parts that only work in that environment. In a CPython environment with Blinka there is the built-in module My understanding was that this library is used only on microcontrollers normally since we don't have the core module |
No that's a very good point. I guess then looking at the pyasn1 library maybe it should at least be made clearer in the README that certain functionality depends on the |
Would a try:
import pyasn1
except ImportError as err:
raise ImportError("This functionality requires the pyasn1 library") from err |
I do like this idea. This way anyone who is trying to use that functionality will get a helpful error message telling them what is wrong. But anyone not using the functionality will not end up having it get installed by pip automatically. |
Sounds good, in that case just be aware I reverted the changes here and force pushed new changes onto the branch, based on the discussion here! |
Wanted to keep a cleaner history :D |
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.
This change makes sense, but I did not test.
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.
Looks good to me. Tested all 3 scripts in the examples folder successfully on PyPortal Titano
Updating https://github.com/adafruit/Adafruit_CircuitPython_MotorKit to 1.6.6 from 1.6.5: > Merge pull request adafruit/Adafruit_CircuitPython_MotorKit#44 from dhalbert/i2c-speed-doc > Update Black to latest. Updating https://github.com/adafruit/Adafruit_CircuitPython_RSA to 1.2.7 from 1.2.6: > Merge pull request adafruit/Adafruit_CircuitPython_RSA#25 from tekktrik/dev/add-dependencies > Merge pull request adafruit/Adafruit_CircuitPython_RSA#28 from adafruit/update-badge-url > Update Black to latest. > Fixed readthedocs build > Consolidate Documentation sections of README
One of the changes from #22 that is needed a little more urgently, given that it is an unmarked and unincluded dependency for this library. Figured it was better to separate it out so it can be applied faster.