Skip to main content

File support for setuptools declarative setup.cfg

Reason this release was yanked:

Pre-release

Project description

setuptools-declarative-requirements

This projects adds the ability for projects using setuptools declarative configuration to specify requirements using requirements files.

There's a reason why this isn't, at least yet, supported by default. Please read why.

Anyway, if you know what you're doing, then this library solves the missing feature of defining requirements using requirements files.

Setup

Your pyproject.toml should look like:

[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_declarative_requirements"]
build-backend = "setuptools.build_meta"

[requirements]
install_requires = "requirements/base.txt"
tests_requires = "requirements/tests.txt"
[requirements.extras_require]
docs = "requirements/docs.txt"
web = "requirements/web.txt"

⚠ This project makes no attempt to validate your requirements files. The only thing it does is include every non empty line from your requirements files which doesn't start with #, -r and --.

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

Built Distribution

Supported by

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