Skip to content

Commit

Permalink
fix: Use proper subdirectory syntax for pip url fragments (#1208)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
matthewfeickert and sinoroc authored Feb 14, 2023
1 parent d36954f commit a103b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/specifications/direct-url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a103b56

Please sign in to comment.