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

1230 commits

Author SHA1 Message Date
Matt Iversen 25bd97d78b Fix pep8 2014-07-16 06:07:25 +10: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
Daniel Holth 7c652cb07e improved ability to install into non-ASCII directories 2014-07-10 23:50:43 -04:00
Donald Stufft d359d1a08b Merge pull request #1902 from tnotstar/develop
Proposed fix to #1180 (and maybe #932 & #1104)
2014-07-03 19:26:50 -04:00
Antonio Alvarado Hernandez 0dedf2b6f5 Passing headers per-request in PipXmlrpcTransport
* Changed `PipXmlrpcTransport` to pass headers at request scope
* Added summary line to the changelog
2014-07-04 00:25:21 +02:00
Antonio Alvarado Hernandez 47402e5bad Close requests session in search command
* Added a `with` block to handle `session` life-cycle. As commented
  in #1902
2014-07-03 21:39:38 +02:00
Donald Stufft 2298e4ce53 Fix #1657 - Explicitly close the requests session 2014-07-03 12:50:59 -04:00
Donald Stufft 53faeece34 Clean up some no longer needed compatability code 2014-07-03 12:20:03 -04:00
Donald Stufft ce4514eb8d Upgrade CacheControl to 0.10.2
This fixes a reference cycle issue where pip would randomly hang
forever in some of the tests.
2014-07-03 11:52:08 -04:00
Antonio Alvarado Hernandez 57f2d47b84 Proposed fix to #1180 (and maybe #932 & #1104)
This is a rebased final version of a proposed solution to fix
issues #932, #1104 & #1180. Following changes have been done:

* Implemented a new class `PipXmlrpcTransport` using a
  contained `PipSession` object.

* Modified the `pip/commands/search.py` to make use of the
  `PipXmlrpcTransport` class.

* Properly initialized options for testing `SearchCommand`:
  - Changed `options_mock` to an `options` object built from
    `parse_args`, to properly initialize default options.
2014-06-28 00:26:40 +02:00
Donald Stufft 6876d4b613 Merge pull request #1859 from nailor/support-no-use-wheel
req: Support --no-use-wheel flag in requirements.txt
2014-06-25 23:45:01 -04:00
MinRK c2e71e7ce6 query installed requirements for extras
fixes issue where egg_info('requires.txt') does not exist
for packages installed from wheels.
2014-06-25 22:45:28 -04:00
Alex Gaynor 2d4da7ed43 Removed reduce from pip's compat module
It already has a consistent location across Py2/3.
2014-06-16 09:11:55 -07: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
Donald Stufft 31e5f418b9 Merge pull request #1855 from methane/patch-1
Overwrite old scripts when installing from wheel.
2014-06-16 12:05:02 -04:00
Donald Stufft a1dce516de Merge branch '1.5.X' into develop 2014-06-16 11:02:09 -04:00
Donald Stufft e05a759b6e Fix #1101 - Properly handle a <base> without a href 2014-06-13 07:49:56 -04:00
Donald Stufft 169379d839 Fix #1319 - Allow use of Zip64 extension 2014-06-13 07:15:03 -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
Donald Stufft 4a8173c4ed Fix #1680 - Use System SSL Certificates if Available 2014-06-12 23:10:00 -04:00
Donald Stufft 868671a62c Merge pull request #1465 from minrk/osxarch
Support earlier OS X versions in wheels
2014-06-12 22:12:01 -04:00
Paul Moore 736400d239 Merge pull request #1830 from remram44/vcs-not-found_2
Catches BadCommand in get_src_requirement()
2014-06-12 16:04:27 +01:00
Remi Rampin 48a69581a4 Fixes pep8 issues 2014-06-11 11:59:31 -04:00
Jyrki Pulliainen 3377dd1917 req: Support --no-use-wheel flag in requirements.txt
Default from pip 1.6 will be to always use wheels, so the --use-wheels
in requirements.txt is now deprecated. However, the --no-use-wheels
is introduced to be able to disable wheel usage via requirements.txt.
2014-06-10 14:57:24 +02:00
INADA Naoki 4950c7685c Fix flake8 error.
Github's online editor is bad...
2014-06-07 12:20:42 +09:00
INADA Naoki c2b3e08270 Overwrite old scripts when installing from wheel.
Fixes #1800
2014-06-07 12:07:43 +09:00
Matthew Iversen b7770c502a Remove unnecessary imports, move some to six 2014-06-07 04:21:51 +10:00
MinRK 27f447178b add missing multi-arch tags
all multi-arch tags are supported: fat, intel, fat3, fat64, universal
2014-05-29 22:00:42 -07:00
MinRK a954a72a65 support intel and universal multi-arch tags on OS X
- intel == x86_64, i386
- universal == x86_64, i386, ppc, ppc64
2014-05-29 22:00:42 -07:00
MinRK f752e9c307 support earlier OS X versions in wheels
Wheels built for 10.6 (e.g. Python.org) work on later OS X (e.g. System Python).
The reverse is not assumed.
2014-05-29 21:59:53 -07:00
Paul Moore 52efeac97f Re-vendor distlib 2014-05-28 22:41:07 +01:00
Marcus Smith 3d64db281b merge 1.5.X into develop 2014-05-26 15:06:36 -07:00
Marcus Smith 3066157cc3 when installing from wheel files, parse the filename to build the requirement 2014-05-25 21:00:39 -07: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
Donald Stufft 8ba11ed565 Merge branch 'master' into develop
Conflicts:
	CHANGES.txt
	pip/__init__.py
	pip/_vendor/vendor.txt
