@@ -119,7 +119,7 @@ To update one or more dependencies to the latest allowed version, run:
119
119
If you need to add some dependencies from VCS references (e.g. when a library
120
120
with a patch you need is not available as a release on a package index), add
121
121
the dependency as usual in your project, then add the VCS reference to a file
122
- named ``requirements .txt.in `` like this::
122
+ named ``constraints .txt `` like this::
123
123
124
124
DEPENDENCYNAME @ git+https://g.c/org/project@branch
125
125
@@ -129,7 +129,7 @@ reference pinned at the exact commit that was installed (you need pip version
129
129
the same branch, simply use ``pip-df sync --update DEPENDENCYNAME ``.
130
130
131
131
When, later again, your branch is merged upstream and the project has published
132
- a release, remove the line from ``requirements .txt.in `` and run ``pip-df sync
132
+ a release, remove the line from ``constraints .txt `` and run ``pip-df sync
133
133
--update DEPENDENCYNAME `` to update to the latest released version.
134
134
135
135
How to
@@ -173,11 +173,11 @@ Refreshing all pinned dependencies.
173
173
``pip-df sync --update-all ``. This is equivalent to removing
174
174
``requirements.txt `` then running ``pip-df sync ``. This is also roughly
175
175
equivalent to reinstalling in an empty virtualenv with ``pip install -e . -c
176
- requirements .txt.in `` then running ``pip freeze > requirements.txt ``.
176
+ constraints .txt `` then running ``pip freeze > requirements.txt ``.
177
177
178
178
Using another package index than PyPI.
179
179
180
- Create a file named ``requirements .txt.in `` in your project root, and add
180
+ Create a file named ``constraints .txt `` in your project root, and add
181
181
pip options to it, such as ``--extra-index-url `` or ``--find-links ``. You
182
182
can add any option that `pip supports in requirements files
183
183
<https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format> `_.
@@ -189,14 +189,14 @@ Installing dependencies from VCS.
189
189
it. Assume for instance your project depends on the ``packaging `` library
190
190
and you want to install a pull request you made to it. To do so, make sure
191
191
``packaging `` is declared as a regular dependency of your project. Then
192
- add the VCS reference in ``requirements .txt.in `` like so::
192
+ add the VCS reference in ``constraints .txt `` like so::
193
193
194
194
packaging @ git+https://github.com/you/packaging@your-branch
195
195
196
196
Then run ``pip-df sync --update packaging `` to install from the branch and
197
197
pin the exact commit in ``requirements.txt `` for reproducibility. When
198
198
upstream merges your PR and cuts a release, you can simply remove the line
199
- from ``requirements .txt.in `` and run ``pip-df sync --update packaging `` to
199
+ from ``constraints .txt `` and run ``pip-df sync --update packaging `` to
200
200
refresh to the latest released version.
201
201
202
202
Working with extras.
@@ -212,16 +212,16 @@ Working with extras.
212
212
FAQ
213
213
---
214
214
215
- What should I put in ``requirements .txt.in ``? Should I add all my dependencies
215
+ What should I put in ``constraints .txt ``? Should I add all my dependencies
216
216
there?
217
217
218
- ``requirements .txt.in `` is optional. The dependencies of your project must be
218
+ ``constraints .txt `` is optional. The dependencies of your project must be
219
219
declared primarily in ``pyproject.toml `` (or the legacy ``setup.py/setup.cfg ``).
220
- ``requirements .txt.in `` may contain additional constraints if needed, such as version
220
+ ``constraints .txt `` may contain additional constraints if needed, such as version
221
221
constraints on indirect dependencies that you don't control, or VCS links for
222
222
dependencies that you need to install from VCS source.
223
223
224
- I have added a constraint in ``requirements .txt.in `` but ``pip-df sync `` does
224
+ I have added a constraint in ``constraints .txt `` but ``pip-df sync `` does
225
225
not honor it. What is going on?
226
226
227
227
``pip-df sync `` always gives priority to versions pinned in ``requirements.txt ``,
@@ -243,7 +243,7 @@ not honor it. What is going on?
243
243
How can I pass options to pip?
244
244
245
245
The most reliable and repeatable way to pass options to pip is to add them
246
- in ``requirements .txt.in ``. The pip documentation lists `options that are
246
+ in ``constraints .txt ``. The pip documentation lists `options that are
247
247
allowed in requirements files
248
248
<https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format> `_.
249
249
Global options can also be set in the pip configuration file or passed via
@@ -321,7 +321,7 @@ pip-df sync
321
321
322
322
Install/reinstall the project. Install/update dependencies to the latest
323
323
allowed version according to pinned dependencies in requirements.txt or
324
- constraints in requirements .txt.in . On demand update of dependencies to to
324
+ constraints in constraints .txt. On demand update of dependencies to to
325
325
the latest version that matches constraints. Optionally uninstall unneeded
326
326
dependencies.
327
327
0 commit comments