From a994bfc67ebd3226cd2449dfceba16f82f8c701f Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Tue, 24 Nov 2026 12:30:56 +0100 Subject: [PATCH] Add an example of install only dependencies on "Using TestPyPI" page Addresses a review comment on gh-2191 --- source/guides/using-testpypi.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/guides/using-testpypi.rst b/source/guides/using-testpypi.rst index 2e942fae2..cfc87082e 100644 --- a/source/guides/using-testpypi.rst +++ b/source/guides/using-testpypi.rst @@ -55,7 +55,9 @@ You can use :ref:`pip` to install a wheel that you uploaded to TestPyPI: The ``--index-url`` flag selects TestPyPI instead of PyPI. The ``--no-deps`` flag prevents installing runtime dependencies, while ``--only-binary=:all:`` requires a wheel, avoiding installation of build dependencies. If your package -has dependencies, install them separately from PyPI before running these commands. +has dependencies, install them separately from PyPI before running these commands +(for example, run ``pip install --only-deps .`` from your project directory; +this requires pip 26.2 or later). .. warning::