2014-05-16 22:27:02 -04:00
Donald Stufft 81f21f2261 Merge branch '1.5.X'
Conflicts:
	CHANGES.txt
2014-05-16 22:21:32 -04:00
Donald Stufft 8959c0ae7b Bump version 2014-05-16 22:17:28 -04:00
Donald Stufft 398bc9e9ea Upgrade requests to 2.3.0 2014-05-16 14:11:53 -04:00
Donald Stufft 97149959f4 Merge pull request #1813 from Manticore/patch-1
Fix typo in dict values enumeration
2014-05-15 17:50:39 -04:00
Matt Iversen edb40cd128 Merge pull request #1768 from evvers/small-parseopts-refactoring
Small parseopts refactoring
2014-05-14 14:25:35 +10:00
Chris Brinker 374ea8ba2e Some basic auth usernames contain @ symbols, example: email addresses. Make sure we only rsplit just to be sure. 2014-05-14 14:14:19 +10:00
Matthew Iversen dcb0ee0702 Move backwardcompat package to compat module 2014-05-14 13:10:06 +10:00
Phaneendra Chiruvella 25db84ad8c update help to make Package Index Options' usage clearer, ref #1814 2014-05-12 20:19:06 +05:30
Bogdan Opanchuk c1b6c6f0c9 Fix typo in dict values enumeration 2014-05-11 14:58:38 +10:00
Donald Stufft 52ca02608e Use CacheControl instead of custom cache code
* Deprecates the --download-cache option & removes the download
  cache code.
* Removes the in memory page cache on the index
* Uses CacheControl to cache all cacheable HTTP requests to the
  filesystem.
  * Properly handles CacheControl headers for unconditional
    caching.
  * Will use ETag and Last-Modified headers to attempt to do a
    conditional HTTP request to speed up cache misses and turn
    them into cache hits.
  * Removes some concurrency unsafe code in the download cache
    accesses.
  * Uses a Cache-Control request header to limit the maximum
    length of time a cache is valid for.
* Adds pip.appdirs to handle platform specific application
  directories such as cache, config, data, etc.
