mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user