Skip to main content

Dependencies based on `dependency-groups'.

Reason this release was yanked:

not work

Project description

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"
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"
optional = {
    "grp1" = "name2",
    "grp2" = "name3"
}

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynamic_dependencies-1.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dynamic_dependencies-1.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file dynamic_dependencies-1.0.1.tar.gz.

File metadata

  • Download URL: dynamic_dependencies-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dynamic_dependencies-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e1200d11ea45b800f628d0057efd5119ce6fe8f4bc4a06e93d0d1d2623ea64a1
MD5 99f43372cb542badc4648facb23089b1
BLAKE2b-256 88ec1d586bcca73caacc48b8314f58235042cb1f3c198bea922f09c00fa654fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynamic_dependencies-1.0.1.tar.gz:

Publisher: release.yml on zedzhen/dynamic-dependencies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dynamic_dependencies-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dynamic_dependencies-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 759a2ed7e81cbf4f1cbb9e0d27d12453fa23d9f927bf2accee90afe50d93086d
MD5 ceb52b3dc1354fa6389b34a75500d5fc
BLAKE2b-256 eda8f1fabd2e83d1a8031a9d4ec7bd4754b4bb6cefceb6d65a10dc0e251201f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynamic_dependencies-1.0.1-py3-none-any.whl:

Publisher: release.yml on zedzhen/dynamic-dependencies

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page