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

Install .pyi files #18074

Merged
merged 2 commits into from
Oct 11, 2022
Merged

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Oct 11, 2022

Towards #16987.

This reverts commit 9a0f31a (#17746), effectively re-applying commit a61a184 (#17709).

The plan is to squash this on merge; the two commits are for review purposes only.


Add rules to generate (as part of the build) and install type stubs for pydrake. Modify wheel build to include these as well.

Note that this makes numpy and matplotlib build-time dependencies. (Previously they were only required to test/run pydrake.)

Note also that there are issues remaining with the .pyi's; in particular, they are completely unusable by mypy.


This change is Reviewable

mwoehlke-kitware and others added 2 commits October 11, 2022 08:19
This reverts commit 9a0f31a, effectively
re-applying commit a61a184.

Add rules to generate (as part of the build) and install type stubs for
pydrake. Modify wheel build to include these as well.

Note that this makes numpy and matplotlib build-time dependencies.
(Previously they were only required to test/run pydrake.)

Note also that there are issues remaining with the .pyi's; in
particular, they are completely unusable by mypy.
@jwnimmer-tri jwnimmer-tri added priority: medium status: single reviewer ok https://drake.mit.edu/reviewable.html release notes: feature This pull request contains a new feature labels Oct 11, 2022
@jwnimmer-tri jwnimmer-tri marked this pull request as ready for review October 11, 2022 15:22
@jwnimmer-tri
Copy link
Collaborator Author

@drake-jenkins-bot linux-focal-unprovisioned-gcc-wheel-experimental-snopt-mosek-release please
@drake-jenkins-bot mac-big-sur-unprovisioned-clang-wheel-experimental-snopt-mosek-release please

@jwnimmer-tri
Copy link
Collaborator Author

+@rpoyner-tri for both reviews per schedule, please.

Note that r1 contains an unrevert so hopefully can be mostly glossed over. The r2 is the new fixes, just a few list-of-modules tweaks.

Copy link
Contributor

@rpoyner-tri rpoyner-tri left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 7 of 7 files at r1, 1 of 1 files at r2.
Reviewable status: commits need curation (https://drake.mit.edu/reviewable.html#curated-commits) (waiting on @jwnimmer-tri)

Copy link
Contributor

@rpoyner-tri rpoyner-tri left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: commits need curation (https://drake.mit.edu/reviewable.html#curated-commits) (waiting on @jwnimmer-tri)

@jwnimmer-tri jwnimmer-tri merged commit 579f07f into RobotLocomotion:master Oct 11, 2022
@jwnimmer-tri jwnimmer-tri added the status: squashing now https://drake.mit.edu/reviewable.html#curated-commits label Oct 11, 2022
@jwnimmer-tri jwnimmer-tri deleted the pyi-unrevert branch October 11, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium release notes: feature This pull request contains a new feature status: single reviewer ok https://drake.mit.edu/reviewable.html status: squashing now https://drake.mit.edu/reviewable.html#curated-commits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants