Skip to main content

Add requirements.txt automatically to wheel dependencies

Project description

Build status

A PEP 517 build backend that automatically adds requirements.txt contents to wheel dependencies.

Usage

Use setup_requirements as your build backend in pyproject.toml:

[build-system]
requires = ['setuptools>=42', 'wheel', 'setup-requirements']
build-backend = 'setup_requirements'

Notes

This backend should be used if you want to build an application with pinned dependencies. For libraries use standard install_requires without pins.

The backend exists only because it’s not possible to use file: in install_requires (yet?). See this github issue.

Limitations

It’s not possible to use a different path than a top-level requirements.txt file.

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

setup_requirements-1.2.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

setup_requirements-1.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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