From a103b5699eba73f0266044eeb8eecc6835642a3e Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 14 Feb 2023 14:54:03 -0600 Subject: [PATCH] fix: Use proper subdirectory syntax for pip url fragments (#1208) * Use the correct syntax for url fragments with pip of the form python -m pip install "pkg @ vcs+protocol://repo_url/#subdirectory=pkg_dir" - c.f. https://pip.pypa.io/en/stable/topics/vcs-support/#url-fragments * Revises PR #1207 Co-authored-by: sinoroc --- source/specifications/direct-url.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/specifications/direct-url.rst b/source/specifications/direct-url.rst index bf93dfd9b..fc00fa132 100644 --- a/source/specifications/direct-url.rst +++ b/source/specifications/direct-url.rst @@ -299,10 +299,10 @@ Commands that generate a ``direct_url.json``: * ``pip install https://example.com/app-1.0.tgz`` * ``pip install https://example.com/app-1.0.whl`` -* ``pip install "app&subdirectory=setup @ git+https://example.com/repo/app.git"`` +* ``pip install "app @ git+https://example.com/repo/app.git#subdirectory=setup"`` * ``pip install ./app`` * ``pip install file:///home/user/app`` -* ``pip install --editable "app&subdirectory=setup @ git+https://example.com/repo/app.git"`` +* ``pip install --editable "app @ git+https://example.com/repo/app.git#subdirectory=setup"`` (in which case, ``url`` will be the local directory where the git repository has been cloned to, and ``dir_info`` will be present with ``"editable": true`` and no ``vcs_info`` will be set)