1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

48 commits

Author SHA1 Message Date
Stéphane Bidoul b5db433163 remove unused arguments find_tags in vcs.get_src_requirement 2016-01-14 19:04:04 +01:00
Ville Skyttä 0da18e93b3 Spelling fixes 2015-12-27 00:58:23 +02:00
Stéphane Bidoul 98ee8761bc better parameter style for call_subprocess() 2015-12-04 18:36:33 +01:00
Stéphane Bidoul 23d86c90b6 add git support for controls_location() 2015-12-04 14:40:00 +01:00
Stéphane Bidoul 7757a6ca1b refactor vcs backend detection mechanism
Give VCS implementations control over saying whether
a project is under their control
2015-12-03 21:16:48 +01:00
Matt Robenolt 4c3ab41e90 Only update VCS when things have actually changed
This saves a network hop when using git and passing an explicit sha
as a ref by comparing the version that's already checked out.

Yields a ~4x speedup on my local machine

Before:
```
$ /usr/local/bin/pip --version
pip 7.1.0 from /usr/local/lib/python2.7/site-packages (python 2.7)
$ time /usr/local/bin/pip install --disable-pip-version-check -e git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev
Obtaining raven-dev from git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev
  Updating ./src/raven-dev clone (to 56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e)
  Could not find a tag or branch '56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e', assuming commit.
Installing collected packages: raven-dev
  Running setup.py develop for raven-dev
Successfully installed raven-dev
/usr/local/bin/pip install --disable-pip-version-check -e   0.84s user 0.48s system 39% cpu 3.300 total
```

