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

769 commits

Author SHA1 Message Date
Donald Stufft 13ba411c72 Add a missing text from the exception message 2013-09-24 23:32:03 -04:00
Donald Stufft cf0c6e74dd Move the requests.HTTPError into it's own exception handler 2013-09-24 23:32:03 -04:00
Donald Stufft 059ef170ee Catch the requests SSLError instead of ssl.SSLError 2013-09-24 23:32:03 -04:00
Donald Stufft e34769861e Enable Basic Auth either inside of urls or by prompting 2013-09-24 23:32:03 -04:00
Donald Stufft 3b3cdda31d Pass our created session into RequirementSet 2013-09-24 23:32:03 -04:00
Donald Stufft 92c40c3e06 Ensure that we successfully utilize requests timeout functionality 2013-09-24 23:32:03 -04:00
Donald Stufft a8b94878f3 Remove threaded page downloads
Threaded page downloads was causing issues with the requests
pool being closed. It also makes this area of code harder to debug
and quite often the pool has a size of 1.

Further more the pool only affects the scaning of the index which
should not have as great of a need for parallezation now that there
is only a single request per download by default.
2013-09-24 23:32:03 -04:00
Donald Stufft ff2854a855 Use requests instead of urllib2 2013-09-24 23:32:03 -04:00
Donald Stufft 651a9611bc Vendor requests v2.0.0 2013-09-24 23:31:49 -04:00
Marcus Smith 237a8ae577 --log file object getting closed prematurely (Issue #219) 2013-09-19 19:00:29 -07:00
Marcus Smith 129a37be88 real time logging in py3 2013-09-19 16:08:56 -07:00
Takayuki SHIMIZUKAWA 7078351b85 pip-1.4.1 did not work with Python-3.1
Python3(.1) can't import relative module without dot('.').
2013-09-18 16:31:25 +09:00
Marcus Smith 44323cd355 have --version report the version of pip that's running, not installed 2013-09-17 22:00:22 -07:00
Marcus Smith e272d9001f replace make_option_maker with OptionMaker class 2013-09-16 22:45:51 -07:00
Marcus Smith 15910f573e define options once, but don't globally instantiate 2013-09-16 22:21:15 -07:00
Marcus Smith d21d0e434e 1) have create_main_parser construct the parser description.
2) have `create_main_parser` mark the parser as the 'main' parser.
3) remove an extraneus block that's never called.  thanks @netspyer.
4) move 'create_main_parser` to __init__ to avoid circular or embedded imports.
2013-09-15 21:28:19 -07:00
Marcus Smith 5245e62bcf don't pass around options we're not using anymore 2013-09-15 21:28:19 -07:00
Georgi Valkov c6495a46e3 remove basecommand.merge_options()
This patch removes the error prone step of merging the baseparsers'
options (the 'Generic Options') with those of the subparser. In fact,
commands are already capable of parsing all options present in the
'Generic Options' option group. The option parsing logic is as follows:

Given a command line such as:
  '--timeout 5 install --user pkg'
pip.parseopt() returns command 'install' with arguments:
  '--timeout 5 --user pkg'
pip.main() executes the above as:
  commands['install'](parser).main('--timeout 5 --user pkg', options)
