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

58 commits

Author SHA1 Message Date
Donald Stufft 767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Richard Jones aedca3c842 Implement site-wide configuration settings
* add site_config_dirs() to appdirs to determine locations across OSes
* add system_config_files to locations.py
* add system_config_files to get_config_files() and re-order files entries to correct precedence
* document changes to configuration files in user guide

Closes #309
2014-08-22 14:26:41 +10:00
Matthew Iversen b7770c502a Remove unnecessary imports, move some to six 2014-06-07 04:21:51 +10:00
Matthew Iversen dcb0ee0702 Move backwardcompat package to compat module 2014-05-14 13:10:06 +10:00
Alex Gaynor b48b9ce53f Resolve several typos in the codebase 2014-04-29 22:33:04 -07:00
Donald Stufft 5a76a47d3b Fix code to handle the latest flake8 2014-03-26 18:24:19 -04: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
Paul Moore b71288b5ca Special case os.devnull for PIP_CONFIG_FILE to mean 'no config file' 2014-02-07 21:04:59 +00: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
Marcus Smith d680fd4f1f merge from 1.5.X 2014-01-11 16:28:00 -08:00
Donald Stufft 073ae0d0b1 Switch to importing the vendored pkg_resources 2014-01-07 04:47:04 -05:00
Paul Moore 884861f390 Added a virtualenv-specific configuration file 2013-12-04 13:04:54 +00: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 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 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 6e2bfe8323 remove python 2.5 logic 2013-04-17 22:50:22 -07: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
Marcus Smith f00b015d73 cli help formatting fixes 2013-02-16 12:51:57 -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 d0c3138fbf merge with develop 2013-02-15 17:11:17 -08:00
Jonas Nockert 5ae29b6f61 Corrected a few typos 2013-02-14 20:28:27 +01:00
Marcus Smith 83d8b3756b only show --allow-no-ssl when no ssl 2013-02-10 01:30:24 -08:00
Marcus Smith 76b5ebcd48 use the more common phrase 'CA bundle' 2013-02-10 01:15:40 -08:00
Marcus Smith bb7ba1aea4 shorter metavar for --cert-path 2013-02-08 22:47:39 -08:00
Marcus Smith 84964064a3 --cert-path and --no-ssl options 2013-02-06 23:27:53 -08:00
Marcus Smith ab9ea197bd improved docs and cli help 2013-01-18 13:25:15 -08:00
Georgi Valkov af64773a6e fix command completion 2012-12-14 15:35:00 +02:00
Georgi Valkov b26cdee1e6 move command options before general options
Add a new base parser class 'CustomOptionParser' that provides the
'insert_option_group(idx, *, **)' method for inserting an option group
at a specific position.
2012-12-12 15:06:05 +02:00
Georgi Valkov 4ec46922ff fix '-h,--help' option for commands 2012-12-11 12:39:57 +02:00
Georgi Valkov 64f4caed7d s/makeopt/optparse.make_option 2012-12-11 12:17:14 +02:00
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