Paul Nasrat
e33be61bc3
Fix #297 adding deflate and gzip handling
...
Tested on py24, py27 and py32 and the failing tests on 3.2 go away, the content
we're getting back is still gzipped so this is a valid manual test. Add
BytesIO to backwardcompat, fallingback to StringIO on py2x.
I'd like to get the CI build green then comeback and improve the testing around
this. I've not added tests at the moment, but want to come back to that. There is
quite a lot of complexity around downloads split between pip.index and
pip.download.
2011-06-03 15:26:21 +01:00
Dan Sully
f73385adc5
Allow requirements.txt URLs to have egg= definitions.
2011-04-25 18:16:57 +02:00
Vinay Sajip
680b5dfda0
Port to Python3
2011-03-15 15:49:48 -04:00
Hugo Lopes Tavares
32defae98a
merged with ianb`s repo
2011-02-13 16:41:06 -02:00
Hugo Lopes Tavares
dc765845c0
removed unused imports and unused vars
2011-02-12 00:47:31 -02:00
Jon Parise
39c264a526
Parse 'Foo-1.2' into ('Foo','1.2') instead of ('Foo','-1.2').
...
Previously, the dash was being included in the second match group.
2011-02-03 16:37:29 -08:00
Jannis Leidel
20da952052
Fixed retrieving the content type for Python 2.4.
2010-08-31 13:05:10 +02:00
Jannis Leidel
1cd231e54a
Fixed issue #157 - use urllib2 for content type detection.
2010-08-31 02:17:59 +02:00
Jannis Leidel
e80c387a26
Added support for mirrors as defined in PEP 381. This feature is disabled by default and will query the DNS entry of the main mirror index URL to get a list of mirrors. Optinally can be passed a list of mirrors instead.
2010-08-16 01:46:23 +02:00
Jannis Leidel
4b5fc89706
Worked around another instance of the bug in the mimetypes lib documented in http://bugs.python.org/issue5853 .
2010-08-10 12:04:40 +02:00
Hugo Lopes Tavares
6101f0f3bb
moved pip.util functions `get_file_content
,
urlopen
,
is_url
,
url_to_path
,
path_to_url
,
path_to_url2
,
geturl
and
is_archive_file
` to pip.download
2010-07-02 11:53:07 -03:00
Hugo Lopes Tavares
281e7ed6a9
removed unused variables and functions (pep8)
2010-06-08 21:03:48 -03:00
Carl Meyer
a3c91ae2d4
catch OSError on index fetch, for Python 2.4 Win
2010-06-04 12:51:11 -04:00
Carl Meyer
eff68029e3
merge installcommand/finder subclass hooks
2010-06-04 11:20:35 -04:00
Hugo Lopes Tavares
ab3ea6ec51
removed unused vars and imports
2010-06-03 21:58:16 -03:00
Hugo Lopes Tavares
d06c98dc6f
merged changes related to PEP 8 from hltbra's fork
2010-06-02 23:25:26 -03:00
Dave Abrahams
6c68932526
Hooks for ryppl. The following are now encapsulated in overridable methods:
...
1. Construction of the install command's package finder
2. Derivation of available versions from links
2010-05-27 19:27:13 -04:00
Carl Meyer
735193d7c8
forgot to import WindowsError from compat
2010-05-27 17:42:36 -04:00
Carl Meyer
330986d464
Windows raises WindowsError out of urllib if a file:// url does not exist
2010-05-27 14:13:44 -06:00
Carl Meyer
d5e1b6ccec
fixed appending of index.html to file:// urls that are directories
2010-05-27 15:53:51 -04:00
Carl Meyer
01f36c946b
urlparse.urljoin is the public API; urllib.basejoin is an undocumented alias
2010-05-27 12:52:11 -04:00
Carl Meyer
1734bf0d6c
better directory-ness checking for file: scheme index URLs
2010-05-27 12:36:40 -04:00
Carl Meyer
3d613eeec6
check file: urls for directory-ness in advance, rather than catching IOError
2010-05-26 00:06:45 -04:00
Carl Meyer
02090c9855
fix file-handling bug in _sort_locations
2010-05-25 22:43:16 -04:00
Ian Bicking
77f303bd41
minor whitespace and formatting stuff
2010-05-25 10:54:05 -05:00
Carl Meyer
6ce6f9e9f6
remove revision-from-repo
2010-05-25 16:09:42 -04:00
Dave Abrahams
f8555ddabd
Explicitly request the identity encoding as insurance against http://bugs.python.org/issue8732
2010-05-19 16:01:41 -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
Dave Abrahams
26facddaa8
Skip over all VCS schemes that don't support lookup as webpages (not just SVN).
2010-05-18 14:33:13 -04:00
Dave Abrahams
2e2508d0fd
Implemented installation from file://-scheme URIs.
...
Intended to fix http://bitbucket.org/ianb/pip/issue/114 . Probably
needs more comprehensive tests.
Workarounds for broken URL handling in Python standard libs; redirect
to index.html for file:// URLs
urlunsplit gets confused by '+', etc.
2010-05-17 20:33:13 -04:00
Carl Meyer
85fae257c2
Fix some pyflakes warnings. Thanks Simon Cross.
2010-04-15 11:59:55 -04:00
Alexandre Conrad
9b761cb418
better directory detection and rename 'filename' functions to 'path' functions
2010-04-13 18:12:50 +02:00
Carl Meyer
4b7b0b2c90
correct ordering of versions from last commit
2010-02-12 16:51:01 -05:00
Carl Meyer
ea9a0c1ec2
avoid sorted(cmp=...) for Python 3; thanks gdamjan! fixes #62
2010-02-12 12:15:47 -05:00
Ian Bicking
b0df48ad31
Factor out the PackageIndex code; move more stuff to pip.util
2009-11-20 17:39:44 -06:00