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

23 commits

Author SHA1 Message Date
Georgi Valkov
33c101933f set indent_increment to 1 2012-12-10 03:03:02 +02:00
Georgi Valkov
5f69e258a7 add baseparser options to the 'General Options' group 2012-12-10 03:00:15 +02:00
Georgi Valkov
841ae62768 ensure that there is a newline between usage and options 2012-12-10 02:50:04 +02:00
Georgi Valkov
2559c784bb align command list with options 2012-12-07 12:25:03 +02:00
Georgi Valkov
2c64a1e160 replace global OptionParser and refactor main() 2012-11-10 15:37:15 +02:00
Georgi Valkov
8dbdf50863 add create_main_parser() and the '-V --version' option 2012-11-10 15:34:20 +02:00
Jannis Leidel
1447d7d2ac Use our own terminal size util. 2012-09-01 20:36:35 +02:00
Jannis Leidel
1525a63b57 Added a get_prog util to correctly show the name of the program when using python -m pip.
Also show the full path in the missing command error message.
2012-09-01 20:36:31 +02:00
Phil Freo
848a3b4f26 Fix typos in documentation 2012-08-18 17:18:44 -03:00
Georgi Valkov
0371ddb86f Style and consistency fixes as suggested by reviewers 2012-05-15 00:37:00 +03:00
Georgi Valkov
3534ac56f0 Use a prettier/less verbose help formatter
* Prevents excessive wrapping (respects $COLUMNS if set)
 * More control over the look of pip's option handling
 * '-d DIR, --download=DIR' becomes '-d, --download <DIR>'
2012-03-02 01:46:22 +02: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
Carl Meyer
128f15cd99 Removed unused imports and trailing whitespace. 2011-12-12 02:02:14 -07:00
David Evans
7a889d800c Fix for subtle config override bug
Config keys should be normalized (i.e., have underscores replaced with
dashes) *before* the config dictionaries are merged.

Otherwise, if you set a value in a config file and via an environment
variable both the dash separated key (from the config file) and the
underscore separated key (from the environment variable) end up in the
config dictionary. Usually this doesn't matter because the latter key
comes after the former when the dictionary is iterated over. But in
cases where the two config keys hash to the same value module the size
of the dictionary, the order is reversed and the wrong value takes
precedance.

For instance with 'index-url' there's no problem:

    >>> repr({'index-url': 1, 'index_url': 2})
    "{'index-url': 1, 'index_url': 2}"

But with 'no-index', the value from the config file overwrites the
value from the environment variable:

    >>> repr({'no-index': 1, 'no_index': 2})
    "{'no_index': 2, 'no-index': 1}"
2011-12-07 16:47:08 +00:00
Paul van der Linden
8d67101b6e path exists action 2011-10-04 16:10:46 +02:00
Carl Meyer
87dd1579a2 Removed broken and no-longer-useful -E and PIP_RESPECT_VIRTUALENV options. 2011-05-18 10:27:14 -05:00
Vinay Sajip
680b5dfda0 Port to Python3 2011-03-15 15:49:48 -04:00
Jannis Leidel
4d33521822 Added option to disable prompting for input. Also added ability to interactively ask for username and/or password in case a request requires authentication. 2010-08-31 13:08:57 +02:00
Hugo Lopes Tavares
d06c98dc6f merged changes related to PEP 8 from hltbra's fork 2010-06-02 23:25:26 -03:00
Jannis Leidel
b74665237c Overwrite the local log file in ~/.pip/pip.log instead of appending to prevent huge log files. For a verbose log file use the --log option explicitely (which will be appended to). 2010-03-11 00:41:42 +01:00
Ian Bicking
59e57c3b88 fix missing import 2009-11-20 02:46:21 -06:00
Ian Bicking
5c0d44fe5f Factor out the base option parser, and the file locations 2009-11-20 01:25:32 -06:00