After:
```
$ /Users/matt/.virtualenvs/pip/bin/pip --version
pip 7.2.0.dev0 from /Users/matt/code/pip (python 2.7)
$ time /Users/matt/.virtualenvs/pip/bin/pip install --disable-pip-version-check -e git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev
Obtaining raven-dev from git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev
checking version
  Skipping because already up-to-date.
Installing collected packages: raven-dev
  Running setup.py develop for raven-dev
Successfully installed raven-dev
/Users/matt/.virtualenvs/pip/bin/pip install --disable-pip-version-check -e   0.59s user 0.22s system 98% cpu 0.824 total
```
2015-09-01 13:23:18 -07:00
Donald Stufft 56d5076ee2 Hide setup.py output unless using -v 2015-05-20 21:27:12 -04:00
Donald Stufft fca91e1aff Revert "#2414: parse SSH repositories url with a commit hash" 2015-03-16 13:57:41 -04:00
Donald Stufft 06473be631 Merge pull request #2513 from Eyepea/ssh_and_commit_support
#2414: parse SSH repositories url with a commit hash
2015-03-16 07:35:36 -04:00
Paul Moore ffc5acf257 Merge pull request #2522 from msabramo/pip_vcs_add_logging
Do logging of VCS registration/determination
2015-03-11 22:57:23 +00:00
Marc Abramowitz 029c64541a Do logging of VCS registration/determination
Useful for debugging issues (like non-determinism that occurs if a
directory has both a .git and .svn directory for example).
2015-03-11 14:18:48 -07:00
Ludovic Gasc (GMLudo) fa13011587 Fix pep8 warnings 2015-03-11 17:14:40 +01:00
Paul Moore 584b2d0f82 Remove find_command - let subprocess.Popen search PATH for the VCS command to run 2015-03-11 11:37:39 +00:00
Ludovic Gasc (GMLudo) 8cf54fff31 #2414: parse SSH repositories url with a commit hash 2015-03-11 00:41:50 +01:00
Xavier Fernandez 6dda27ce0f vcs: add documentation to VersionControl class 2014-10-18 20:41:17 +02:00
Chris Jerdonek a2090f3172 Change "escape" to "translate" in escape_egg_surname(). 2014-10-01 07:14:47 -04:00
Chris Jerdonek b88207a36f Fix issue #1083.
This commit escapes the egg "surname" when using git with freeze.
2014-10-01 07:14:09 -04:00
Donald Stufft ec91d8e421 Move from pip.compat.* to six.moves.* for urllib related stuff 2014-09-11 18:40:45 -04:00
Donald Stufft 767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Matthew Gilliard 58023d0827 Raise NotImplementedError (not NotImplemented)
NotImplemented is a singleton intended for use in __eq__ methods where comparison is not possible for some reason.
2014-07-24 10:58:11 +01:00
Remi Rampin 48a69581a4 Fixes pep8 issues 2014-06-11 11:59:31 -04:00
Remi Rampin 16ca504c7b Catches BadCommand in get_src_requirement()
This catches the BadCommand that get raised by vcs modules when the VCS
software is not installed or not in the PATH. In this case, we behave as
if the .git, .svn or .hg folder hadn't been found at all (but with the
correct warning).
2014-05-21 18:14:24 -04:00
Matthew Iversen dcb0ee0702 Move backwardcompat package to compat module 2014-05-14 13:10:06 +10:00
Donald Stufft f79ca70c66 Remove the bundle functionality from pip 2014-05-08 16:09:23 -04:00
Donald Stufft 2743768b7b Fix the style of the code base to better match pep8 2014-01-27 14:11:29 -05:00
Jannis Leidel 8a4458bf56 Fixed a whole bunch of cosmetic problems, mostly to adhere to PEP8. 2013-02-16 19:02:41 +01:00
Marcus Smith 103db0d62d docs and cli error text updates 2013-01-30 20:59:44 -08:00
Ollie Rutherfurd ed09b444bd fix compatability w/3.3 & 2.7.4 & bazaar (#552) 2012-06-07 11:34:27 -04:00
Ollie Rutherfurd 2cfd872fec Python >= 3.3a4 handles url fragments automatically 2012-06-01 18:17:23 -04:00
Carl Meyer 4b6872dfbb No .format() formatting yet. 2012-03-13 23:55:17 -07:00
Thomas Fenzl 2c0ac186d3 fixes #427 in own branch 2012-03-13 15:38:47 -07:00
Jannis Leidel afaa58d024 Minor name nitpicking and a fix for subcommands. 2012-01-20 14:38:34 +01:00
Paul van der Linden 8d67101b6e path exists action 2011-10-04 16:10:46 +02:00
Hugo Lopes Tavares d14d3b1986 added fix for edge case in pip.utils.find_command and moved BadCommand raise from VersionControl.cmd to find_command 2011-04-28 01:01:08 -03:00
Paul Nasrat e25ae70333 Fix svn+svn protocol issue #252 2011-04-16 19:27:52 +08:00
Carl Meyer a6181add40 Remove nonexistent name from an __all__. 2011-03-20 11:40:22 -04:00
Vinay Sajip 680b5dfda0 Port to Python3 2011-03-15 15:49:48 -04:00
Jannis Leidel 5b657e681d Fix #10 -- Allow using requirements from version control as sources for non-editable installations. 2010-11-22 20:34:31 +01:00
Jannis Leidel 4d98a308ec Completely use our rmtree instead of shutil.rmtree direct. 2010-11-22 20:32:14 +01:00
Jannis Leidel 0cb87df5cd Made version control and commands loading use pkgutil. 2010-07-26 04:54:16 +02:00
Jannis Leidel 78394430b1 Fixed wrong __all__ list. 2010-07-26 04:51:36 +02:00
Hugo Lopes Tavares 9a7e8bd4ae renamed from _is_file_url_scheme to _is_local_repository - it was misnamed 2010-06-21 18:33:59 -03:00
Hugo Lopes Tavares ba47445bec moved _is_file_scheme to VersionControl class and renamed it to _is_file_url_scheme 2010-06-09 19:56:36 -03:00
Hugo Lopes Tavares d06c98dc6f merged changes related to PEP 8 from hltbra's fork 2010-06-02 23:25:26 -03:00
Carl Meyer 6ce6f9e9f6 remove revision-from-repo 2010-05-25 16:09:42 -04:00
Dave Abrahams 0867fdc465 Implemented ability to request a revision by name from the repository.
(only supported on Git for now)
2010-04-12 15:54:37 -04:00
Alexandre Conrad 933a5ad363 remove hardcoded 'svn' and 'hg' commands 2010-04-15 16:01:29 +02:00
Ian Bicking dc6b8393eb Extracted the vcs support into a package/modules. Moved some routines from __init__ into pip.util 2009-11-20 15:03:40 -06:00