Skip to content

Commit fb869c6

Browse files
authored
sync with underactuated (#444)
1 parent 2dbcf6d commit fb869c6

File tree

8 files changed

+58
-34
lines changed

8 files changed

+58
-34
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,19 @@ jobs:
150150
# be hermetic:
151151
run: |
152152
pip install -U manipulation[all] --extra-index-url https://drake-packages.csail.mit.edu/whl/nightly/
153-
truncate -s0 requirements.txt
153+
truncate -s0 requirements*.txt
154154
sed -i '/PYTHONNOUSERSITE/d' .bazelrc
155-
bazel run //manipulation:prefetch_remotes
155+
bazel run //manipulation:prefetch_remotes --define=use_dependencies=none
156156
shell: bash
157157
- name: test
158-
run: EXCLUDE_TESTS="//book/htmlbook/..." ./book/htmlbook/workflows/ci/jammy/test
158+
run: |
159+
EXCLUDE_TESTS="(//book/htmlbook/... + attr(name, .*_linktest$, //...))" \
160+
DRAKE_RESOURCE_ROOT=`python3 -c \
161+
"from pathlib import Path; from pydrake.all import GetDrakePath; \
162+
print(Path(GetDrakePath()).parent)"` \
163+
MANIPULATION_DATA_DIR="`pwd`/book/data" \
164+
BAZEL_TEST_FLAGS="--define=use_dependencies=none" \
165+
./book/htmlbook/workflows/ci/jammy/test
159166
shell: bash
160167
jammy-pip-core:
161168
# This should emulate a student's experience if they are doing the psets
@@ -182,9 +189,8 @@ jobs:
182189
run: |
183190
./setup/ubuntu/22.04/install_prereqs.sh
184191
pip install manipulation --extra-index-url https://drake-packages.csail.mit.edu/whl/nightly/
185-
truncate -s0 requirements.txt
192+
truncate -s0 requirements*.txt
186193
sed -i '/PYTHONNOUSERSITE/d' .bazelrc
187-
bazel run //manipulation:prefetch_remotes
188194
shell: bash
189195
- name: test
190196
run: |
@@ -221,13 +227,13 @@ jobs:
221227
run: |
222228
./setup/ubuntu/22.04/install_prereqs.sh
223229
pip install manipulation[all] --extra-index-url https://drake-packages.csail.mit.edu/whl/nightly/
224-
truncate -s0 requirements.txt
230+
truncate -s0 requirements*.txt
225231
sed -i '/PYTHONNOUSERSITE/d' .bazelrc
226-
bazel run //manipulation:prefetch_remotes
232+
bazel run //manipulation:prefetch_remotes --define=use_dependencies=none
227233
shell: bash
228234
- name: test
229235
run: |
230-
EXCLUDE_TESTS="//book/htmlbook/..." \
236+
EXCLUDE_TESTS="(//book/htmlbook/... + attr(name, .*_linktest$, //...))" \
231237
DRAKE_RESOURCE_ROOT=`python3 -c \
232238
"from pathlib import Path; from pydrake.all import GetDrakePath; \
233239
print(Path(GetDrakePath()).parent)"` \

poetry.lock

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ torch = ["torch", "torchvision"]
9191
rl = ["stable_baselines3", "gymnasium"]
9292
mesh = ["pycollada", "trimesh", "vhacdx", "coacd"]
9393
grader = ["gradescope-utils", "timeout-decorator", "nbconvert", "nbformat"]
94-
# 'all' should have all of the optional dependencies required to run bazel in this repo.
94+
# 'all' should have all of the optional dependencies required to run any notebook in this repo.
9595
all = [
9696
"cloudpickle",
9797
"gradescope-utils",
@@ -139,6 +139,8 @@ vhacdx = { version=">=0.0.5", optional=false }
139139
beautifulsoup4 = { version=">=4.6.3" }
140140
black = { version = ">=23.*", extras = ["jupyter"] }
141141
mysql-connector-python = { version=">=8.0.23" }
142+
packaging = ">=24.2"
143+
pip-requirements-parser = ">=32.0"
142144
pre-commit = "^3.4.0"
143145
poetry-pre-commit-plugin = "^0.1.2"
144146
requests = { version=">=2.25.1" }

requirements-bazel-linux.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
--find-links https://download.pytorch.org/whl/torch_stable.html
12
--extra-index-url https://drake-packages.csail.mit.edu/whl/nightly
2-
33
anyio==4.8.0 ; python_version >= "3.10" and python_version < "4.0"
44
asttokens==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
55
attrs==25.1.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -50,7 +50,6 @@ identify==2.6.7 ; python_version >= "3.10" and python_version < "4.0"
5050
idna==3.10 ; python_version >= "3.10" and python_version < "4.0"
5151
importlib-metadata==8.6.1 ; python_version >= "3.10" and python_version < "3.12"
5252
installer==0.7.0 ; python_version >= "3.10" and python_version < "4.0"
53-
intel-openmp==2021.4.0 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"
5453
ipython==8.32.0 ; python_version >= "3.10" and python_version < "4.0"
5554
ipywidgets==8.1.5 ; python_version >= "3.10" and python_version < "4.0"
5655
jaraco-classes==3.4.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -75,7 +74,6 @@ markupsafe==3.0.2 ; python_version >= "3.10" and python_version < "4.0"
7574
matplotlib-inline==0.1.7 ; python_version >= "3.10" and python_version < "4.0"
7675
matplotlib==3.10.0 ; python_version >= "3.10" and python_version < "4.0"
7776
mistune==0.8.4 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
78-
mkl==2021.4.0 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"
7977
more-itertools==10.6.0 ; python_version >= "3.10" and python_version < "4.0"
8078
mpld3==0.5.10 ; python_version >= "3.10" and python_version < "4.0"
8179
mpmath==1.3.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -109,6 +107,7 @@ parso==0.8.4 ; python_version >= "3.10" and python_version < "4.0"
109107
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "4.0"
110108
pexpect==4.9.0 ; python_version >= "3.10" and python_version < "4.0"
111109
pillow==11.1.0 ; python_version >= "3.10" and python_version < "4.0"
110+
pip-requirements-parser==32.0.1 ; python_version >= "3.10" and python_version < "4.0"
112111
pkginfo==1.12.0 ; python_version >= "3.10" and python_version < "4.0"
113112
platformdirs==4.3.6 ; python_version >= "3.10" and python_version < "4.0"
114113
pre-commit==3.8.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -149,17 +148,14 @@ stable-baselines3==2.5.0 ; python_version >= "3.10" and python_version < "4.0"
149148
stack-data==0.6.3 ; python_version >= "3.10" and python_version < "4.0"
150149
svg-path==6.3 ; python_version >= "3.10" and python_version < "4.0"
151150
sympy==1.13.3 ; python_version >= "3.10" and python_version < "4.0"
152-
tbb==2021.13.1 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"
153151
testpath==0.6.0 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
154152
threadpoolctl==3.5.0 ; python_version >= "3.10" and python_version < "4.0"
155153
timeout-decorator==0.5.0 ; python_version >= "3.10" and python_version < "4.0"
156154
tokenize-rt==6.1.0 ; python_version >= "3.10" and python_version < "4.0"
157155
tomli==2.2.1 ; python_version >= "3.10" and python_version < "3.11"
158156
tomlkit==0.13.2 ; python_version >= "3.10" and python_version < "4.0"
159-
--find-links https://download.pytorch.org/whl/torch_stable.html
160-
torch==2.3.1+cpu ; python_version >= "3.10" and sys_platform == "linux"
161-
--find-links https://download.pytorch.org/whl/torch_stable.html
162-
torchvision==0.18.1+cpu ; python_version >= "3.10" and sys_platform == "linux"
157+
torch==2.3.1+cpu ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
158+
torchvision==0.18.1+cpu ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
163159
tornado==6.4.2 ; python_version >= "3.10" and python_version < "4.0" and (sys_platform == "darwin" or sys_platform == "linux")
164160
tqdm==4.67.1 ; python_version >= "3.10" and python_version < "4.0"
165161
traitlets==5.14.3 ; python_version >= "3.10" and python_version < "4.0"

requirements-bazel-mac.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
--find-links https://download.pytorch.org/whl/torch_stable.html
12
--extra-index-url https://drake-packages.csail.mit.edu/whl/nightly
2-
33
anyio==4.8.0 ; python_version >= "3.10" and python_version < "4.0"
44
asttokens==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
55
attrs==25.1.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -48,7 +48,6 @@ identify==2.6.7 ; python_version >= "3.10" and python_version < "4.0"
4848
idna==3.10 ; python_version >= "3.10" and python_version < "4.0"
4949
importlib-metadata==8.6.1 ; python_version >= "3.10" and python_version < "3.12"
5050
installer==0.7.0 ; python_version >= "3.10" and python_version < "4.0"
51-
intel-openmp==2021.4.0 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"
5251
ipython==8.32.0 ; python_version >= "3.10" and python_version < "4.0"
5352
ipywidgets==8.1.5 ; python_version >= "3.10" and python_version < "4.0"
5453
jaraco-classes==3.4.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -72,7 +71,6 @@ markupsafe==3.0.2 ; python_version >= "3.10" and python_version < "4.0"
7271
matplotlib-inline==0.1.7 ; python_version >= "3.10" and python_version < "4.0"
7372
matplotlib==3.10.0 ; python_version >= "3.10" and python_version < "4.0"
7473
mistune==2.0.5 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
75-
mkl==2021.4.0 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"
7674
more-itertools==10.6.0 ; python_version >= "3.10" and python_version < "4.0"
7775
mpld3==0.5.10 ; python_version >= "3.10" and python_version < "4.0"
7876
mpmath==1.3.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -105,6 +103,7 @@ parso==0.8.4 ; python_version >= "3.10" and python_version < "4.0"
105103
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "4.0"
106104
pexpect==4.9.0 ; python_version >= "3.10" and python_version < "4.0"
107105
pillow==11.1.0 ; python_version >= "3.10" and python_version < "4.0"
106+
pip-requirements-parser==32.0.1 ; python_version >= "3.10" and python_version < "4.0"
108107
pkginfo==1.12.0 ; python_version >= "3.10" and python_version < "4.0"
109108
platformdirs==4.3.6 ; python_version >= "3.10" and python_version < "4.0"
110109
pre-commit==3.8.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -144,17 +143,14 @@ stable-baselines3==2.5.0 ; python_version >= "3.10" and python_version < "4.0"
144143
stack-data==0.6.3 ; python_version >= "3.10" and python_version < "4.0"
145144
svg-path==6.3 ; python_version >= "3.10" and python_version < "4.0"
146145
sympy==1.13.3 ; python_version >= "3.10" and python_version < "4.0"
147-
tbb==2021.13.1 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"
148146
threadpoolctl==3.5.0 ; python_version >= "3.10" and python_version < "4.0"
149147
timeout-decorator==0.5.0 ; python_version >= "3.10" and python_version < "4.0"
150148
tinycss2==1.4.0 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
151149
tokenize-rt==6.1.0 ; python_version >= "3.10" and python_version < "4.0"
152150
tomli==2.2.1 ; python_version >= "3.10" and python_version < "3.11"
153151
tomlkit==0.13.2 ; python_version >= "3.10" and python_version < "4.0"
154-
--find-links https://download.pytorch.org/whl/torch_stable.html
155-
torch==2.3.1 ; python_version >= "3.10" and sys_platform == "darwin"
156-
--find-links https://download.pytorch.org/whl/torch_stable.html
157-
torchvision==0.18.1 ; python_version >= "3.10" and sys_platform == "darwin"
152+
torch==2.3.1 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
153+
torchvision==0.18.1 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
158154
tornado==6.4.2 ; python_version >= "3.10" and python_version < "4.0" and (sys_platform == "darwin" or sys_platform == "linux")
159155
tqdm==4.67.1 ; python_version >= "3.10" and python_version < "4.0"
160156
traitlets==5.14.3 ; python_version >= "3.10" and python_version < "4.0"

requirements-bazel.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
--find-links https://download.pytorch.org/whl/torch_stable.html
12
--extra-index-url https://drake-packages.csail.mit.edu/whl/nightly
2-
33
anyio==4.8.0 ; python_version >= "3.10" and python_version < "4.0"
44
asttokens==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
55
attrs==25.1.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -112,6 +112,7 @@ parso==0.8.4 ; python_version >= "3.10" and python_version < "4.0"
112112
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "4.0"
113113
pexpect==4.9.0 ; python_version >= "3.10" and python_version < "4.0"
114114
pillow==11.1.0 ; python_version >= "3.10" and python_version < "4.0"
115+
pip-requirements-parser==32.0.1 ; python_version >= "3.10" and python_version < "4.0"
115116
pkginfo==1.12.0 ; python_version >= "3.10" and python_version < "4.0"
116117
platformdirs==4.3.6 ; python_version >= "3.10" and python_version < "4.0"
117118
pre-commit==3.8.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -161,12 +162,10 @@ tinycss2==1.4.0 ; python_version >= "3.10" and python_version < "4.0" and sys_pl
161162
tokenize-rt==6.1.0 ; python_version >= "3.10" and python_version < "4.0"
162163
tomli==2.2.1 ; python_version >= "3.10" and python_version < "3.11"
163164
tomlkit==0.13.2 ; python_version >= "3.10" and python_version < "4.0"
164-
--find-links https://download.pytorch.org/whl/torch_stable.html
165-
torch==2.3.1+cpu ; python_version >= "3.10" and sys_platform == "linux"
166-
torch==2.3.1 ; python_version >= "3.10" and sys_platform == "darwin"
167-
--find-links https://download.pytorch.org/whl/torch_stable.html
168-
torchvision==0.18.1+cpu ; python_version >= "3.10" and sys_platform == "linux"
169-
torchvision==0.18.1 ; python_version >= "3.10" and sys_platform == "darwin"
165+
torch==2.3.1 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
166+
torch==2.3.1+cpu ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
167+
torchvision==0.18.1 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
168+
torchvision==0.18.1+cpu ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "linux"
170169
tornado==6.4.2 ; python_version >= "3.10" and python_version < "4.0" and (sys_platform == "darwin" or sys_platform == "linux")
171170
tqdm==4.67.1 ; python_version >= "3.10" and python_version < "4.0"
172171
traitlets==5.14.3 ; python_version >= "3.10" and python_version < "4.0"

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
--find-links https://download.pytorch.org/whl/torch_stable.html
12
--extra-index-url https://drake-packages.csail.mit.edu/whl/nightly
23

34
anyio==4.8.0 ; python_version >= "3.10" and python_version < "4.0"
@@ -112,8 +113,13 @@ parso==0.8.4 ; python_version >= "3.10" and python_version < "4.0"
112113
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "4.0"
113114
pexpect==4.9.0 ; python_version >= "3.10" and python_version < "4.0"
114115
pillow==11.1.0 ; python_version >= "3.10" and python_version < "4.0"
116+
pip-requirements-parser==32.0.1 ; python_version >= "3.10" and python_version < "4.0"
115117
pkginfo==1.12.0 ; python_version >= "3.10" and python_version < "4.0"
116118
platformdirs==4.3.6 ; python_version >= "3.10" and python_version < "4.0"
119+
poetry-core==1.9.1 ; python_version >= "3.10" and python_version < "4.0"
120+
poetry-plugin-export==1.8.0 ; python_version >= "3.10" and python_version < "4.0"
121+
poetry-pre-commit-plugin==0.1.2 ; python_version >= "3.10" and python_version < "4.0"
122+
poetry==1.8.5 ; python_version >= "3.10" and python_version < "4.0"
117123
pre-commit==3.8.0 ; python_version >= "3.10" and python_version < "4.0"
118124
prompt-toolkit==3.0.50 ; python_version >= "3.10" and python_version < "4.0"
119125
psutil==7.0.0 ; python_version >= "3.10" and python_version < "4.0"

0 commit comments

Comments
 (0)