Skip to content

refine stubs-building procedure #4907

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 10 commits into from
Jul 15, 2021
Merged

refine stubs-building procedure #4907

merged 10 commits into from
Jul 15, 2021

Conversation

jepler
Copy link

@jepler jepler commented Jun 22, 2021

  • so that excess files are not included in sdist, perform build down in circuitpython-stubs
  • This means we need to
    • Remove the need-pypi check
    • Copy a setup.py, README, and MANIFEST.in into the stubs build location
    • Revamp how the overall mypy --strict check lists its inputs
  • Add a new test that actually installing the stubs lets us do type checking (tools/test-stubs.sh)
  • Add a missing return type to a __init__ function (why was this not an error under mypy --strict, I wonder)

 * so that excess files are not included in sdist, perform build down
   in circuitpython-stubs
 * This means we need to
   * Remove the need-pypi check
   * Copy a setup.py, README, and MANIFEST.in into the stubs build location
   * Revamp how the overall `mypy --strict` check lists its inputs
 * Add a new test that actually installing the stubs lets us do type
   checking (tools/test-stubs.sh)
 * Add a missing return type to a __init__ function (why was this not
   an error under `mypy --strict`, I wonder)
@jepler jepler requested a review from FoamyGuy June 22, 2021 14:00
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.

README looks good. Thanks!

@dhalbert
Copy link
Collaborator

dhalbert commented Jul 1, 2021

Merge conflict to fix.

@jepler jepler requested review from tannewt and dhalbert July 9, 2021 00:06
@jepler
Copy link
Author

jepler commented Jul 9, 2021

Ready for re-review!

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 merged commit c16f559 into adafruit:main Jul 15, 2021
@jepler jepler deleted the refine-stubs branch November 3, 2021 21:10
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.

4 participants