Clarify requirements file format in docs (#17284)

Co-authored-by: William Woodruff <william@yossarian.net>
This commit is contained in:
Sofie Van Landeghem
2026-01-02 17:40:10 +01:00
committed by GitHub
parent 0fafde3f6e
commit d0088c1914

View File

@@ -38,10 +38,11 @@ more details on getting started with a `pyproject.toml`.
## Using `requirements.in`
It is also common to use a lightweight `requirements.txt` format to declare the dependencies for the
project. Each requirement is defined on its own line. Commonly, this file is called
`requirements.in` to distinguish it from `requirements.txt` which is used for the locked
dependencies.
It is also common to use a lightweight
[requirements file format](https://pip.pypa.io/en/stable/reference/requirements-file-format/) to
declare the dependencies for the project. Each requirement is defined on its own line. Commonly,
this file is called `requirements.in` to distinguish it from `requirements.txt` which is used for
the locked dependencies.
To define dependencies in a `requirements.in` file: