Commit Graph

17 Commits

Author SHA1 Message Date
Nguyễn Gia Phong c564a3d541 Use monkeypatch.setenv in config and option tests 2020-07-25 20:46:45 +07:00
Xavier Fernandez 645809944c
Move config files locations inside a function (#6736) 2019-07-20 22:29:24 +02:00
Steve Dower 293c91ee8a Configuration files may now also be stored under `sys.prefix` (#6268)
* Rename kinds.VENV to kinds.SITE and site_config_files to global_config_files
* Add tests for config file options
* Deprecate --venv in pip config
2019-03-07 11:14:56 +05:30
Pradyun Gedam 3350cc4516
bodge: Allow both str and repr to be used for configuration file name
This is because Python 2's and Python 3's configparser treat the two
differently and we're reusing that message.
2018-10-03 20:23:40 +05:30
Pradyun Gedam 29b12fa80b
Fix test to exactly match output 2018-09-30 23:04:46 +05:30
Pradyun Gedam 6a18c24803
Show error messages when configuration-related errors occur 2018-09-20 11:18:22 +05:30
Pradyun Gedam 353a13ddff
isort: Include trailing commas 2017-11-21 13:23:59 +05:30
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 4e47f04fe5 Sort imports 2017-06-13 23:41:31 +05:30
Pradyun S. Gedam bd850c0798 Improve tests 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam 94d752e399 Add a test for environment config file 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam b58419afc6 Use strings only 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 9063899e7d Move mixin to a helper module 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam 4b44f4660f Add tests 2017-05-20 12:56:13 +05:30