Skip to content
Search

PEP 685

lastmod 2023-08-11created 2023-08-111 edits

Comparison of extra names for optional distribution dependencies

Example

Appending [all], as in pip install fastapi[all], installs the optional dependency packages.

setup.cfg options.extras_require

In setup.cfg, use options.extras_require:

[metadata]
name = Package-A

[options.extras_require]
PDF =
    ReportLab>=1.2
    RXP

For reference, in pyproject.toml, use [project.optional-dependencies].

See also

Favorite site

author Zer0 sitemap