A setuptools plugin that allows dependencies to be specified dynamically based on the package's version number. It enables conditional dependency resolution within setup.py/pyproject.toml using version-range expressions. Current version 1.0.0, requires Python >=3.9, maintained by BeeWare project.
pip install setuptools-dynamic-dependenciesVerified import paths — ran on the pinned version, not inferred.
Basic integration with setuptools setup() to dynamically resolve dependencies based on package version.
Remove plugin and define dynamic dependencies natively in pyproject.toml using setuptools directives.
Ensure version is defined before calling DynamicDependencies, either hardcoded or via a fallback.
Read the documentation for supported operators: >, >=, <, <=, ==, and combination with commas.