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

67 commits

Author SHA1 Message Date
Donald Stufft
be0c47f7aa Merge remote-tracking branch 'skwash/develop' into develop
Conflicts:
	pip/download.py
2013-06-02 22:31:14 -04:00
Carl Meyer
9b92e4d786 Don't copy to cache when we've already got a cached copy. 2013-05-30 18:25:19 -06:00
Carl Meyer
4b55015c29 Fix guessing content-type for already-downloaded file. 2013-05-30 18:25:19 -06:00
Carl Meyer
55c766dacb Better interaction between already-downloaded and already-cached. 2013-05-30 17:00:10 -06:00
Carl Meyer
b3a791223c Cached or already-downloaded files with bad hashes are ignored. 2013-05-30 17:00:10 -06:00
Carl Meyer
388d1b53a7 Refactor unpack_http_url. 2013-05-30 16:59:57 -06:00
Marcus Smith
28234e29d5 'pip search' xmlrpc changes in response to pypi changes, http://mail.python.org/pipermail/distutils-sig/2013-May/020888.html 2013-05-28 20:34:25 -07:00
Josh Hansen
16bea23c31 Display hashdigest instead of hash object upon failure. 2013-04-24 10:56:37 -07:00
Donald Stufft
115ad13abd Remove commented out code that was mistakenly left in 2013-04-19 10:54:33 -04:00
Donald Stufft
709a390043 Add a User Agent so that pip is identifiable in logs 2013-04-18 21:22:37 -04:00
Marcus Smith
6e2bfe8323 remove python 2.5 logic 2013-04-17 22:50:22 -07:00
Marcus Smith
868f63bbf5 merge 1.3.X for proxy fix 2013-04-11 18:05:52 -07:00
Paul Nasrat
5256d573fd Merge pull request #874 from hltbra/remote-reqs-py3-pull-request
Fix issue #760: broken external requirements on Python 3
2013-04-07 07:36:39 -07:00
Hugo Lopes Tavares
274c4bd8d1 Move python3/python2 details from `download.get_file_content` to backwardcompat module 2013-03-29 13:29:11 -03:00
Gabriel
26fd6225e4 Decode downloaded contents.
Also add a test (the exact url depends on pulling a change to pip-test-package).
2013-03-28 18:32:45 +01:00
Hugo Lopes Tavares
1dcfb3f5dd Fix issue #32: pip crashes when server does not send content-type header
Thanks Kelsey Hightower for pointing what to change.
2013-03-27 22:28:21 -03:00
Marcus Smith
00fa9bea96 merge with develop 2013-03-15 23:46:46 -07:00
Marcus Smith
60b0401b0a fix proxy support 2013-03-12 14:20:23 -07:00
Marcus Smith
72812c52ff close socket upon CertificateError 2013-03-03 22:38:37 -08:00
Marcus Smith
889e1a02b8 custom NoSSLError exception instead of util function 2013-02-18 13:17:54 -08:00
Marcus Smith
4a4a141c21 from --allow-no-ssl to --insecure 2013-02-17 22:43:17 -08:00
Marcus Smith
559d77addc from --cert-path to --cert 2013-02-17 22:17:59 -08:00
Marcus Smith
22bf924b52 merge with develop 2013-02-16 14:17:22 -08: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
809a9962c1 clear up connection compatibility logic 2013-02-15 20:03:13 -08:00
Marcus Smith
84f8134900 remove HTTPHandler explictly 2013-02-10 23:14:05 -08:00
Marcus Smith
f92052fd66 py25 socket patch to work with ssl backport 2013-02-09 01:31:27 -08:00
Marcus Smith
609cfe94a1 remove duplicate backwardcompat imports and excess logic 2013-02-07 22:40:30 -08:00
Marcus Smith
fe17bb4d75 OpenerDirector for ssl should not contain the default http handler 2013-02-07 22:18:40 -08:00
Marcus Smith
84964064a3 --cert-path and --no-ssl options 2013-02-06 23:27:53 -08:00
Marcus Smith
a4a9197e7e py25 import fixes 2013-02-06 02:08:23 -08:00
Marcus Smith
7e20fd83a2 move cert_path to locations module 2013-02-06 00:55:17 -08:00
Marcus Smith
4bb5ac62b9 use standard opener when no ssl 2013-02-06 00:51:58 -08:00
James Cleveland
d54c695230 Adding code to match_hostname. 2013-02-04 22:08:56 +00:00
James Cleveland
246e974b22 Added certificate validation against root CA file.
Credits to Joseph Turner for this code:

http://thejosephturner.com/blog/2011/03/19/https-certificate-verification-in-python-with-urllib2/

And also to Kenneth Reitz for the CA dump (with addition of
CAcert.org chain because that's what PyPI uses).

Which, combined with pip, enables us to go a step towards
validated SSL and reducing the impact of MITM attacks.
2013-02-04 20:34:14 +00:00
Daniel Holth
aa5b33dbf4 experimental support for installing wheel archives 2012-10-01 22:50:24 -07:00
Marc Abramowitz
4342328a6a Log URL that we're downloading from at info level (-v) rather than debug
level (-vv).
2012-09-28 17:14:31 -07:00
Andrey Bulgakov
a4da43ada4 _get_md5_from_file -> _get_hash_from_file 2012-09-10 02:57:36 -06:00
andreiko
aa2b3522f6 fixed typo: md5_hash -> hash 2012-09-10 02:57:36 -06:00
Andrey Bulgakov
8d194bfcfc check if file was already downloaded
In --download mode skip downloading when file already exists in target directory
2012-09-10 02:57:36 -06:00
Paul Nasrat
d1a7ea2587 Issue #597 pypy hashlib compat.
Hash attribute name is a cpython implementation detail and not in the
PEP.

Use digest_size for some form of validation as that is all we can rely
on.

TESTED 2.7, 3.3, pypy 1.9
2012-07-29 11:37:56 +01:00
Donald Stufft
c9ada2de47 Merge branch 'develop' into multiple-hashers
Conflicts:
	pip/backwardcompat.py
	pip/download.py
2012-06-21 02:46:20 -04:00
Carl Meyer
4b68fa2cf5 Remove backwards-compatibility shims for Python 2.4. 2012-06-06 08:21:16 -06:00
Donald Stufft
de265f44d4 Issue a warning for an unsuported hash type and catch TypeError as well 2012-05-26 18:39:47 -04:00
Donald Stufft
ed234c905e fix a typo 2012-05-26 17:56:26 -04:00
Donald Stufft
b4737a4d13 modify the hashing functions so that they accept any of the guarenteed hashers 2012-05-26 17:56:26 -04:00
Qiangning Hong
84a3f4ce69 download dependencies. (breaks existing test cases) 2012-01-31 17:59:40 +08:00
Jannis Leidel
afaa58d024 Minor name nitpicking and a fix for subcommands. 2012-01-20 14:38:34 +01:00
Jannis Leidel
b77a7c4f5f Merge branch 'scripting' of https://github.com/pvanderlinden/pip into pvanderlinden-scripting 2012-01-20 14:16:11 +01:00
Ross Brattain
e470458b64 pip/download.py: use proxy for https
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2012-01-02 12:14:32 -08:00