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

97 commits

Author SHA1 Message Date
Harutaka Kawamura
df98167fe5
Complete type annotations in pip/_internal/cli (#10169) 2021-07-23 11:39:53 +08:00
Diego Ramirez
1e016d2994
Convert type hint comments into annotations
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-06-07 21:19:23 +08:00
Deepyaman Datta
0170e37046
Remove second space after comma in find_links help 2021-06-07 17:42:32 +08:00
Stéphane Bidoul
5b9a628873 Refactor --global-option declaration in wheel command 2021-04-04 17:08:06 +02:00
Stéphane Bidoul
d53ddb9380 Refactor --build-option declaration 2021-04-04 16:18:06 +02:00
Ben Bodenmiller
b920bbbe5b
Update cmdoptions.py 2021-02-26 01:32:18 -08:00
Ben Bodenmiller
e451d51870
Update cmdoptions.py 2021-02-24 01:07:05 -08:00
Ben Bodenmiller
998d66aff8
Update cmdoptions.py 2021-02-24 00:22:23 -08:00
Ben Bodenmiller
25a856bec4
Update cmdoptions.py 2021-02-24 00:07:39 -08:00
Ben Bodenmiller
2720e4a228
Merge branch 'master' into patch-1 2021-02-24 00:04:36 -08:00
David Hewitt
838988cb44 Build local directories in-place with feature flag 2021-02-22 23:31:47 +00:00
Jon Dufresne
83c596ff70 Blacken src/pip/_internal/cli directory
In autocompletion.py, the should_list_installed boolean expression was
flipped to workaround upstream black bug:

https://github.com/psf/black/issues/1629

The bug makes black fail to stabilize formatting when the list isn't the
last piece of the expression.
2021-02-21 07:29:15 -08:00
Jon Dufresne
0945809afc Remove typing.TYPE_CHECKING guards
The typing module has been available since Python 3.5. Guarding the
import has been unnecessary since dropping Python 2.

Some guards remain to either:

- Avoid circular imports
- Importing objects that are also guarded by typing.TYPE_CHECKING
- Avoid mypy_extensions dependency
2021-02-19 18:34:21 -08:00
Jon Dufresne
a6392bd62e Replace pip._internal.utils.typing with stdlib typing
The stdlib module has been available since Python 3.5 and the
TYPE_CHECKING constant has been available since 3.5.2.

By using stdlib, this removes the need for pip to maintain its own
Python 2 typing compatibility shim.
2021-02-18 19:09:13 -08:00
Paul Moore
6739f56351 Use our own copy of strtobool, rather than the one from distutils 2021-01-20 15:42:29 +00:00
Ben Bodenmiller
202bdfad64
Multiple lines for help text 2021-01-19 17:52:24 -08:00
Ben Bodenmiller
f2cb6ad5c1
Improve --cert help text 2021-01-19 16:55:06 -08:00
Ben Bodenmiller
e19c095101
Clarify that --cert replaces default CA bundle 2021-01-19 16:33:30 -08:00
Jon Dufresne
cdcf74fb8e Use f-strings for simple string formatting
Use pyupgrade to convert simple string formatting to use f-string
syntax. pyupgrade is intentionally timid and will not create an f-string
if it would make the expression longer or if the substitution parameters
are anything but simple names or dotted names.
2020-12-25 16:21:20 -08:00
Jon Dufresne
f32adaf09b Remove __future__ imports
Unnecessary since dropping Python 2.
2020-12-24 08:38:09 -08:00
Stéphane Bidoul
31a2e1a586
Restore --build-dir 2020-12-01 23:22:07 +01:00
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
5d15291274 Use lazy wheel to obtain dep info for new resolver 2020-07-21 16:00:34 +07:00
f8b06a3906 Enable flake8-logging-format 2020-07-17 14:33:19 +07:00
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