2014-05-09 18:28:20 -04:00
Donald Stufft 077fa14641 Bundle CacheControl and lockfile 2014-05-09 18:17:17 -04:00
Marcus Smith b0b05737a9 Merge pull request #1787 from qwcode/wheel_editables
build wheels for dependencies of editables
2014-05-09 15:00:50 -07:00
Marcus Smith 52299a7fe7 pip wheel needs --src option if it's going support --editable for vcs reqs 2014-05-08 21:29:01 -07:00
Donald Stufft f79ca70c66 Remove the bundle functionality from pip 2014-05-08 16:09:23 -04:00
Donald Stufft 9f56b79e8d Don't warn when installing externally hosted files
Users who opted to install externally hosted files were being warned
about the possiblility of the availability of those files would be
unreliable. However this has caused some contention and confusion
and at this point they've already decided to do it, so there's no
reason to tell them again.
2014-05-08 12:18:31 -04:00
Donald Stufft 69bf70676a Reword this warning to be clearer about what it means 2014-05-08 10:19:53 -04:00
Donald Stufft 1ac72ecfa6 Merge pull request #1788 from blueyed/requirementset-normalize-paths
RequirementSet: normalize paths (esp. wheel_download_dir)
2014-05-07 22:42:39 -04:00
Donald Stufft 7037443975 Require an already created session to be passed into APIs 2014-05-06 22:37:46 -04:00
Donald Stufft 0c1c5d35c6 Merge pull request #1792 from dstufft/cleanup-file-url
requests can handle file:// urls without a hostname now
2014-05-06 16:38:13 -04:00
Donald Stufft bab487f24f LocalFSResponse() is no longer required
requests can now handle a Response().raw that does not have a
_original_response property.
2014-05-06 13:09:59 -04:00
Donald Stufft 399a4276ff requests can handle file:// urls without a hostname now 2014-05-06 13:05:24 -04:00
Daniel Hahler 14b55b0118 Use normalize_path for download_cache passed to RequirementSet
This appears to be in line with other places where paths are normalized.
2014-05-03 22:44:37 +02:00
Daniel Hahler b3dfbd50a4 Normalize wheel_download_dir passed to RequirementSet
This handles `wheel_dir = ~/.cache/pip/wheelhouse` correctly when
invoked via `pip wheel -r requirements.txt`.
2014-05-03 22:41:44 +02:00
Marcus Smith 12034176a1 build wheels for dependencies of editables 2014-05-03 10:12:57 -07:00
Donald Stufft dd640f23b5 Merge pull request #1529 from dongweiming/bugfix_for_all_versions_duplicate
Bugfix: when not find a version that satisfies the requirement. show all versions but duplicate
2014-05-03 07:52:48 -04:00
Donald Stufft e3873b1be8 Merge pull request #1704 from jamezpolley/develop
If at first you can't stat the index file, try again
2014-05-03 07:46:29 -04:00
Donald Stufft 763c906b3f Merge pull request #1741 from djs/develop
Add option --no-ssl-verify to skip ssl cert verification
2014-05-03 07:45:07 -04:00
Donald Stufft 5ad52827c9 Merge pull request #1778 from alex/typo-fixes
Resolve several typos in the codebase
2014-05-03 07:39:28 -04:00
Donald Stufft a4fec67bba Merge branch 'master' into develop
Conflicts:
	.travis.yml
	CHANGES.txt
	PROJECT.txt
	README.rst
	docs/installing.rst
	pip/__init__.py
	pip/_vendor/vendor.txt
	setup.py
	tox.ini
2014-05-03 02:37:03 -04:00
Donald Stufft 0e72f65bf4 Merge branch '1.5.X'
Conflicts:
	.travis/py34.sh
	CHANGES.txt
	PROJECT.txt
2014-05-03 01:13:28 -04:00
Donald Stufft 93098d0c67 Bump version 2014-05-03 00:03:23 -04:00
Alex Gaynor 15e46c6be9 Wordwrap to appease the great flake8 in the sky 2014-05-02 20:24:39 -07:00
Donald Stufft afae20557e Upgrade setuptools to 3.4.4 2014-05-02 22:02:50 -04:00
Donald Stufft af4d13bb7b Upgrade colorama to 0.3.1 2014-05-02 21:01:00 -04:00
Donald Stufft c0ba583aa4 Upgrade six to 1.6.1 2014-05-02 21:01:00 -04:00
Donald Stufft c3aa72ec17 Upgrade html5lib to 1.0b3 2014-05-02 21:01:00 -04:00
Donald Stufft b3ac7b2240 Upgrade distlib to 0.1.8 2014-05-02 21:01:00 -04:00
Alex Gaynor 48266149fb Random change to trigger tests
But for real, oxford comma best comma.
2014-05-02 09:10:34 -07:00
Alex Gaynor b48b9ce53f Resolve several typos in the codebase 2014-04-29 22:33:04 -07:00
James Polley 8304a8be38 If at first you can't stat the index file, try again
If Pip is using an index url that starts with http:// or https://, and
it gets a 404, it does Magic(TM) to figure out what the real name of the
package is. The code looks as though it's intended to do this for
file:// urls as well - but it doesn't, because nothing catches the
OSError that gets raised when the first stat fails.

In order to let this failure be handled and let the usual logic kick in,
set the response status to 404 and let the error bubble up.
2014-04-30 12:03:55 +10:00
Paul Moore 0047974b0f Make pip wheel return failure if any wheels fail to build 2014-04-28 14:28:31 +01:00
Eugene Vereshchagin 91bf22992f Make small parseopts refactoring
* Use cmd_name instead of args_else[0] for clarity and consistency with
other code
* Move cmd_args assignment to place where it used
2014-04-27 19:24:22 +04:00
Donald Stufft b56c0eec40 Merge pull request #1756 from evvers/completion-cmd-consistensy
Make 'completion' help output consistent with other commands
2014-04-26 12:18:57 -04:00
Paul Moore 7aaedd57ff Merge pull request #1745 from RobberPhex/develop
delete read-only file in Windows
2014-04-26 17:16:15 +01:00
Marcus Smith ebe2465635 merge 1.5.X to empty_dirs_develop 2014-04-25 14:08:40 -07:00
Matthew Iversen 0fffb402e4 Merge branch 'duplicate_consumers' into develop
Conflicts:
	CHANGES.txt
2014-04-25 18:29:18 +10:00
Donald Stufft 1370c27a9b Upgrade colorama to 0.3.1 2014-04-24 13:37:32 -04:00
Donald Stufft 37ded088cc Merge pull request #1752 from dstufft/upgrade-setuptools
Upgrade bundled pkg_resources and _markerlib to 3.4.4
2014-04-24 12:27:39 -04:00
Donald Stufft 830440d338 Merge pull request #1691 from dstufft/upgrade-six
Fix #1643 - Upgrade six to 1.6.1
2014-04-24 11:27:43 -04:00
Donald Stufft ba6a08bceb Upgrade bundled pkg_resources and _markerlib to 3.4.4 2014-04-24 08:20:25 -04:00
Eugene Vereshchagin 346c2f12d1 Make 'completion' consistent with other commands
Now help output of completion command consistent with
other commands (i.e. there is a 'Completion Options'
section at help output).
2014-04-24 16:10:40 +04:00
Donald Stufft 5d26bddd81 Upgrade pip._vendor.distlib to 0.1.8 2014-04-24 07:49:06 -04:00
Dan Savilonis 9a9d7acefe Add option --no-check-certificate to skip ssl cert verification 2014-04-24 01:46:33 -04:00
Marcus Smith 79408cbc6f use copy2, not move, to ensure dirs are not copied 2014-04-23 13:08:07 -07:00
RobberPhex 8a86fd3ced Fix a PEP8 error 2014-04-23 13:42:42 +08:00
Marcus Smith b542c9906b move directory creation below the file filtering 2014-04-22 16:09:04 -07:00
RobberPhex f355623a70 rmtree_errorhandler will delete read-only file 2014-04-23 02:28:37 +08:00
Marcus Smith b274b85f96 don't install empty dirs during wheel installs 2014-04-21 23:07:25 -07:00
Matt Iversen 6ecad6df1d Merge pull request #1722 from Ivoz/backcompat_cleanup
Backcompat cleanup
2014-04-21 12:19:41 +10:00
Matthew Iversen 000a59d8ee Stop trying to lowercase commands, it wasn't working anyway 2014-04-18 20:51:19 +10:00
Matt Iversen 4b70070cc3 Merge pull request #1700 from esc/feature/syntax_fix
slightly more pythonic syntax for iterating over line numbers
2014-04-18 07:01:36 +10:00
Matthew Iversen 9cb0ea294a Add tests, improve code addition 2014-04-17 08:42:41 +10:00
Matthew Iversen da867b1d20 Skip adding a duplicated consumer to pip's logger 2014-04-16 09:07:21 +10:00
Matthew Iversen 5d30c43fff Add back user_site for locations and util 2014-04-16 07:59:56 +10:00
Matthew Iversen bcc1a4018c Move site.USER_SITE and sysconfig out of backwardcompat
2.6 always has these now :D
2014-04-16 06:13:08 +10:00
Matthew Iversen eb7e570b0b Remove product reimplementation - unused
No longer needed from 2.6 up (in itertools)
2014-04-16 06:12:57 +10:00
Matthew Iversen aa129ffc51 underscore unused variables 2014-04-03 13:39:43 +11:00
Valentin Haenel c91d78a064 slightly more pythonic syntax for iterating over line numbers 2014-04-02 18:46:34 +02:00
Donald Stufft cb315058a9 Fix #1643 - Upgrade six to 1.6.1 2014-03-28 13:14:24 -04:00
Matt Good 30978a9bf3 Merge remote-tracking branch 'matt/patch-1' into develop
Conflicts:
	pip/req.py
2014-03-27 22:47:50 -07:00
Donald Stufft 190824b949 Document why we use decode_response=False 2014-03-27 11:34:51 -04:00
Donald Stufft 22c562429a Use Accept-Encoding: identity when requesting files 2014-03-27 11:34:51 -04:00
Donald Stufft 5a76a47d3b Fix code to handle the latest flake8 2014-03-26 18:24:19 -04:00
Marcus Smith 0690ff8c2c Merge pull request #1635 from Ivoz/wheelfiles
Allow pip to show files installed for wheels
2014-03-14 21:31:14 -07:00
schlamar 3affcaa2b8 install_lib should take precedence when reading distutils config. 2014-03-13 20:19:26 +01:00
Matthew Iversen 4ef2dca0d7 Allow pip to show files installed for wheels
- shortened looping logic in search_packages_info
- added logic to find installed files for .dist-info's
- Seemed to be off-by-one error for assert exceptions in test_show_with_files_not_found
- changed ..._with_files_not_found to use an editable install for being unlistable
- added test to assert a wheel's files are now listed :D
2014-03-12 16:31:41 +11:00
Marcus Smith e7f4e4d816 Merge pull request #1601 from Ivoz/editablesubdir
Use subdirectory as cwd if specified
2014-03-10 21:54:05 -07:00
Matthew Iversen d3acfe0858 Use subdirectory as cwd if specified 2014-03-09 05:09:02 +11:00
Matthew Iversen d0e6c2fc54 Update docs to ref sorting order of list/freeze 2014-03-09 05:03:28 +11:00
Matthew Iversen 93521d7bc8 Freeze package listing in case insensitive order 2014-03-09 03:54:44 +11:00
dongweiming 1644c283b2 Delete list() transform 2014-03-08 02:19:14 -05:00
dongweiming e430b58ceb Bugfix: when not find a version that satisfies the requirement.
show all versions but duplicate
2014-03-07 17:05:33 -05:00
Donald Stufft 4087145c09 Merge pull request #1413 from techtonik/patch-1
util.py: quote failed command for readability
2014-03-07 12:05:37 -05:00
Bruno Renié 244b399f1f Fix #1424 -- add support for SSL client certificate 2014-03-07 13:41:15 +01:00
Donald Stufft c85150a500 Merge pull request #1444 from novel/retries
Introduce 'retry' option
2014-03-06 22:10:34 -05:00
Daniele Procida 68cacfb71d fixes #1615 2014-03-05 18:17:43 -05:00
Marcus Smith ef80b671d4 Merge pull request #1606 from qwcode/stdlib_pkg_filter
stdlib pkg exclusions for pip list/freeze
2014-03-04 22:45:06 -08:00
Alex Gaynor b8e9500567 Put a space around a comma for readability. 2014-03-03 22:44:28 -08:00
Marcus Smith bff390eb1e pkg exclusions for pip list/freeze 2014-02-28 20:09:26 -08:00
Matthew Iversen 5a2577aaa8 Remove bootstrap function, simplify __main__ 2014-02-27 22:22:08 +11:00
Donald Stufft 95ac4c16f5 Remove dependency links support from pip 2014-02-25 18:39:40 -05:00
Donald Stufft 95035fc5c4 Turn on everything in flake8
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05:00
Donald Stufft c8d9368e71 Merge branch 'master' into develop
Conflicts:
	CHANGES.txt
	pip/__init__.py
