Skip to content

Convert all modules to use MP_REGISTER_MODULE #5430

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 3 commits into from
Oct 7, 2021
Merged

Convert all modules to use MP_REGISTER_MODULE #5430

merged 3 commits into from
Oct 7, 2021

Conversation

microdev1
Copy link
Collaborator

Convert espidf, os, rp2pio, samd and time to use MP_REGISTER_MODULE.

Related to #5183.

Convert espidf, os, rp2pio, samd and time to use MP_REGISTER_MODULE.

Related to #5183.
@microdev1
Copy link
Collaborator Author

Should modules binascii, errno, json and re be converted as well?

@dhalbert
Copy link
Collaborator

dhalbert commented Oct 5, 2021

Should modules binascii, errno, json and re be converted as well?

At least some of those modules are still implemented in extmod, not shared-bindings and shared-module, so be careful. See #1899, #1900, #1901.

Convert binascii, errno, json, and re to use MP_REGISTER_MODULE.

Resolves #5183.
@microdev1
Copy link
Collaborator Author

Convert binascii, errno, json, and re to use MP_REGISTER_MODULE.

Resolves #5183.

@microdev1 microdev1 changed the title Convert more modules to use MP_REGISTER_MODULE Convert all modules to use MP_REGISTER_MODULE Oct 5, 2021
jepler
jepler previously requested changes Oct 5, 2021
Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

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

This looks fine. I didn't test anything.

The test failure is due to the following modules now appearing in the "unix" build, in addition to their u-prefixed forms: 're', 'json', 'binascii', 'errno'. I think this is fine, and the .exp file for this test should simply be updated.

@microdev1 microdev1 requested review from jepler and dhalbert October 5, 2021 18:37
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Looks good! Checked over the special cases for various modules, and they look faithfully redone.

@microdev1 microdev1 dismissed jepler’s stale review October 7, 2021 04:14

Requested changes have been addressed.

@microdev1 microdev1 merged commit a3aeefd into adafruit:main Oct 7, 2021
@microdev1 microdev1 deleted the patch branch October 7, 2021 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants