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

125 commits

Author SHA1 Message Date
Xavier Fernandez
078083140b Merge pull request #2704 from rutsky/patch-2
fix typo: "maby"
2016-01-20 11:11:35 +01:00
Donald Stufft
3ae13b2e35 Merge pull request #3312 from sbidoul/no-branch-in-egg-name-sbi
stop the addition of the branch name in the #egg=... fragment
2016-01-18 18:04:03 -05:00
Xavier Fernandez
b47c14405b Provide an alternative to os.path.samefile
For windows under python2
2016-01-17 22:40:46 +01:00
Stéphane Bidoul
b5db433163 remove unused arguments find_tags in vcs.get_src_requirement 2016-01-14 19:04:04 +01:00
Stéphane Bidoul
4b79192c4a remove unused code 2016-01-14 19:04:04 +01:00
Stéphane Bidoul
d362ada5a4 pep8 2016-01-14 19:04:04 +01:00
Stéphane Bidoul
6f790d1d80 stop the addition of the branch name in the #egg=... fragment 2016-01-14 19:04:02 +01:00
David Linke
25a84f1a02 Avoid error with svn >= 1.7 which does no longer have an entries-file to read from (fixes #1062) 2016-01-07 23:22:10 +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
c1176b01dc support &subdirectory option with freeze and git 2015-12-04 14:40:20 +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
Vladimir Rutsky
7107b2ac62 fix typo: "maby" 2015-04-20 22:55:55 +03: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
Ludovic Gasc (GMLudo)
10f70849fd Add unit tests for Git SSH parsing + remove a bug with explicit SSH URLs 2015-03-11 23:47:01 +01: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
Donald Stufft
0bc8aa5622 Style fixes for the latest flake8 2015-02-24 07:46:10 -05:00
Daniel Collins
7d3ac14b6d update submodules after checkout 2014-12-12 16:04:47 -08:00
Xavier Fernandez
b713e96df2 cleanup: use "with open()" to open files 2014-10-18 20:41:18 +02:00
Xavier Fernandez
6dda27ce0f vcs: add documentation to VersionControl class 2014-10-18 20:41:17 +02:00
Chris Jerdonek
2a5deb7c3e Fix code comment ("tag" to "tag or branch"). 2014-10-01 07:14:49 -04: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
9ffa90fb5d Merge pull request #2069 from msabramo/GH-1867_names_by_commit_deterministic
Fix GH-1867: non-deterministic name for git editables on Python 3
2014-10-01 07:11:24 -04:00
Marc Abramowitz
8d1765476e Git.get_src_requirement: Get first matching ref alphabetically
so that the result is deterministic and predictable
2014-09-27 14:14:58 -07: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
Donald Stufft
90688e82b1 Revert "Merge pull request #1519 from dstufft/remove-dependency-links"
This reverts commit da02f073da, reversing
changes made to 2ad8888901.

Conflicts:
	CHANGES.txt
	pip/commands/freeze.py
	pip/commands/list.py
	pip/commands/wheel.py
	pip/index.py
	pip/req/req_set.py
	pip/vcs/subversion.py
2014-08-01 16:50:08 -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
Matt Iversen
1ca674bcde Merge pull request #920 from wcerfgba/patch-1
Incorrect operation sequence in bzr-handling code
2014-07-16 04:35:40 +10:00
Donald Stufft
9b11ed231c Merge pull request #1854 from Ivoz/compat-cleaning
Remove unnecessary imports, move some to six
2014-06-16 12:06:21 -04:00
Marc Abramowitz
747361517c Fix GH-1867: non-deterministic name for git editables on Python 3
Determine names_by_commit deterministically.
2014-06-12 23:05:16 -07:00
Remi Rampin
48a69581a4 Fixes pep8 issues 2014-06-11 11:59:31 -04:00
Matthew Iversen
b7770c502a Remove unnecessary imports, move some to six 2014-06-07 04:21:51 +10: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
5a76a47d3b Fix code to handle the latest flake8 2014-03-26 18:24:19 -04:00
Donald Stufft
95ac4c16f5 Remove dependency links support from pip 2014-02-25 18:39:40 -05:00
Donald Stufft
2743768b7b Fix the style of the code base to better match pep8 2014-01-27 14:11:29 -05:00
Donald Stufft
30204be35b Remove uses of sys.exc_info()[1]
Using sys.exc_info()[1] is a hack that was used to use a shared
source approach to Python 3.x support that also included versions
of Python that didn't include the except ... as exc: construction.
Pip no longer supports any of these versions of Python so we can
remove it.
2014-01-27 08:02:10 -05:00
Marcus Smith
73b8692d86 a single path_to_url function with tests 2013-11-18 22:12:41 -08:00