|
24 | 24 | "common-wheels": "tests/data/common_wheels",
|
25 | 25 | "protected-pip": "tools/protected_pip.py",
|
26 | 26 | }
|
27 |
| -REQUIREMENTS = { |
28 |
| - "docs": "docs/requirements.txt", |
29 |
| -} |
30 | 27 |
|
31 | 28 | AUTHORS_FILE = "AUTHORS.txt"
|
32 | 29 | VERSION_FILE = "src/pip/__init__.py"
|
@@ -132,7 +129,7 @@ def test(session: nox.Session) -> None:
|
132 | 129 |
|
133 | 130 | @nox.session
|
134 | 131 | def docs(session: nox.Session) -> None:
|
135 |
| - session.install("-r", REQUIREMENTS["docs"]) |
| 132 | + session.install("--group", "docs") |
136 | 133 |
|
137 | 134 | def get_sphinx_build_command(kind: str) -> list[str]:
|
138 | 135 | # Having the conf.py in the docs/html is weird but needed because we
|
@@ -161,7 +158,7 @@ def get_sphinx_build_command(kind: str) -> list[str]:
|
161 | 158 |
|
162 | 159 | @nox.session(name="docs-live")
|
163 | 160 | def docs_live(session: nox.Session) -> None:
|
164 |
| - session.install("-r", REQUIREMENTS["docs"], "sphinx-autobuild") |
| 161 | + session.install("--group", "docs", "sphinx-autobuild") |
165 | 162 |
|
166 | 163 | session.run(
|
167 | 164 | "sphinx-autobuild",
|
@@ -267,7 +264,7 @@ def coverage(session: nox.Session) -> None:
|
267 | 264 | run_with_protected_pip(session, "install", ".")
|
268 | 265 |
|
269 | 266 | # Install test dependencies
|
270 |
| - run_with_protected_pip(session, "install", "-r", REQUIREMENTS["tests"]) |
| 267 | + run_with_protected_pip(session, "install", "--group", "tests") |
271 | 268 |
|
272 | 269 | if not os.path.exists(".coverage-output"):
|
273 | 270 | os.mkdir(".coverage-output")
|
|
0 commit comments