-
Notifications
You must be signed in to change notification settings - Fork 216
/
Copy pathpyproject.toml
133 lines (122 loc) · 3.6 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[tool.poetry]
name = "underactuated"
# Use e.g. 2023.10.4.rc0 if I need to release a release candidate.
# Use e.g. 2023.10.4.post1 if I need to rerelease on the same day.
version = "2025.1.3"
description = "MIT 6.821 - Underactuated Robotics"
authors = ["Russ Tedrake <[email protected]>"]
license = "BSD License"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License"
]
include = [
"LICENSE.txt",
"README.md",
"pyproject.toml",
"underactuated/**/*.jpg",
"underactuated/**/*.md",
"underactuated/**/*.mtl",
"underactuated/**/*.npy",
"underactuated/**/*.obj",
"underactuated/**/*.py",
"underactuated/**/*.sdf",
"underactuated/**/*.txt",
"underactuated/**/*.urdf",
"underactuated/**/*.xml",
"underactuated/**/*.yaml"
]
exclude = [
"*.egg-info/**",
"**/__pycache__/**",
"**/*.bazel",
"**/test/**",
"bazel-*",
"book/**",
"solutions/**",
"figures/**"
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[[tool.poetry.source]]
name = "drake-nightly"
url = "https://drake-packages.csail.mit.edu/whl/nightly/"
priority = "explicit"
[tool.poetry.dependencies]
python = "<4.0,>=3.10"
#drake = { version = ">=0.0.20240307 <1.0", source = "drake-nightly" }
drake = ">=1.36.0"
gradescope-utils = { version=">=0.4.0", optional=true }
ipywidgets = { version=">=8" } # TODO: purge this
lxml = {version = ">=4.9.2", extras = ["html_clean"], optional=true }
# Note: matplotlib gets additional handling in PoetryExport.sh for bazel.
matplotlib = ">=3.7.0" # old versions don't build in XCode
mpld3 = ">=0.5.1"
nbconvert = [
{platform="darwin", version="7.0.0", optional=true},
{platform="linux", version="6.4.0", optional=true},
]
numpy = "<2.0.0" # https://github.com/RobotLocomotion/drake/issues/21577
pandas = { version=">=2.0", optional=true }
pydot = ">=1.3.0"
scipy = { version=">=1.10.0", optional=true }
timeout-decorator = { version=">=0.4.1", optional=true }
[tool.poetry.extras]
grader = ["gradescope-utils", "timeout-decorator", "nbconvert", "nbformat"]
all = ["gradescope-utils", "lxml", "nbconvert", "pandas", "scipy", "timeout-decorator" ]
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
# Must include all dependencies required to build the docs with sphinx +
# autodoc, even if it repeats some dependencies from main, because my sphinx
# script uses `poetry install --only docs`. This include any requirements
# needed to import for a file that sphinx autodoc is trying to index.
# Should match drake version above.
#drake = { version = ">=0.0.20240307 <1.0", source = "drake-nightly" }
drake = ">=1.36.0"
ipython = ">=7.8.0"
sphinx = ">=7.2.6"
myst-parser = ">=2.0.0"
sphinx_rtd_theme = ">=2.0.0"
[tool.poetry.group.dev.dependencies]
# These should not appear as requirements in any BUILD.bazel (except htmlbook)
beautifulsoup4 = ">=4.6.3"
black = { version = ">=23.*", extras = ["jupyter"] }
mysql-connector-python = ">=8.0.23"
poetry-plugin-export = ">=1.6.0"
pre-commit = "^3.4.0"
poetry-pre-commit-plugin = "^0.1.2"
requests = ">=2.25.1"
[tool.black]
include = '\.ipynb?$|\.pyi?$'
exclude = '''
/(
\.git
| \.history
| bazel-*
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
skip_glob = [
"**/.git/**",
"**/.history/**",
"bazel-*",
"**/.venv/**",
"**/build/**",
"**/dist/**",
]
[tool.autoflake]
in-place = true
recursive = true
expand-star-imports = true
ignore-init-module-imports = true
remove-all-unused-imports = true
remove-duplicate-keys = true
remove-unused-variables = true