Skip to content

Commit 5ae320b

Browse files
committed
Refactor optional dependencies in pyproject.toml to retain old pip behaviour
This sadly introduces some duplication for [all].
1 parent 4bdcfd6 commit 5ae320b

File tree

2 files changed

+47
-31
lines changed

2 files changed

+47
-31
lines changed

pyproject.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ nle-ttyplay = "nle.scripts.ttyplay:main"
3939
nle-ttyplay2 = "nle.scripts.ttyplay2:main"
4040
nle-read-tty = "nle.scripts.read_tty:main"
4141

42-
[dependency-groups]
42+
[project.optional-dependencies]
4343
dev = [
4444
"pre-commit>=2.0.1",
4545
"isort>=5.13.2",
@@ -54,8 +54,21 @@ dev = [
5454
]
5555
agent = ["torch>=1.3.1"]
5656
all = [
57-
{include-group = "agent"},
58-
{include-group = "dev"},
57+
"pre-commit>=2.0.1",
58+
"isort>=5.13.2",
59+
"cmake_format>=0.6.10",
60+
"memory-profiler>=0.60.0",
61+
"pytest>=6.2.5",
62+
"pytest-benchmark>=3.4.1",
63+
"sphinx>=2.4.4",
64+
"sphinx-rtd-theme>=0.4.3",
65+
"setuptools>=69.5.1",
66+
"ruff>=0.4.3","torch>=1.3.1"
67+
]
68+
69+
[dependency-groups]
70+
dev = [
71+
"nle[dev]"
5972
]
6073

6174
[tool.black]

uv.lock

Lines changed: 31 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)