2014-02-21 07:18:52 -05:00
Donald Stufft 313b8d9f7d Merge branch '1.5.X'
Conflicts:
	CHANGES.txt
2014-02-21 07:10:46 -05:00
Donald Stufft 627cb5591a Bump version 2014-02-21 07:09:34 -05:00
Marcus Smith 1a0e8fad4c log deprecation for --build when value is different than default 2014-02-20 22:37:35 -08:00
Marcus Smith a3f6ec7b5f can't log deprecation for --build, since it's set always 2014-02-20 22:22:25 -08:00
Donald Stufft 751eec65f3 Merge branch 'master' into develop
Conflicts:
	CHANGES.txt
	docs/configuration.rst
	docs/cookbook.rst
	docs/reference/pip.rst
	docs/usage.rst
	pip/__init__.py
	pip/commands/install.py
	pip/commands/wheel.py
	pip/req.py
	pip/wheel.py
	tests/unit/test_wheel.py
2014-02-20 20:33:59 -05:00
Donald Stufft 3435cf36eb Merge branch '1.5.X'
Conflicts:
	CHANGES.txt
2014-02-20 19:36:56 -05:00
Donald Stufft 8c6a6a01df Bump version and mark release date in the changelog 2014-02-20 18:48:34 -05:00
Donald Stufft cab9d69f3a Upgrade six to 1.5.2 2014-02-20 16:30:49 -05:00
Donald Stufft aeeb33e215 Don't pass a unicode __file__ to setup.py on Python 2.x 2014-02-20 15:56:22 -05:00
Matthew Iversen b26d91c880 Ensure wheel-Version is compatible with pip 2014-02-19 20:01:22 -05:00
Donald Stufft 34808054ce Merge pull request #1569 from Ivoz/test-wheel-version
Test Wheel-Version before installing it
2014-02-19 19:14:18 -05:00
Paul Moore 77be5e914e Added a comment explaining how __main__.py gets teh wheel name 2014-02-19 09:33:51 +00:00
Matthew Iversen 0bbfaf6f06 Expand docstring for check_compatibility 2014-02-19 18:44:44 +11:00
Matthew Iversen 5a6855dcf1 Fix test logic, tiny error / import cleanup 2014-02-19 10:31:12 +11:00
Matthew Iversen e0818e1240 Remove commented line 2014-02-18 18:01:44 +11:00
Matthew Iversen 9f4f6738a5 Use find_on_path, extract compatibility check 2014-02-18 15:19:35 +11:00
Matthew Iversen c55544d83e Merge branch 'develop' of https://github.com/pypa/pip into test-wheel-version 2014-02-18 12:10:38 +11:00
Paul Moore 87418e05bb Modify __main__.py to allow running from wheel 2014-02-17 18:40:39 +00:00
Donald Stufft 3c455a0a28 This is no longer in use 2014-02-16 20:33:21 -05:00
Matthew Iversen 5f40562e0f Small cleanup, use email.parser.Parser 2014-02-17 10:01:32 +11:00
Marcus Smith c6356c855f deprecate --build and --no-clean 2014-02-16 12:30:49 -08:00
Matthew Iversen 13f6c68f0c Ensure wheel-Version is compatible with pip 2014-02-15 17:21:22 +11:00
Marcus Smith 9e39d9d8ca pip docs refactor 2014-02-11 22:13:03 -08:00
Marcus Smith 14f7003291 Merge pull request #1556 from pypa/docs_refactor
pip docs refactor
2014-02-11 21:58:01 -08:00
Marcus Smith 96bfe8b0f9 pip docs refactor 2014-02-11 21:55:43 -08:00
Matthew Iversen 2e15dcdb13 rabble rabble rabble 2014-02-11 07:36:55 +11:00
Matthew Iversen 9a54f11fb8 Make main as simple as possible! 2014-02-11 07:28:02 +11:00
Marcus Smith f1ea95c14b cherry-pick fixes 2014-02-08 09:53:19 -08:00
Marcus Smith 85d68bbf97 fixes for downloading wheels (Issue #1112)
Conflicts:
	pip/req/req_set.py
2014-02-08 09:17:13 -08:00
Marcus Smith a25b3d15c2 when file urls have hash fragments, check it 2014-02-08 09:06:54 -08:00
Marcus Smith 51a93e0672 'pip wheel' should download wheels, when it finds them
Conflicts:
	pip/commands/wheel.py
	pip/download.py
	pip/req/req_set.py
	pip/wheel.py
2014-02-08 09:05:40 -08:00
Paul Moore b71288b5ca Special case os.devnull for PIP_CONFIG_FILE to mean 'no config file' 2014-02-07 21:04:59 +00:00
Matthew Iversen 777953777e Make main even simpler 2014-02-07 03:41:05 +11:00
Matthew Iversen 2e8f1917c8 Simplify __main__ logic
runner.py seemed to exist for the sole function of containing
a simple function that was called by __main__.py.

I've simply removed that file with its function moved into
__main__.py itself; no functionality should be expected to change.
2014-02-06 23:59:44 +11:00
Roman Bogorodskiy f29dd1ad32 Introduce 'retry' option
Add a 'retry' option which allows to configure how many
retries pip should make before giving up on HTTP request.

When the retries count is specified by user, its value is
passed to HTTPAdapter from requests which handles all
the underlying operations.
2014-02-04 00:37:05 +04:00
Marcus Smith 4af1008104 fixes for downloading wheels (Issue #1112) 2014-02-02 15:09:32 -08:00
Marcus Smith eb7a31e019 when file urls have hash fragments, check it 2014-02-01 14:04:58 -08:00
Marcus Smith e41bf0230e 'pip wheel' should download wheels, when it finds them 2014-02-01 11:41:55 -08:00
Donald Stufft b72f44b20c Run flake8 as part of the test suite 2014-01-27 14:40:32 -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
Donald Stufft 8a2882c2c6 Merge branch 'master' into develop
Conflicts:
	pip/__init__.py
	pip/req.py
2014-01-26 10:39:29 -05:00
Donald Stufft 1773cbbfdf Bump version 2014-01-26 00:02:51 -05:00
Donald Stufft 884e922f48 Upgrade requests to 2.2.1
Thanks @kennethreitz, @Lukasa, @sigmavirus24, and @shazow for
a quick turnaround!
2014-01-23 13:39:44 -05:00
Donald Stufft bd7dae9ed3 Properly parse comments from the end of a line 2014-01-22 21:50:57 -05:00
Donald Stufft cc43b8fe29 Upgrade pkg_resources to setuptools 2.1 2014-01-21 14:02:34 -05:00
Donald Stufft e9a896a9a0 Merge branch 'master' into develop
Conflicts:
	docs/installing.rst
	pip/__init__.py
2014-01-20 22:48:44 -05:00
Donald Stufft f2e4644aa0 Version bump and Changelog gets a release date 2014-01-20 22:36:10 -05:00
Donald Stufft 92a43b7dcf Bump version 2014-01-16 20:26:38 -05:00
Donald Stufft 2788e17e43 Upgrade distlib to 0.1.7 2014-01-16 19:15:00 -05:00
Ralf Schmitt 9815271737 raise InvalidWheelFilename if version is missing in wheel filename
Wheel('Cython-cp27-none-linux_x86_64.whl') did raise an AttributeError
instead of InvalidWheelFilename.

This has also been discussed an is similar to
https://github.com/pypa/pip/pull/1445
2014-01-16 00:18:03 +01:00
Marcus Smith ea97076ce0 Merge pull request #1445 from schmir/fix-wheel-single-digit-version
make sure that wheel files with a single digit version do work
2014-01-15 14:22:39 -08:00
Marcus Smith 8e0e3adc91 have bootstrap install setuptools as well if it's not installed 2014-01-14 20:58:53 -08:00
Marcus Smith 7b55934ba1 use explicit relative imports for Python 3 2014-01-12 10:29:59 -08:00
Marcus Smith a7c522da97 fix references to req methods/classes after refactor 2014-01-12 10:05:11 -08:00
Marcus Smith d1634a842f remove req.py 2014-01-11 22:50:27 -08:00
Marcus Smith 48e1a0f480 fix req pkg imports 2014-01-11 22:50:07 -08:00
Donald Stufft e32b4c6704 Return the native string type 2014-01-11 20:27:14 -05:00
Marcus Smith a135af5301 initial breakup of req.py 2014-01-11 16:50:11 -08:00
Marcus Smith d680fd4f1f merge from 1.5.X 2014-01-11 16:28:00 -08:00
Marcus Smith 6f56681780 show what commands are deprecated in pip -h 2014-01-11 09:59:26 -08:00
Marcus Smith 5b1c5f45c6 use Logger.deprecated for deprecation warnings 2014-01-10 20:59:24 -08:00
Donald Stufft 57acb26498 If --allow-unverified is used assume it also means --allow-external 2014-01-10 10:35:55 -05:00
Donald Stufft 05e79c23ba Explicitly test for setuptools and not pkg_resources 2014-01-10 05:05:54 -05:00
Marcus Smith 4afe71fe47 consistent deprecation messages 2014-01-09 20:28:28 -08:00
Donald Stufft ba53193860 Upgraded requests to 2.2.0 2014-01-09 16:49:19 -05:00
Ralf Schmitt 2ca9ba6521 make sure that wheel files with a single digit version do work
this is a rather serious bug, since it makes 'pip wheel ...' fail with
the following error if the wheelhouse contains such a wheel:

,----
| ...
|   File "/home/ralf/.ve/dev/local/lib/python2.7/site-packages/pip/wheel.py", line 420, in __init__
|     self.version = wheel_info.group('ver').replace('_', '-')
| AttributeError: 'NoneType' object has no attribute 'replace'
`----
2014-01-09 16:15:38 +01:00
Donald Stufft b2a60f9088 Dont' fail on ConnectionErrors 2014-01-07 14:36:13 -05:00
Donald Stufft aa6136014f Use the raw stream to prevent decoding the response 2014-01-07 11:57:25 -05:00
Donald Stufft f934b77d61 Have a nice error when setuptools is not available 2014-01-07 08:36:04 -05:00
Donald Stufft cb7af82f20 Remove the setuptools version check
With the vendoring of pkg_resources we no longer need to worry
about the version of the installed setuptools.
2014-01-07 08:11:28 -05:00
Donald Stufft 073ae0d0b1 Switch to importing the vendored pkg_resources 2014-01-07 04:47:04 -05:00