@@ -253,28 +253,28 @@ as:
253253 <https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table> `_
254254 * :pep: `345 `
255255
256- Optional dependencies
257- ~~~~~~~~~~~~~~~~~~~~~
256+ Dependency groups
257+ ~~~~~~~~~~~~~~~~~
258258
259- ``project.optional-dependencies ``
260- allows you to specify optional dependencies for your package. You can also
259+ ``dependency-groups ``
260+ allows you to specify dependency groups for your package. You can also
261261 distinguish between different sets:
262262
263263.. literalinclude :: dataprep/pyproject.toml
264264 :language: toml
265265 :lines: 24-34
266266 :lineno-start: 34
267267
268- Recursive optional dependencies are also possible with pip ≥ 21.2. For example,
269- for `` dev `` you can take over all dependencies from ``docs `` and ``test `` in
270- addition to ``pre-commit ``:
268+ Recursive dependency groups are also possible. For example, for `` dev `` you can
269+ take over all dependencies from ``docs `` and ``test `` in addition to
270+ ``pre-commit ``:
271271
272272.. literalinclude :: dataprep/pyproject.toml
273273 :language: toml
274274 :lines: 35-39
275275 :lineno-start: 35
276276
277- You can install these optional dependencies , for example with:
277+ You can install these dependency groups , for example with:
278278
279279.. tab :: Linux/macOS
280280
@@ -284,7 +284,7 @@ You can install these optional dependencies, for example with:
284284 $ python3 -m venv .venv
285285 $ . .venv/bin/activate
286286 $ python -m pip install --upgrade pip
287- $ python -m pip install -e ".[ dev]"
287+ $ python -m pip install --group dev
288288
289289 .. tab :: Windows
290290
@@ -294,7 +294,12 @@ You can install these optional dependencies, for example with:
294294 > python3 - m venv .venv
295295 > .venv\Scripts\activate.bat
296296 > python - m pip install -- upgrade pip
297- > python - m pip install - e " .[dev]"
297+ > python - m pip install -- group dev
298+
299+ .. seealso ::
300+ * :pep: `735 `
301+ * `Dependency Groups
302+ <https://packaging.python.org/en/latest/specifications/dependency-groups/> `_
298303
299304:file: `src ` package
300305-------------------
0 commit comments