Skip to content

Commit ef4fe42

Browse files
authored
update the pip-compile details in the readme (#2472)
- Remove outdated info about Python 3.10 - Add example of updating a single package
1 parent 4c56e9f commit ef4fe42

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,11 @@ To synchronize dependency lock files with base requirements files without changi
134134
nox -s pip-compile -- --no-upgrade
135135
```
136136

137-
> This session requires Python 3.10.
137+
To upgrade a single dependency, for instance when adjusting constraints on a package, use the `--upgrade-package` flag followed by the package name:
138138

139-
If you do not have Python 3.10 installed, you can use root-less podman with a Python 3.10 image as follows:
140-
141-
```bash
142-
podman run --rm --tty --volume "$(pwd):/mnt:z" --workdir /mnt docker.io/library/python:3.10 bash -c 'pip install nox ; nox -s pip-compile'
143-
```
139+
``` bash
140+
nox -s pip-compile -- --upgrade-package <package_name>
141+
```
144142

145143
## Creating release tags
146144

0 commit comments

Comments
 (0)