nox pip-compile: allow passing --no-upgrade flag (#883)

* nox pip-compile: allow passing --no-upgrade flag

This allows running `nox -e pip-compile -- --no-upgrade` to make sure
that the requirements.txt files are in sync with the .in files but not
updating any other transitive dependency.

* README: make "## Updating dependencies" more concise

Co-authored-by: Don Naro <dnaro@redhat.com>

---------

Co-authored-by: Don Naro <dnaro@redhat.com>
This commit is contained in:
Maxwell G
2023-12-04 13:05:59 -06:00
committed by GitHub
parent 657be53934
commit e952dd4365
2 changed files with 7 additions and 1 deletions

View File

@@ -123,6 +123,12 @@ Use the following `nox` session to update the dependency lock files in `tests/`.
nox -e pip-compile
```
To synchronize dependency lock files with base requirements files without changing transitive dependencies, use the `--no-upgrade` flag:
``` bash
nox -e pip-compile -- --no-upgrade
```
> This session requires Python 3.10.
If you do not have Python 3.10 installed, you can use root-less podman with a Python 3.10 image as follows: