Skip to content

Install dependencies from pyproject.toml like from requirements.txt with -r #11584

@PaleNeutron

Description

@PaleNeutron

What's the problem this feature will solve?

Python encourage user to put all project infomation into one file: pyproject.toml , including dependencies.

But currently, users who want to just install dependencies and run a project, I mean not install it into site-packages, could not do this just with pip.

People have to use pip-tools generate requirements.txt first.

Describe the solution you'd like

pip install -r pyproject.toml

Alternative Solutions

$ pip install pip-tools
$ python -m piptools compile \
    -o requirements.txt \
    pyproject.toml
$ pip install -r requirements.txt 

Additional context

No

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions