From b9883afcc096ccb15a6157f4795e6a3c2338e346 Mon Sep 17 00:00:00 2001 From: Don Naro Date: Thu, 27 Mar 2025 03:40:27 +0000 Subject: [PATCH] update the pip-compile details in the readme (#2472) - Remove outdated info about Python 3.10 - Add example of updating a single package (cherry picked from commit ef4fe42bbbf5ea92bf62a4c0be6750ab47b8ec1d) --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2712aabf09d..a4a8410d3da 100644 --- a/README.md +++ b/README.md @@ -134,13 +134,11 @@ To synchronize dependency lock files with base requirements files without changi nox -s pip-compile -- --no-upgrade ``` -> This session requires Python 3.10. +To upgrade a single dependency, for instance when adjusting constraints on a package, use the `--upgrade-package` flag followed by the package name: -If you do not have Python 3.10 installed, you can use root-less podman with a Python 3.10 image as follows: - -```bash -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' -``` + ``` bash + nox -s pip-compile -- --upgrade-package + ``` ## Creating release tags