Skip to content

change from using adafruit_sdcard to sdcardio #83

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

Merged
merged 6 commits into from
Sep 10, 2020

Conversation

cjsieh
Copy link
Contributor

@cjsieh cjsieh commented Aug 31, 2020

Change from adafruit_sdcard to sdcardio .

Change from adafruit_sdcard to sdcardio .
@cjsieh
Copy link
Contributor Author

cjsieh commented Aug 31, 2020

This is for adafruit/circuitpython#3309. Note that adafruit_sdcard has issues and fails on the PyPortal and PyGamer.

@cjsieh
Copy link
Contributor Author

cjsieh commented Aug 31, 2020

pylint errors because of upgrade of pylinit to 2.6.0 .

@ladyada
Copy link
Member

ladyada commented Aug 31, 2020

@makermelissa hey hey this needs the new exceptionizalation

@makermelissa
Copy link
Collaborator

Ok, should be quick. I'll submit a PR.

@makermelissa
Copy link
Collaborator

The pylint updates are now merged in. @cjsieh, please pull in latest changes from repo and push again.

@cjsieh cjsieh changed the title Add files via upload change from using adafruit_sdcard to sdcardio Sep 1, 2020
@FoamyGuy
Copy link
Contributor

FoamyGuy commented Sep 4, 2020

I think the previous actions issue was a temporary problem. Something in the installing dependencies section failed to download the proper file. I re-ran the jobs and it did get past that issue.

After that it did need one minor change in the docs config file to include sdcardio in the list of mocked imports.

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this successfully on
Adafruit CircuitPython 6.0.0-alpha.3 on 2020-08-28; Adafruit PyPortal with samd51j20

Ordinarily I would think we'd want some sort of backwards compatibility since sdcardio is not in a stable release yet. But it wasn't working previous as noted by the issue on the core repo noted above. Maybe something could be done in adafruit_sdcard to fix it and then backward compatibility could be provided here.

This looks good to me. Thanks for this fix @cjsieh!

I am curious if anyone else has thoughts or ideas about the backward compatibility aspect of it. If we merge this then the library will crash on 5.3.1. It would need to be used with a newer alpha release at this time.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until 6.0.0 is stable I think we want this to be backwards compatible because it does work for many uses on 5.3.1. I've commented what needs to be changed for backwards compatibility I think.

cjsieh and others added 3 commits September 8, 2020 18:45
….x.x


sdcardio is not in 5.x.x so code added to test for this

Co-authored-by: Scott Shawcroft <[email protected]>
fix pylint and black errors
black fix again
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt requested a review from FoamyGuy September 10, 2020 19:16
@tannewt
Copy link
Member

tannewt commented Sep 10, 2020

@FoamyGuy Mind retesting this? Thanks!

@FoamyGuy
Copy link
Contributor

I retested this. Still working successfully on 6.0.0-alpha.3 and no longer crashes on import on 5.3.1.

@FoamyGuy FoamyGuy merged commit 945d539 into adafruit:master Sep 10, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 11, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_MLX90640 to 1.2.0 from 1.1.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_MLX90640#21 from adafruit/fix-pylint
  > Merge pull request adafruit/Adafruit_CircuitPython_MLX90640#18 from fgervais/broken-pixels

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 3.4.0 from 3.3.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#83 from cjsieh/scard_vs_sdcardio

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 7.3.0 from 7.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE#103 from dhalbert/hci

Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_BerryMed_Pulse_Oximeter to 2.0.2 from 2.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_BLE_BerryMed_Pulse_Oximeter#4 from dhalbert/up-to-date-data

Updating https://github.com/adafruit/Adafruit_CircuitPython_framebuf to 1.4.1 from 1.3.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#35 from makermelissa/master
  > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#34 from makermelissa/master
  > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#33 from jsharper/fix/jsharper/image-rotate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants