Skip to main content

EN

RU

Dependencies based on `dependency-groups'.

Usage:

Add dynamic_dependencies[setuptools] to build-system.requires (in the pyproject.toml file). In the project.dynamic list, add dependencies (if you define tool.dynamic_dependencies.require) and/or optional-dependencies (if you define tool.dynamic_dependencies.optional).

[build-system]
requires = [
  "setuptools>=81.0.0",
  "dynamic_dependencies[setuptools]~=1.0",
]
[project]
dynamic = ["dependencies", "optional-dependencies"]

If you use a different backend for the build:

  1. Add dynamic_dependencies instead of dynamic_dependencies[setuptools].
  2. Read the configuration from pyproject.toml dynamic_dependencies.Config.from_pyproject.
  3. Get the dependency lists by calling dynamic_dependencies.dependencies and `dynamic_dependencies.optional_dependencies'.
  4. Write it down in the distribution information.
  5. *If this is a public builder, create a PR/issue to add.

configuration:

[tool.dynamic_dependencies]
require = "name1"
[tool.dynamic_dependencies.optional]
grp1 = "name2"
grp2 = "name3"

The group name1 will be added to the required dependencies. The group name2 will be added to the optional dependencies as grp1 (...[grp1]). The group name3 will be added to the optional dependencies as grp2 (...[grp2]).

RU

EN

Зависимости основанные на dependency-groups.

Использование:

Добавьте dynamic_dependencies[setuptools] в build-system.requires (в файл pyproject.toml). В список project.dynamic добавьте dependencies (если определяете tool.dynamic_dependencies.require) и/или optional-dependencies (если определяете tool.dynamic_dependencies.optional).

[build-system]
requires = [
  "setuptools>=81.0.0",
  "dynamic_dependencies[setuptools]~=1.0",
]
[project]
dynamic = ["dependencies", "optional-dependencies"]

Если вы используете другой бекенд для сборки:

  1. Добавьте dynamic_dependencies, вместо dynamic_dependencies[setuptools].
  2. Прочтите конфигурацию из pyproject.toml dynamic_dependencies.Config.from_pyproject.
  3. Получите списки зависимостей вызвав dynamic_dependencies.dependencies и dynamic_dependencies.optional_dependencies.
  4. Запишите в информацию о дистрибутиве.
  5. *Если это публичный сборщик, создайте PR/issue на добавление.

конфигурация:

[tool.dynamic_dependencies]
require = "name1"
[tool.dynamic_dependencies.optional]
grp1 = "name2"
grp2 = "name3"

Группа name1 будет добавлена в обязательные зависимости. Группа name2 будет добавлена в НЕобязательные зависимости как grp1 (...[grp1]). Группа name3 будет добавлена в НЕобязательные зависимости как grp2 (...[grp2]).

Metadata

Release files for dynamic-dependencies 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dynamic-dependencies 1.0.3
File Size Uploaded
dynamic_dependencies-1.0.3.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dynamic-dependencies 1.0.3
File Interpreter ABI Platform
dynamic_dependencies-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / dynamic_dependencies-1.0.3.tar.gz

Download URL dynamic_dependencies-1.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1f5cb87ee7d0cc5ea5be5d8c2bd112cb3787ad01ee240bc0725f4377d29d7134
BLAKE2b-256 checksum
How to use checksums
5c6c7986667ea3ba816e5eceb6c51a55c0c877c87f1f499f52651337ad8ddcfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release files / dynamic_dependencies-1.0.3-py3-none-any.whl

Download URL dynamic_dependencies-1.0.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
394b7e74a9e23cebc66f88681dbab74f77670e3e2a07a87903bb0e6e8c0fb425
BLAKE2b-256 checksum
How to use checksums
f79a70209da6b9c046d03ecedd977194f27cd5cf41d5fc9275c06c86873fb44e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page