Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00
Pradyun S. Gedam
49abd55fe5
Configuration - Documentation updates ( #4556 )
2017-06-24 13:24:13 -04:00
Pradyun S. Gedam
dc8f5825fd
🎨
2017-06-16 12:14:25 +05:30
Pradyun S. Gedam
a7d229d155
🎨
2017-06-13 22:56:11 +05:30
Pradyun S. Gedam
b5bfca1004
Address review comment
2017-06-13 21:42:32 +05:30
Pradyun S. Gedam
daf754ae25
Protect get_file_to_edit from not having a load_only
2017-06-13 21:40:35 +05:30
Pradyun S. Gedam
3bb4ddc332
Change file_ to fname
2017-06-01 11:38:20 +05:30
Pradyun S. Gedam
341766c162
Address review comments
2017-06-01 11:25:42 +05:30
Pradyun S. Gedam
bd850c0798
Improve tests
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
6442a1bf08
Environment Variables load separately from Environment Configuration.
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
951d374045
🔧
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
07439a9aaa
🔥 Get rid of _make_key
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
8262a83e05
🔧
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
3efb452a2a
Use an enum-like attribute to refer to configuration sources
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
c9113e41db
Rename site-wide to global
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
3b6c3d152d
I forgot file is a builtin in Python 2
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
788bd73436
🎨
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
d3f7a25833
Raise Configuration Errors with proper messages
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
4b44f4660f
Add tests
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
dcd7c60413
Raise a ConfigurationError
2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
af528de2df
Errors are fatal
2017-05-20 12:54:04 +05:30
Pradyun S. Gedam
b617f39bf6
Add debugging message + 🎨
2017-05-20 12:54:04 +05:30
Pradyun S. Gedam
027911f5e1
Remove dependency on re for a trivial task
2017-05-20 12:54:04 +05:30
Pradyun S. Gedam
ebead2376a
Handle PIP_CONFIG_FILE correctly
2017-05-20 12:53:13 +05:30
Pradyun S. Gedam
75680a8372
Put environment configuration file in a list
...
And skip None case cleanly
2017-05-20 12:53:13 +05:30
Pradyun S. Gedam
7ff6c12469
DRY the code
2017-05-20 12:53:13 +05:30
Pradyun S. Gedam
e91292b118
Move conditional out of _get_config_files
2017-05-20 12:53:13 +05:30
Pradyun S. Gedam
558edd6882
Implement get_file
2017-05-20 12:53:13 +05:30
Pradyun S. Gedam
757d356d89
Add ConfigurationError and use it.
2017-05-20 12:52:01 +05:30
Pradyun S. Gedam
39edb2cfb2
Nicer messages/docstrings, better log level
2017-05-20 12:52:01 +05:30
Pradyun S. Gedam
5a02a7d85c
Comment + Docstring changes
2017-05-20 12:52:01 +05:30
Pradyun S. Gedam
06367c0655
Misc
2017-05-20 12:52:01 +05:30
Pradyun S. Gedam
86777f1d48
Move file-paths into pip.locations
2017-05-20 12:52:01 +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
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