Commit Graph

16 Commits

Author SHA1 Message Date
Pradyun Gedam 8b4713f63c
Move cmdoptions to pip._internal.cli 2018-07-29 18:26:33 +05:30
Pradyun Gedam a121abbc30
Add flake8 ignores for mypy imports 2018-06-13 13:17:30 +05:30
Pradyun Gedam 88e17b4aed
Update the import for PyPI Index model 2018-05-30 01:44:51 +05:30
Daniel Shaulov d67d98dd91 Add a --prefer-binary flag. (#5370)
The flag makes pip prefer an older but valid binary distributions over a newer source distributions.

Fixes #3785.
2018-05-11 11:17:32 +05:30
Paul Moore d6bf7a90ef
Merge pull request #5055 from pradyunsg/misc/3564-fix
Document that --build disables cleanups
2018-03-30 22:18:12 +01:00
Paul Moore d41dc17910
Merge pull request #5012 from MarSoft/patch-2
Fix typo in --help for --no-deps option
2018-03-27 14:35:56 +01:00
Pradyun Gedam c08d4cc806
Add --no-build-isolation for disabling build isolation 2018-03-09 00:01:26 +05:30
Pradyun Gedam 1fc59bc593
Document that --build disables cleanups 2018-03-05 00:33:40 +05:30
Семён Марьясин 51a3f6f823
Fix typo in --help for --no-deps option 2018-02-02 16:05:59 +03:00
Anuj Godase f038fe47bd Add a note about temporary directories to --build help text (#4944)
Document that an initial build occurs in a temporary directory, even when --build is specified.
2018-01-01 23:46:50 +05:30
Pradyun Gedam 729990c986
Round 1 of Cleanups (#4844)
* misc: fix typo
* misc: 🎨 cleanup parenthesis
* misc: 🎨 minor simplifications
* tests: fix test_console_to_str_warning
2017-12-25 15:23:27 +05:30
Pradyun Gedam 353a13ddff
isort: Include trailing commas 2017-11-21 13:23:59 +05:30
Oz N Tiram 4370a5a37b Add a global option to disable colors (#4739)
* Add a global option to disable colors

 This is a fix for issue #2449

 All it does is simply add a global option --no-color

 Internally it switches ColorizedStreamHandler to StreamHandler if
 this flag is detected.

* Fix lint errors

 * not sure it makes the code more readable though ...

* Fix typo

* Choose logging class before assigning

 * As requested per review
 * Make the code shorter and easier to follow

* Be polite to followers, add commas

* Add functional test for the --no-color output

* Better detection of windows

* Fix fragile tests - can't trust script --quiet

 * The version found in Travis-CI does not respect this flag
   It added a prefix line and suffix line found if one does not
   add the flag --quiet (script from util-linux 2.26.2).

   As such the out  put is:

     Script started on Fri 27 Oct 2017 07:17:30 AM CEST
     \x1b[31mCannot uninstall requirement noSuchPackage, not installed\x1b[0m\n

     Script done on Fri 27 Oct 2017 07:17:31 AM CEST

  With this change, the test should pass, and is hopefully more stable.

* Simplify testing for color or no-color
2017-11-05 15:23:57 +05:30
Pradyun S. Gedam e2b2f70ebb isort all imports 2017-09-02 17:02:48 +05:30
Pradyun S. Gedam da57810742 type: Any partials in cmdoptions 2017-09-02 16:52:19 +05:30
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Renamed from pip/cmdoptions.py (Browse further)