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

76 commits

Author SHA1 Message Date
Noah Gorny a29dda6d2b cli: Drop --unstable-feature flag 2020-11-14 12:03:53 +02:00
Xavier Fernandez 9725229888 Add --exclude option to pip freeze and pip list commands 2020-10-30 21:50:59 +01:00
Pradyun Gedam 2d91950cad
Allow passing legacy-resolver from CLI 2020-10-30 07:16:19 +05:30
Daniel Katz 7632c7a22b Spell abis and platforms as plural words. 2020-10-27 19:00:22 -04:00
Daniel Katz 7237bd3397 Respond to feedback, and add functional tests. 2020-10-27 19:00:22 -04:00
Daniel Katz abf987bde3 Use 'append'-style CLI arguments, rather than ','-separated values. 2020-10-27 19:00:22 -04:00
Daniel Katz cea9f32dae Support multiple abi and platform values for pip download. 2020-10-27 19:00:22 -04:00
Paul Moore 40904e3a05 Remove --build-dir option, as per deprecation 2020-10-27 15:24:36 +00:00
Pradyun Gedam 25ab172b55
Update linter: isort 2020-09-23 19:52:28 +05:30
Vipul Kumar 2b07c5d288
End no-color's description with period punctuation
It would be nice, if like description of other options, "--no-color"'s
description also ends with a period.
2020-09-23 04:43:51 +00:00
Nguyễn Gia Phong 5d15291274 Use lazy wheel to obtain dep info for new resolver 2020-07-21 16:00:34 +07:00
Nguyễn Gia Phong f8b06a3906 Enable flake8-logging-format 2020-07-17 14:33:19 +07:00
Nguyễn Gia Phong cb8d81d135 Nitpick logging calls 2020-07-17 14:33:19 +07:00
Pradyun Gedam a8eaf11d7f
Use the correct flag name
Co-authored-by: Stéphane Bidoul <stephane.bidoul@acsone.eu>
2020-07-03 19:20:58 +05:30
Pradyun Gedam cd95531951
Add --use-feature and --deprecated-feature flags 2020-07-03 18:49:51 +05:30
Pradyun Gedam 93b0683d65
Merge pull request #8470 from deveshks/remove-always-unzip 2020-06-30 13:33:30 +00:00
Devesh Kumar Singh a833914387 Add help text to --no-input option 2020-06-26 07:21:56 +05:30
Devesh Kumar Singh 17b1c76ff5 Remove --always-unzip usage in source code 2020-06-25 16:52:15 +05:30
Stéphane Bidoul acab2ee54e Deprecate --build-dir 2020-06-21 19:05:55 +02:00
Devesh Kumar Singh 8f1d808deb Add noqa B010 for setattr 2020-06-10 00:39:50 +05:30
Noah Gorny afb4e6f5ba cli: cmdoptions: Mark always_unzip as depreceated 2020-06-01 21:56:59 +03:00
Pradyun Gedam 7e61569b1a
Drop --skip-requirements-regex 2020-04-20 22:37:25 +05:30
Ricky Ng-Adam 45d5b377ab elaborate on type of links supported 2020-04-04 10:22:02 -04:00
cjc7373 c388315bc0 Clarify the usage of --no-binary and --only-binary command 2020-03-30 16:57:24 +02:00
Tzu-ping Chung fc810d7353 Add --unstable-feature=resolver
This introduces a new general option --unstable-feature that can be used
to opt into "preview" features in pip not enabled by default. Currently
the only available feature is "resolver".

A stub resolver interface (which would fail on invocation) is provided
to respond to the flag.

