-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pip609-v2-sbi
- Loading branch information
Showing
11 changed files
with
137 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -384,46 +384,52 @@ where ``setup.py`` is not in the root of project, the "subdirectory" component | |
is used. The value of the "subdirectory" component should be a path starting | ||
from the root of the project to where ``setup.py`` is located. | ||
|
||
So if your repository layout is: | ||
If your repository layout is:: | ||
|
||
- pkg_dir/ | ||
pkg_dir | ||
├── setup.py # setup.py for package "pkg" | ||
└── some_module.py | ||
other_dir | ||
└── some_file | ||
some_other_file | ||
|
||
- setup.py # setup.py for package ``pkg`` | ||
- some_module.py | ||
- other_dir/ | ||
Then, to install from this repository, the syntax would be:: | ||
|
||
- some_file | ||
- some_other_file | ||
|
||
You'll need to use ``pip install -e "vcs+protocol://repo_url/#egg=pkg&subdirectory=pkg_dir"``. | ||
$ pip install -e "vcs+protocol://repo_url/#egg=pkg&subdirectory=pkg_dir" | ||
|
||
|
||
Git | ||
^^^ | ||
|
||
pip currently supports cloning over ``git``, ``git+http``, ``git+https``, | ||
``git+ssh``, ``git+git`` and ``git+file``: | ||
``git+ssh``, ``git+git`` and ``git+file``. | ||
|
||
.. warning:: | ||
|
||
Note that the use of ``git``, ``git+git``, and ``git+http`` is discouraged. | ||
The former two use `the Git Protocol`_, which lacks authentication, and HTTP is | ||
insecure due to lack of TLS based encryption. | ||
|
||
Here are the supported forms:: | ||
|
||
[-e] git://git.example.com/MyProject#egg=MyProject | ||
[-e] git+http://git.example.com/MyProject#egg=MyProject | ||
[-e] git+https://git.example.com/MyProject#egg=MyProject | ||
[-e] git+ssh://git.example.com/MyProject#egg=MyProject | ||
[-e] git+git://git.example.com/MyProject#egg=MyProject | ||
[-e] git+file:///home/user/projects/MyProject#egg=MyProject | ||
|
||
Passing a branch name, a commit hash, a tag name or a git ref is possible like so:: | ||
|
||
[-e] git://git.example.com/MyProject.git@master#egg=MyProject | ||
[-e] git://git.example.com/[email protected]#egg=MyProject | ||
[-e] git://git.example.com/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject | ||
[-e] git://git.example.com/MyProject.git@refs/pull/123/head#egg=MyProject | ||
[-e] git+https://git.example.com/MyProject.git@master#egg=MyProject | ||
[-e] git+https://git.example.com/[email protected]#egg=MyProject | ||
[-e] git+https://git.example.com/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject | ||
[-e] git+https://git.example.com/MyProject.git@refs/pull/123/head#egg=MyProject | ||
|
||
When passing a commit hash, specifying a full hash is preferable to a partial | ||
hash because a full hash allows pip to operate more efficiently (e.g. by | ||
making fewer network calls). | ||
|
||
.. _`the Git Protocol`: https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols | ||
|
||
Mercurial | ||
^^^^^^^^^ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Emphasize that VCS URLs using git, git+git and git+http are insecure due to | ||
lack of authentication and encryption |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Reject VCS URLs with an empty revision. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Use better mechanism for handling temporary files, when recording metadata | ||
about installed files (RECORD) and the installer (INSTALLER). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters