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

73 commits

Author SHA1 Message Date
Pradyun S. Gedam
788bd73436 🎨 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
812008a1ce Undo name change on baseparser 2017-05-20 12:48:59 +05:30
Pradyun S. Gedam
614059007f Add a configuration command
* Major refactor of configuration to remember parsers and contexts.
* Add new methods for modifying configuration and what a parser is for.
* Add a load_only parameter to make life easier.
* Rename variable on baseparser for ensuring no collisions occur by mistake
* Add a configuration command that *mostly* does what it should

[skip ci] because it'll fail anyway. The tests need updating.
2017-05-20 12:48:59 +05:30
Pradyun S. Gedam
1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Pradyun S. Gedam
8c45460241 Remove unnecessary code 2016-12-31 11:22:04 +05:30
Pradyun S. Gedam
ed05dbfa8c Remove isolated attribute of ConfigOptionParser 2016-12-26 18:28:50 +05:30
Pradyun S. Gedam
9e3f61c808 Add the missing argument, Rename variable 2016-12-23 15:53:45 +05:30
Pradyun S. Gedam
406694e87d Reduce the API of Configuration class 2016-12-23 14:39:15 +05:30
Pradyun
666f6db069 Move out all the config code to a separate module (#4192)
This refactor is intended to make it easier to make configuration related improvements in the future, since all the code is in a separated unit.

The unit tests have been updated partially to merely update them. They now patch underscore names which means that they probably need updating.
2016-12-23 09:46:04 +01:00
Matthias Bussonnier
d4e22ea097 Add tests 2016-07-28 15:18:44 -07:00
Jakub Wilk
6dc28c1b31 Fix typos 2016-06-10 21:29:43 +02:00
Robert Collins
a66d3e2e8b Issue #2867: Accept --no/only-binary via pip.conf 2015-06-10 10:25:15 +12:00
Donald Stufft
7a139f273a Correctly handle options with pip in their name 2014-12-23 19:36:18 -05:00
Donald Stufft
90b1179b76 Enable --isolated flag which will turn on an isolated mode for pip 2014-11-23 21:26:40 -05:00
Donald Stufft
f63d1e3abb Implement platform specific user config locations 2014-09-10 11:43:34 -04:00
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