Skip to content
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

Improve verity of micropython-stdlib-stubs #730

Merged
merged 10 commits into from
Dec 14, 2023
Merged

Conversation

Josverl
Copy link
Owner

@Josverl Josverl commented Dec 14, 2023

  • Rename several stdlib modules that are not available on MicroPython
  • Add QA test for just the micropython-stdlib-stubs distribution
  • Add some documentation on how the stdlib stubs were created from typeshed

Documentation:

  • publish/micropython-stdlib-stubs/creation.md: Added detailed steps to the creation.md file, outlining the process of creating the micropython-stdlib-stubs package.

Other improvements:

  • tests/quality_tests/.vscode/launch.json: Added a new configuration for debugging pytest tests using the Python debugger.
  • tests/quality_tests/conftest.py: Modified functions to handle specific cases, including adding a print statement to copy_type_stubs, modifying the condition for writing stats in pytest_terminal_summary, and adding an if condition in install_stubs. [1] [2] [3]
  • publish/micropython-stdlib-stubs/pyproject.toml: Updated the version number in the pyproject.toml file.
  • tests/quality_tests/feat_stdlib_only/check_bytes.py: Added code to define constants and variables, and concatenate strings and bytes in check_bytes.py.

Closes #729

…sh pre-release

#729
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
@Josverl Josverl self-assigned this Dec 14, 2023
@Josverl Josverl added the stdlib micropython version of stdlib label Dec 14, 2023
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
split update and testing in separate steps
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Not on push to avoid wasting 15 mins CPU
@Josverl Josverl changed the title improve verity of micropython-stdlib-stubs Improve verity of micropython-stdlib-stubs Dec 14, 2023
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
@Josverl Josverl merged commit dbdff97 into main Dec 14, 2023
2 checks passed
@Josverl Josverl deleted the stdlib_rename_cpython_stubs branch December 14, 2023 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib micropython version of stdlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

micropython stdlib contains some modules that are not available on MicroPython
1 participant