The --unstable-feature option is hidden from --help since the resolver
does not yet work. This suppression should be removed when we release
the resolver for general/public testing.
2020-03-11 18:51:01 +08:00
Nitesh Sharma ce1e0f470a
Move UI helpers to cli subpackage (#6727) 2020-02-21 14:01:13 +05:30
Deepak Sharma d31cf696e8 string_formatting 2020-01-30 20:33:00 +05:30
Tzu-ping Chung 32ecd727d5 Rename custom option class for future expansion 2020-01-07 10:50:53 +05:30
Tzu-ping Chung 9c04298d5b Revert expanduser on options that accept URL 2020-01-02 20:46:14 +08:00
Tzu-ping Chung 2e24041ca5 Custom optparse.Option type that calls expanduser 2020-01-02 15:30:54 +08:00
victorvpaulo 81805a5776 Add option to silence warnings related to deprecation of Python versions (#6739)
* Add option to silence warnings related to deprecation of Python versions

* Move skip_if_python2 and skip_if_not_python2 decorator declaratios to test/lib/__init__.py and use them in test_warning.py

* Add tests to ensure that python version deprecation warning is shown correctly and can be silenced by a flag.

* Add new test to ensure that --no-python-version-warning flag does nothing if python version is not 2
2019-12-15 09:59:34 +08:00
Maxim Kurnikov 58e2a99ccf remove disallow_untyped_defs=False for most of pip._internal.cli modules 2019-12-13 09:58:52 +03:00
Chris Hunt 95c3f632e3 Handle build dir normalization in cmdoptions
Technically this changes behavior in DownloadCommand, which does not
make build_dir absolute, but given that it is used the same way as in
InstallCommand and WheelCommand (which do make it absolute), it should
not have any visible impact.
2019-12-12 21:46:04 +08:00
Chris Hunt a046c4f0c3 Handle making --src-dir absolute at option declaration
This will let us reduce duplication of this option normalization in a
few of our commands.
2019-12-12 21:46:04 +08:00
Hanjun Kim f2bde8038c
Fix typo in warning message
Option names in the message should match with actual arguments.
2019-11-11 23:08:35 +09:00
gpiks f006a7b262 Clarify --no-binary when enumerating packages and add an example
Minor tweak to `--no-binary` documentation to specify that when
enumerating packages, the colons are not needed. Additionally,
add an example to demonstrate building a wheel from source.
2019-09-30 22:22:35 -04:00
Maxim Kurnikov 3692097cca add per-file disallow_untyped_defs=False, and set it to True globally 2019-09-29 23:31:15 +02:00
Chris Jerdonek 6a55f0788b Move make_search_scope() to outdated.py. 2019-09-18 00:48:48 -07:00
Albert Tugushev 3c9770d9b2 Redact single-part login credentials from URLs (#6921) 2019-08-26 15:50:07 -07:00
Frost Ming 8ac22141c2 Support including port part in trusted-host (#6909) 2019-08-25 16:26:01 -07:00
Pradyun Gedam 476606425a
Add mypy's no-strict-optional configuration inline (#6750) 2019-08-04 21:59:42 +05:30
Chris Jerdonek 56324a3f38 Fix "~" expansion in --find-links paths. 2019-08-03 11:55:38 -07:00
Pradyun Gedam f377148f6d
Use mypy's inline configuration syntax for opt-outs 2019-07-30 12:39:51 +05:30
Xavier Fernandez 4cf08e85c0 Isolate src_prefix computation in a function 2019-07-19 12:08:33 +02:00
Chris Jerdonek db213c04d7 Add add_target_python_options() and make_target_python(). 2019-06-23 09:28:54 -07:00
Chris Jerdonek cab7316e2b Change PackageFinder.create() to accept a SearchScope object. 2019-06-21 14:41:49 -07:00
Laszlo Kiss-Kollar 246130c48f Consolidate --path parsing into cmdoptions.py
This option is used both in the `freeze` and `list` commands. The code
to parse the option and validate that it's not used with incompatible
arguments should be done in one place.
2019-06-13 09:37:16 +01:00
Chris Jerdonek 4bb225d486 Allow dotted version strings for --python-version. 2019-06-08 19:59:09 -07:00
Chris Jerdonek 798d814629 Change PackageFinder to use Tuple[int, ...] instead of List[str] for --python-version. 2019-05-28 03:05:14 -07:00
Chris Jerdonek fada348b00 Make all Option callbacks start with the same prefix. 2019-05-28 02:32:18 -07:00