Debian Codegraph @

third_party/python/pip_tools/pip_tools-7.4.1.dist-info/METADATA

raw
1 Metadata-Version: 2.1
2 Name: pip-tools
3 Version: 7.4.1
4 Summary: pip-tools keeps your pinned dependencies fresh.
5 Author-email: Vincent Driessen <[email protected]>
6 License: BSD
7 Project-URL: homepage, https://github.com/jazzband/pip-tools/
8 Project-URL: documentation, https://pip-tools.readthedocs.io/en/latest/
9 Project-URL: repository, https://github.com/jazzband/pip-tools
10 Project-URL: changelog, https://github.com/jazzband/pip-tools/releases
11 Keywords: pip,requirements,packaging
12 Classifier: Development Status :: 5 - Production/Stable
13 Classifier: Environment :: Console
14 Classifier: Intended Audience :: Developers
15 Classifier: Intended Audience :: System Administrators
16 Classifier: License :: OSI Approved :: BSD License
17 Classifier: Operating System :: OS Independent
18 Classifier: Programming Language :: Python :: 3 :: Only
19 Classifier: Programming Language :: Python :: 3
20 Classifier: Programming Language :: Python :: 3.10
21 Classifier: Programming Language :: Python :: 3.11
22 Classifier: Programming Language :: Python :: 3.8
23 Classifier: Programming Language :: Python :: 3.9
24 Classifier: Programming Language :: Python :: Implementation :: CPython
25 Classifier: Programming Language :: Python :: Implementation :: PyPy
26 Classifier: Programming Language :: Python
27 Classifier: Topic :: Software Development :: Quality Assurance
28 Classifier: Topic :: Software Development :: Testing
29 Classifier: Topic :: System :: Systems Administration
30 Classifier: Topic :: Utilities
31 Classifier: Typing :: Typed
32 Requires-Python: >=3.8
33 Description-Content-Type: text/markdown
34 License-File: LICENSE
35 Requires-Dist: build >=1.0.0
36 Requires-Dist: click >=8
37 Requires-Dist: pip >=22.2
38 Requires-Dist: pyproject-hooks
39 Requires-Dist: setuptools
40 Requires-Dist: wheel
41 Requires-Dist: tomli ; python_version < "3.11"
42 Provides-Extra: coverage
43 Requires-Dist: covdefaults ; extra == 'coverage'
44 Requires-Dist: pytest-cov ; extra == 'coverage'
45 Provides-Extra: testing
46 Requires-Dist: pytest >=7.2.0 ; extra == 'testing'
47 Requires-Dist: pytest-rerunfailures ; extra == 'testing'
48 Requires-Dist: pytest-xdist ; extra == 'testing'
49 Requires-Dist: tomli-w ; extra == 'testing'
50 Requires-Dist: flit-core <4,>=2 ; extra == 'testing'
51 Requires-Dist: poetry-core >=1.0.0 ; extra == 'testing'
52
53 [![jazzband-image]][jazzband]
54 [![pypi][pypi-image]][pypi]
55 [![pyversions][pyversions-image]][pyversions]
56 [![pre-commit][pre-commit-image]][pre-commit]
57 [![buildstatus-gha][buildstatus-gha-image]][buildstatus-gha]
58 [![codecov][codecov-image]][codecov]
59 [![Matrix Room Badge]][Matrix Room]
60 [![Matrix Space Badge]][Matrix Space]
61 [![discord-chat-image]][discord-chat]
62
63 # pip-tools = pip-compile + pip-sync
64
65 A set of command line tools to help you keep your `pip`-based packages fresh,
66 even when you've pinned them. You do pin them, right? (In building your Python application and its dependencies for production, you want to make sure that your builds are predictable and deterministic.)
67
68 [![pip-tools overview for phase II][pip-tools-overview]][pip-tools-overview]
69
70 ## Installation
71
72 Similar to `pip`, `pip-tools` must be installed in each of your project's
73 [virtual environments](https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments):
74
75 ```console
76 $ source /path/to/venv/bin/activate
77 (venv) $ python -m pip install pip-tools
78 ```
79
80 **Note**: all of the remaining example commands assume you've activated your
81 project's virtual environment.
82
83 ## Example usage for `pip-compile`
84
85 The `pip-compile` command lets you compile a `requirements.txt` file from
86 your dependencies, specified in either `pyproject.toml`, `setup.cfg`,
87 `setup.py`, or `requirements.in`.
88
89 Run it with `pip-compile` or `python -m piptools compile` (or
90 `pipx run --spec pip-tools pip-compile` if `pipx` was installed with the
91 appropriate Python version). If you use multiple Python versions, you can also
92 run `py -X.Y -m piptools compile` on Windows and `pythonX.Y -m piptools compile`
93 on other systems.
94
95 `pip-compile` should be run from the same virtual environment as your
96 project so conditional dependencies that require a specific Python version,
97 or other environment markers, resolve relative to your project's
98 environment.
99
100 **Note**: If `pip-compile` finds an existing `requirements.txt` file that
101 fulfils the dependencies then no changes will be made, even if updates are
102 available. To compile from scratch, first delete the existing
103 `requirements.txt` file, or see
104 [Updating requirements](#updating-requirements)
105 for alternative approaches.
106
107 ### Requirements from `pyproject.toml`
108
109 The `pyproject.toml` file is the
110 [latest standard](https://peps.python.org/pep-0621/) for configuring
111 packages and applications, and is recommended for new projects. `pip-compile`
112 supports both installing your `project.dependencies` as well as your
113 `project.optional-dependencies`. Thanks to the fact that this is an
114 official standard, you can use `pip-compile` to pin the dependencies
115 in projects that use modern standards-adhering packaging tools like
116 [Setuptools](https://setuptools.pypa.io), [Hatch](https://hatch.pypa.io/)
117 or [flit](https://flit.pypa.io/).
118
119 Suppose you have a 'foobar' Python application that is packaged using `Setuptools`,
120 and you want to pin it for production. You can declare the project metadata as:
121
122 ```toml
123 [build-system]
124 requires = ["setuptools", "setuptools-scm"]
125 build-backend = "setuptools.build_meta"
126
127 [project]
128 requires-python = ">=3.9"
129 name = "foobar"
130 dynamic = ["dependencies", "optional-dependencies"]
131
132 [tool.setuptools.dynamic]
133 dependencies = { file = ["requirements.in"] }
134 optional-dependencies.test = { file = ["requirements-test.txt"] }
135
136 ```
137
138 If you have a Django application that is packaged using `Hatch`, and you
139 want to pin it for production. You also want to pin your development tools
140 in a separate pin file. You declare `django` as a dependency and create an
141 optional dependency `dev` that includes `pytest`:
142
143 ```toml
144 [build-system]
145 requires = ["hatchling"]
146 build-backend = "hatchling.build"
147
148 [project]
149 name = "my-cool-django-app"
150 version = "42"
151 dependencies = ["django"]
152
153 [project.optional-dependencies]
154 dev = ["pytest"]
155 ```
156
157 You can produce your pin files as easily as:
158
159 ```console
160 $ pip-compile -o requirements.txt pyproject.toml
161 #
162 # This file is autogenerated by pip-compile with Python 3.10
163 # by the following command:
164 #
165 # pip-compile --output-file=requirements.txt pyproject.toml
166 #
167 asgiref==3.6.0
168 # via django
169 django==4.1.7
170 # via my-cool-django-app (pyproject.toml)
171 sqlparse==0.4.3
172 # via django
173
174 $ pip-compile --extra dev -o dev-requirements.txt pyproject.toml
175 #
176 # This file is autogenerated by pip-compile with Python 3.10
177 # by the following command:
178 #
179 # pip-compile --extra=dev --output-file=dev-requirements.txt pyproject.toml
180 #
181 asgiref==3.6.0
182 # via django
183 attrs==22.2.0
184 # via pytest
185 django==4.1.7
186 # via my-cool-django-app (pyproject.toml)
187 exceptiongroup==1.1.1
188 # via pytest
189 iniconfig==2.0.0
190 # via pytest
191 packaging==23.0
192 # via pytest
193 pluggy==1.0.0
194 # via pytest
195 pytest==7.2.2
196 # via my-cool-django-app (pyproject.toml)
197 sqlparse==0.4.3
198 # via django
199 tomli==2.0.1
200 # via pytest
201 ```
202
203 This is great for both pinning your applications, but also to keep the CI
204 of your open-source Python package stable.
205
206 ### Requirements from `setup.py` and `setup.cfg`
207
208 `pip-compile` has also full support for `setup.py`- and
209 `setup.cfg`-based projects that use `setuptools`.
210
211 Just define your dependencies and extras as usual and run
212 `pip-compile` as above.
213
214 ### Requirements from `requirements.in`
215
216 You can also use plain text files for your requirements (e.g. if you don't
217 want your application to be a package). To use a `requirements.in` file to
218 declare the Django dependency:
219
220 ```
221 # requirements.in
222 django
223 ```
224
225 Now, run `pip-compile requirements.in`:
226
227 ```console
228 $ pip-compile requirements.in
229 #
230 # This file is autogenerated by pip-compile with Python 3.10
231 # by the following command:
232 #
233 # pip-compile requirements.in
234 #
235 asgiref==3.6.0
236 # via django
237 django==4.1.7
238 # via -r requirements.in
239 sqlparse==0.4.3
240 # via django
241 ```
242
243 And it will produce your `requirements.txt`, with all the Django dependencies
244 (and all underlying dependencies) pinned.
245
246 (updating-requirements)=
247
248 ### Updating requirements
249
250 `pip-compile` generates a `requirements.txt` file using the latest versions
251 that fulfil the dependencies you specify in the supported files.
252
253 If `pip-compile` finds an existing `requirements.txt` file that fulfils the
254 dependencies then no changes will be made, even if updates are available.
255
256 To force `pip-compile` to update all packages in an existing
257 `requirements.txt`, run `pip-compile --upgrade`.
258
259 To update a specific package to the latest or a specific version use the
260 `--upgrade-package` or `-P` flag:
261
262 ```console
263 # only update the django package
264 $ pip-compile --upgrade-package django
265
266 # update both the django and requests packages
267 $ pip-compile --upgrade-package django --upgrade-package requests
268
269 # update the django package to the latest, and requests to v2.0.0
270 $ pip-compile --upgrade-package django --upgrade-package requests==2.0.0
271 ```
272
273 You can combine `--upgrade` and `--upgrade-package` in one command, to
274 provide constraints on the allowed upgrades. For example to upgrade all
275 packages whilst constraining requests to the latest version less than 3.0:
276
277 ```console
278 $ pip-compile --upgrade --upgrade-package 'requests<3.0'
279 ```
280
281 ### Using hashes
282
283 If you would like to use _Hash-Checking Mode_ available in `pip` since
284 version 8.0, `pip-compile` offers `--generate-hashes` flag:
285
286 ```console
287 $ pip-compile --generate-hashes requirements.in
288 #
289 # This file is autogenerated by pip-compile with Python 3.10
290 # by the following command:
291 #
292 # pip-compile --generate-hashes requirements.in
293 #
294 asgiref==3.6.0 \
295 --hash=sha256:71e68008da809b957b7ee4b43dbccff33d1b23519fb8344e33f049897077afac \
296 --hash=sha256:9567dfe7bd8d3c8c892227827c41cce860b368104c3431da67a0c5a65a949506
297 # via django
298 django==4.1.7 \
299 --hash=sha256:44f714b81c5f190d9d2ddad01a532fe502fa01c4cb8faf1d081f4264ed15dcd8 \
300 --hash=sha256:f2f431e75adc40039ace496ad3b9f17227022e8b11566f4b363da44c7e44761e
301 # via -r requirements.in
302 sqlparse==0.4.3 \
303 --hash=sha256:0323c0ec29cd52bceabc1b4d9d579e311f3e4961b98d174201d5622a23b85e34 \
304 --hash=sha256:69ca804846bb114d2ec380e4360a8a340db83f0ccf3afceeb1404df028f57268
305 # via django
306 ```
307
308 ### Output File
309
310 To output the pinned requirements in a filename other than
311 `requirements.txt`, use `--output-file`. This might be useful for compiling
312 multiple files, for example with different constraints on django to test a
313 library with both versions using [tox](https://tox.readthedocs.io/en/latest/):
314
315 ```console
316 $ pip-compile --upgrade-package 'django<1.0' --output-file requirements-django0x.txt
317 $ pip-compile --upgrade-package 'django<2.0' --output-file requirements-django1x.txt
318 ```
319
320 Or to output to standard output, use `--output-file=-`:
321
322 ```console
323 $ pip-compile --output-file=- > requirements.txt
324 $ pip-compile - --output-file=- < requirements.in > requirements.txt
325 ```
326
327 ### Forwarding options to `pip`
328
329 Any valid `pip` flags or arguments may be passed on with `pip-compile`'s
330 `--pip-args` option, e.g.
331
332 ```console
333 $ pip-compile requirements.in --pip-args "--retries 10 --timeout 30"
334 ```
335
336 ### Configuration
337
338 You can define project-level defaults for `pip-compile` and `pip-sync` by
339 writing them to a configuration file in the same directory as your requirements
340 input files (or the current working directory if piping input from stdin).
341 By default, both `pip-compile` and `pip-sync` will look first
342 for a `.pip-tools.toml` file and then in your `pyproject.toml`. You can
343 also specify an alternate TOML configuration file with the `--config` option.
344
345 It is possible to specify configuration values both globally and command-specific.
346 For example, to by default generate `pip` hashes in the resulting
347 requirements file output, you can specify in a configuration file:
348
349 ```toml
350 [tool.pip-tools]
351 generate-hashes = true
352 ```
353
354 Options to `pip-compile` and `pip-sync` that may be used more than once
355 must be defined as lists in a configuration file, even if they only have one
356 value.
357
358 `pip-tools` supports default values for [all valid command-line flags](/cli/index.md)
359 of its subcommands. Configuration keys may contain underscores instead of dashes,
360 so the above could also be specified in this format:
361
362 ```toml
363 [tool.pip-tools]
364 generate_hashes = true
365 ```
366
367 Configuration defaults specific to `pip-compile` and `pip-sync` can be put beneath
368 separate sections. For example, to by default perform a dry-run with `pip-compile`:
369
370 ```toml
371 [tool.pip-tools.compile] # "sync" for pip-sync
372 dry-run = true
373 ```
374
375 This does not affect the `pip-sync` command, which also has a `--dry-run` option.
376 Note that local settings take preference over the global ones of the same name,
377 whenever both are declared, thus this would also make `pip-compile` generate hashes,
378 but discard the global dry-run setting:
379
380 ```toml
381 [tool.pip-tools]
382 generate-hashes = true
383 dry-run = true
384
385 [tool.pip-tools.compile]
386 dry-run = false
387 ```
388
389 You might be wrapping the `pip-compile` command in another script. To avoid
390 confusing consumers of your custom script you can override the update command
391 generated at the top of requirements files by setting the
392 `CUSTOM_COMPILE_COMMAND` environment variable.
393
394 ```console
395 $ CUSTOM_COMPILE_COMMAND="./pipcompilewrapper" pip-compile requirements.in
396 #
397 # This file is autogenerated by pip-compile with Python 3.10
398 # by the following command:
399 #
400 # ./pipcompilewrapper
401 #
402 asgiref==3.6.0
403 # via django
404 django==4.1.7
405 # via -r requirements.in
406 sqlparse==0.4.3
407 # via django
408 ```
409
410 ### Workflow for layered requirements
411
412 If you have different environments that you need to install different but
413 compatible packages for, then you can create layered requirements files and use
414 one layer to constrain the other.
415
416 For example, if you have a Django project where you want the newest `2.1`
417 release in production and when developing you want to use the Django debug
418 toolbar, then you can create two `*.in` files, one for each layer:
419
420 ```
421 # requirements.in
422 django<2.2
423 ```
424
425 At the top of the development requirements `dev-requirements.in` you use `-c
426 requirements.txt` to constrain the dev requirements to packages already
427 selected for production in `requirements.txt`.
428
429 ```
430 # dev-requirements.in
431 -c requirements.txt
432 django-debug-toolbar<2.2
433 ```
434
435 First, compile `requirements.txt` as usual:
436
437 ```
438 $ pip-compile
439 #
440 # This file is autogenerated by pip-compile with Python 3.10
441 # by the following command:
442 #
443 # pip-compile
444 #
445 django==2.1.15
446 # via -r requirements.in
447 pytz==2023.3
448 # via django
449 ```
450
451 Now compile the dev requirements and the `requirements.txt` file is used as
452 a constraint:
453
454 ```console
455 $ pip-compile dev-requirements.in
456 #
457 # This file is autogenerated by pip-compile with Python 3.10
458 # by the following command:
459 #
460 # pip-compile dev-requirements.in
461 #
462 django==2.1.15
463 # via
464 # -c requirements.txt
465 # django-debug-toolbar
466 django-debug-toolbar==2.1
467 # via -r dev-requirements.in
468 pytz==2023.3
469 # via
470 # -c requirements.txt
471 # django
472 sqlparse==0.4.3
473 # via django-debug-toolbar
474 ```
475
476 As you can see above, even though a `2.2` release of Django is available, the
477 dev requirements only include a `2.1` version of Django because they were
478 constrained. Now both compiled requirements files can be installed safely in
479 the dev environment.
480
481 To install requirements in production stage use:
482
483 ```console
484 $ pip-sync
485 ```
486
487 You can install requirements in development stage by:
488
489 ```console
490 $ pip-sync requirements.txt dev-requirements.txt
491 ```
492
493 ### Version control integration
494
495 You might use `pip-compile` as a hook for the [pre-commit](https://github.com/pre-commit/pre-commit).
496 See [pre-commit docs](https://pre-commit.com/) for instructions.
497 Sample `.pre-commit-config.yaml`:
498
499 ```yaml
500 repos:
501 - repo: https://github.com/jazzband/pip-tools
502 rev: 7.4.1
503 hooks:
504 - id: pip-compile
505 ```
506
507 You might want to customize `pip-compile` args by configuring `args` and/or `files`, for example:
508
509 ```yaml
510 repos:
511 - repo: https://github.com/jazzband/pip-tools
512 rev: 7.4.1
513 hooks:
514 - id: pip-compile
515 files: ^requirements/production\.(in|txt)$
516 args: [--index-url=https://example.com, requirements/production.in]
517 ```
518
519 If you have multiple requirement files make sure you create a hook for each file.
520
521 ```yaml
522 repos:
523 - repo: https://github.com/jazzband/pip-tools
524 rev: 7.4.1
525 hooks:
526 - id: pip-compile
527 name: pip-compile setup.py
528 files: ^(setup\.py|requirements\.txt)$
529 - id: pip-compile
530 name: pip-compile requirements-dev.in
531 args: [requirements-dev.in]
532 files: ^requirements-dev\.(in|txt)$
533 - id: pip-compile
534 name: pip-compile requirements-lint.in
535 args: [requirements-lint.in]
536 files: ^requirements-lint\.(in|txt)$
537 - id: pip-compile
538 name: pip-compile requirements.in
539 args: [requirements.in]
540 files: ^requirements\.(in|txt)$
541 ```
542
543 ### Example usage for `pip-sync`
544
545 Now that you have a `requirements.txt`, you can use `pip-sync` to update
546 your virtual environment to reflect exactly what's in there. This will
547 install/upgrade/uninstall everything necessary to match the
548 `requirements.txt` contents.
549
550 Run it with `pip-sync` or `python -m piptools sync`. If you use multiple
551 Python versions, you can also run `py -X.Y -m piptools sync` on Windows and
552 `pythonX.Y -m piptools sync` on other systems.
553
554 `pip-sync` must be installed into and run from the same virtual
555 environment as your project to identify which packages to install
556 or upgrade.
557
558 **Be careful**: `pip-sync` is meant to be used only with a
559 `requirements.txt` generated by `pip-compile`.
560
561 ```console
562 $ pip-sync
563 Uninstalling flake8-2.4.1:
564 Successfully uninstalled flake8-2.4.1
565 Collecting click==4.1
566 Downloading click-4.1-py2.py3-none-any.whl (62kB)
567 100% |................................| 65kB 1.8MB/s
568 Found existing installation: click 4.0
569 Uninstalling click-4.0:
570 Successfully uninstalled click-4.0
571 Successfully installed click-4.1
572 ```
573
574 To sync multiple `*.txt` dependency lists, just pass them in via command
575 line arguments, e.g.
576
577 ```console
578 $ pip-sync dev-requirements.txt requirements.txt
579 ```
580
581 Passing in empty arguments would cause it to default to `requirements.txt`.
582
583 Any valid `pip install` flags or arguments may be passed with `pip-sync`'s
584 `--pip-args` option, e.g.
585
586 ```console
587 $ pip-sync requirements.txt --pip-args "--no-cache-dir --no-deps"
588 ```
589
590 **Note**: `pip-sync` will not upgrade or uninstall packaging tools like
591 `setuptools`, `pip`, or `pip-tools` itself. Use `python -m pip install --upgrade`
592 to upgrade those packages.
593
594 ### Should I commit `requirements.in` and `requirements.txt` to source control?
595
596 Generally, yes. If you want a reproducible environment installation available from your source control,
597 then yes, you should commit both `requirements.in` and `requirements.txt` to source control.
598
599 Note that if you are deploying on multiple Python environments (read the section below),
600 then you must commit a separate output file for each Python environment.
601 We suggest to use the `{env}-requirements.txt` format
602 (ex: `win32-py3.7-requirements.txt`, `macos-py3.10-requirements.txt`, etc.).
603
604 ### Cross-environment usage of `requirements.in`/`requirements.txt` and `pip-compile`
605
606 The dependencies of a package can change depending on the Python environment in which it
607 is installed. Here, we define a Python environment as the combination of Operating
608 System, Python version (3.7, 3.8, etc.), and Python implementation (CPython, PyPy,
609 etc.). For an exact definition, refer to the possible combinations of [PEP 508
610 environment markers][environment-markers].
611
612 As the resulting `requirements.txt` can differ for each environment, users must
613 execute `pip-compile` **on each Python environment separately** to generate a
614 `requirements.txt` valid for each said environment. The same `requirements.in` can
615 be used as the source file for all environments, using
616 [PEP 508 environment markers][environment-markers] as
617 needed, the same way it would be done for regular `pip` cross-environment usage.
618
619 If the generated `requirements.txt` remains exactly the same for all Python
620 environments, then it can be used across Python environments safely. **But** users
621 should be careful as any package update can introduce environment-dependent
622 dependencies, making any newly generated `requirements.txt` environment-dependent too.
623 As a general rule, it's advised that users should still always execute `pip-compile`
624 on each targeted Python environment to avoid issues.
625
626 ### Maximizing reproducibility
627
628 `pip-tools` is a great tool to improve the reproducibility of builds.
629 But there are a few things to keep in mind.
630
631 - `pip-compile` will produce different results in different environments as described in the previous section.
632 - `pip` must be used with the `PIP_CONSTRAINT` environment variable to lock dependencies in build environments as documented in [#8439](https://github.com/pypa/pip/issues/8439).
633 - Dependencies come from many sources.
634
635 Continuing the `pyproject.toml` example from earlier, creating a single lock file could be done like:
636
637 ```console
638 $ pip-compile --all-build-deps --all-extras --output-file=constraints.txt --strip-extras pyproject.toml
639 #
640 # This file is autogenerated by pip-compile with Python 3.9
641 # by the following command:
642 #
643 # pip-compile --all-build-deps --all-extras --output-file=constraints.txt --strip-extras pyproject.toml
644 #
645 asgiref==3.5.2
646 # via django
647 attrs==22.1.0
648 # via pytest
649 backports-zoneinfo==0.2.1
650 # via django
651 django==4.1
652 # via my-cool-django-app (pyproject.toml)
653 editables==0.3
654 # via hatchling
655 hatchling==1.11.1
656 # via my-cool-django-app (pyproject.toml::build-system.requires)
657 iniconfig==1.1.1
658 # via pytest
659 packaging==21.3
660 # via
661 # hatchling
662 # pytest
663 pathspec==0.10.2
664 # via hatchling
665 pluggy==1.0.0
666 # via
667 # hatchling
668 # pytest
669 py==1.11.0
670 # via pytest
671 pyparsing==3.0.9
672 # via packaging
673 pytest==7.1.2
674 # via my-cool-django-app (pyproject.toml)
675 sqlparse==0.4.2
676 # via django
677 tomli==2.0.1
678 # via
679 # hatchling
680 # pytest
681 ```
682
683 Some build backends may also request build dependencies dynamically using the `get_requires_for_build_` hooks described in [PEP 517] and [PEP 660].
684 This will be indicated in the output with one of the following suffixes:
685
686 - `(pyproject.toml::build-system.backend::editable)`
687 - `(pyproject.toml::build-system.backend::sdist)`
688 - `(pyproject.toml::build-system.backend::wheel)`
689
690 ### Other useful tools
691
692 - [pip-compile-multi](https://pip-compile-multi.readthedocs.io/en/latest/) - pip-compile command wrapper for multiple cross-referencing requirements files.
693 - [pipdeptree](https://github.com/tox-dev/pipdeptree) to print the dependency tree of the installed packages.
694 - `requirements.in`/`requirements.txt` syntax highlighting:
695
696 - [requirements.txt.vim](https://github.com/raimon49/requirements.txt.vim) for Vim.
697 - [Python extension for VS Code](https://marketplace.visualstudio.com/items?itemName=ms-python.python) for VS Code.
698 - [pip-requirements.el](https://github.com/Wilfred/pip-requirements.el) for Emacs.
699
700 ### Deprecations
701
702 This section lists `pip-tools` features that are currently deprecated.
703
704 - In the next major release, the `--allow-unsafe` behavior will be enabled by
705 default (https://github.com/jazzband/pip-tools/issues/989).
706 Use `--no-allow-unsafe` to keep the old behavior. It is recommended
707 to pass `--allow-unsafe` now to adapt to the upcoming change.
708 - The legacy resolver is deprecated and will be removed in future versions.
709 The new default is `--resolver=backtracking`.
710 - In the next major release, the `--strip-extras` behavior will be enabled by
711 default (https://github.com/jazzband/pip-tools/issues/1613).
712 Use `--no-strip-extras` to keep the old behavior.
713
714 ### A Note on Resolvers
715
716 You can choose from either default backtracking resolver or the deprecated legacy resolver.
717
718 The legacy resolver will occasionally fail to resolve dependencies. The
719 backtracking resolver is more robust, but can take longer to run in general.
720
721 You can continue using the legacy resolver with `--resolver=legacy` although
722 note that it is deprecated and will be removed in a future release.
723
724 [jazzband]: https://jazzband.co/
725 [jazzband-image]: https://jazzband.co/static/img/badge.svg
726 [pypi]: https://pypi.org/project/pip-tools/
727 [pypi-image]: https://img.shields.io/pypi/v/pip-tools.svg
728 [pyversions]: https://pypi.org/project/pip-tools/
729 [pyversions-image]: https://img.shields.io/pypi/pyversions/pip-tools.svg
730 [pre-commit]: https://results.pre-commit.ci/latest/github/jazzband/pip-tools/main
731 [pre-commit-image]: https://results.pre-commit.ci/badge/github/jazzband/pip-tools/main.svg
732 [buildstatus-gha]: https://github.com/jazzband/pip-tools/actions?query=workflow%3ACI
733 [buildstatus-gha-image]: https://github.com/jazzband/pip-tools/workflows/CI/badge.svg
734 [codecov]: https://codecov.io/gh/jazzband/pip-tools
735 [codecov-image]: https://codecov.io/gh/jazzband/pip-tools/branch/main/graph/badge.svg
736 [Matrix Room Badge]: https://img.shields.io/matrix/pip-tools:matrix.org?label=Discuss%20on%20Matrix%20at%20%23pip-tools%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
737 [Matrix Room]: https://matrix.to/#/%23pip-tools:matrix.org
738 [Matrix Space Badge]: https://img.shields.io/matrix/jazzband:matrix.org?label=Discuss%20on%20Matrix%20at%20%23jazzband%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat
739 [Matrix Space]: https://matrix.to/#/%23jazzband:matrix.org
740 [pip-tools-overview]: https://github.com/jazzband/pip-tools/raw/main/img/pip-tools-overview.svg
741 [environment-markers]: https://peps.python.org/pep-0508/#environment-markers
742 [PEP 517]: https://peps.python.org/pep-0517/
743 [PEP 660]: https://peps.python.org/pep-0660/
744 [discord-chat]: https://discord.gg/pypa
745 [discord-chat-image]: https://img.shields.io/discord/803025117553754132?label=Discord%20chat%20%23pip-tools&style=flat-square