renovate/lib/manager/pip-compile
2021-12-04 07:12:27 +01:00
..
__snapshots__ refactor: Snapshots for some random manager tests (#12560) 2021-11-08 21:03:56 +00:00
artifacts.spec.ts refactor(git): Extract types to separate file (#12855) 2021-11-26 20:36:17 +00:00
artifacts.ts refactor: exec types (#12942) 2021-12-04 07:12:27 +01:00
index.ts refactor: introduce enum programming-language (#12052) 2021-10-13 10:54:40 +00:00
readme.md feat: pip-compile support (#10377) 2021-06-11 12:55:06 +02:00

Due to limited functionality, the pip-compile manager should be considered in an "alpha" stage, which means it's not ready for production use for the majority of end users. We welcome feedback and bug reports!

The current implementation has some limitations. Read the full document before you start using the pip-compile manager.

Non-configured fileMatch

The pip-compile manager has an empty array for default fileMatch, meaning it won't match any files ever by default. You can "activate" the manager by specifying a fileMatch pattern such as:

{
  "pip-compile": {
    "fileMatch": ["(^|/)requirements\\.in$"]
  }
}

Assumption of .in/.txt

If Renovate matches/extracts a file, it assumes that the corresponding output file is found by swapping the .in for .txt. e.g. requirements.in => requirements.txt

Therefore it will not work if files are in separate directories, including input/requirements.in and output/requirements.txt.

If no .in suffix is found, then a .txt suffix is appended for the output file, e.g. foo.file would look for a corresponding foo.file.txt.

We intend to make the mapping configurable in future iterations.

Configuration of Python version

By default Renovate uses the latest version of Python. To get Renovate to use another version of Python, add a contraints` rule to the Renovate config:

{
  "constraints": {
    "python": "3.7"
  }
}