Skip to main content

Install dependencies from a pyproject using pip.

Project description

pip-requirements

Install requirements/dependencies specified in a pyproject.toml using pip.

Features

  • Installs required, optional and/or all dependencies.
  • Detects and works with pip in installed in virtual environments.

Quick Start

  1. Install pip-requirements:

    pip install pip-requirements
    
  2. Install all dependencies of your pyproject.toml

    # use `--optional name` to limit to optional named dependency section
    # use `--required` to install required dependencies
    pip-requirements install --all path/to/pyproject.toml 
    

Why

  • This only exists because it's not builtin to pip.

  • Using requirements.txt files is primitive and redundant compared to the expressiveness of pyproject.toml files..

We should have something like:

pip install --optional=name --required --all path/to/pyproject.toml

Or:

pip requirements install --all path/to/pyproject.toml

Links

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

pyproject-requirements-20240202.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file pyproject-requirements-20240202.tar.gz.

File metadata

File hashes

Hashes for pyproject-requirements-20240202.tar.gz
Algorithm Hash digest
SHA256 957452aadcece0e6a5f3aa7bb173b289e23c5a63c1f93d13c8aac8112b85b8d6
MD5 309a3b19dd7657dc79c73cf2df417a99
BLAKE2b-256 670bf73bb04c68ec3bc37cc584fa66c30d98eef77f524f1fe3ead3a050812cf0

See more details on using hashes here.

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