2013-09-15 21:28:18 -07:00
Marcus Smith 35ac774ec5 multi-values use space seperators in environment variables. 2013-09-15 18:09:36 -07:00
Marcus Smith 924d243de3 When action is 'append', let's check value by value.
Previously, we used `convert_value' in all cases, which seems
to try to detect lists based on the value of nargs, but that fails
with lists of one item. This "worked" for 'str' options, because
the values don't get checked, but was failing for choice types
(see Issue #772), and would fail for other types like int.
2013-09-15 17:24:36 -07:00
Yu Jian 54d3d9d76c fix a typo 2013-09-05 17:54:15 +08:00
Marcus Smith f6d242aeea merge from 1.4.X 2013-09-01 13:15:45 -07:00
Marcus Smith 1afdc665ae don't override distutils scripts location using pip's legacy logic 2013-08-31 15:28:44 -07:00
Lincoln de Sousa d6582a251e Cmds {install,wheel} should return proper error code
The `pip` executable was returning a successful status code (`0`) when
trying to install new packages with existing previous build directories.

Conflicts:
	tests/functional/test_install_cleanup.py
	tests/functional/test_wheel.py
2013-08-26 18:55:55 -07:00
Lincoln de Sousa 9584608aac Cmds {install,wheel} should return proper error code
The `pip` executable was returning a successful status code (`0`) when
trying to install new packages with existing previous build directories.
2013-08-25 19:42:25 -04:00
Marcus Smith 9b4b651cc6 we'll assume '_' means '-' for versions from wheel filenames 2013-08-21 23:30:15 -07:00
Marcus Smith 1f989ff32e merge from 1.4.X 2013-08-19 21:23:39 -07:00
Marcus Smith 65007e3c65 when unpacking archives, don't preserve permissions except execution for regular files 2013-08-17 00:18:40 -07:00
Donald Stufft 467b8b8be0 Grammar 2013-08-16 12:59:56 -04:00
Donald Stufft aa4955883c Remove runon sentence 2013-08-16 12:59:04 -04:00
Donald Stufft 7f4eebd296 Add a heading to the vendor README 2013-08-16 12:57:34 -04:00
Donald Stufft f0ec094de4 Expand upon the vendor README 2013-08-16 12:56:16 -04:00
Donald Stufft 3c61ba7040 Warn when using an insecure transport for index or find-links 2013-08-15 09:29:11 -04:00
Donald Stufft 5d2b6b3be0 Merge pull request #1109 from dstufft/better-warning-output
Colorize Log Output
2013-08-07 21:05:30 -07:00
Donald Stufft fcdee3c652 Merge branch 'master' into develop
Conflicts:
	.travis.yml
	CHANGES.txt
	pip/__init__.py
	tests/functional/test_install_index.py
2013-08-07 21:21:32 -04:00
Donald Stufft 77f959a3ce Bump version to 1.4.1 2013-08-07 20:42:56 -04:00
Marcus Smith d3cbb3f606 fix up the bundle support 2013-08-07 00:13:47 -07:00
Marcus Smith 5fcf4ab6f4 let --download work with wheels 2013-08-05 21:27:41 -07:00
Donald Stufft 5f1ca6b79c Fix on Windows 2013-08-05 08:00:55 -04:00
Donald Stufft e5c64f0878 Add some tests to ensure behavior 2013-08-05 01:55:28 -04:00
Donald Stufft a560a2c3ad Pass the environ dict into should_color 2013-08-05 01:33:17 -04:00
Donald Stufft fdeffacd90 Split the version parsing into it's own function 2013-08-05 01:31:43 -04:00
Donald Stufft 0773d49b3c Use the new Log.deprecated to log the messages about mirrors 2013-08-04 23:48:45 -04:00
Donald Stufft f8d4b326be Add Log.deprecated which takes a removal version and logs a message
Deprecation message will use Log.warn if removal version is > 1
release away, otherwise it will use log.error
2013-08-04 23:48:45 -04:00
Donald Stufft 7685533a40 Emit Log.error with a log level of ERROR 2013-08-04 23:48:45 -04:00
Donald Stufft ce79c72247 Render logging output with colors if they are supported 2013-08-04 23:48:36 -04:00
Donald Stufft c6d31a72bc Vendor colorama 2013-08-04 22:59:47 -04:00
Donald Stufft dc559473e2 Restore some functionality to --mirrors and issue a warning 2013-07-30 06:26:13 -04:00
Donald Stufft 3ef4ee4693 Remove direct support for PEP381 Mirrors
* PEP381 Mirroring support was never fully implemented leaving
  users of it trivially exploitable to a MITM or malicious mirror
  operator.
* 2 out of 6 of the mirrors have been removed from the pool and
  will never resolve.
* The remaining mirrors often fall behind
* The mirrors will likely never be available under HTTPS
* People who wish to use a mirror of PyPI can still do so by
  manually specifying a mirror url for --index-url or
  --extra-index-url which is more flexible, allowing for
  mirrors to be hosted under any domain.
2013-07-29 12:42:33 -04:00
Marcus Smith 84480ac9b7 Merge pull request #1095 from qwcode/fix-1074
function in case of broken sysconfig. fix #1074
2013-07-27 21:09:19 -07:00