| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
This makes it more reasonable to use a rich renderable for regular
logging messages, instead of only using it for the diagnostic error
messages.
|
|
|
| |
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
|
|
|
|
| |
Co-Authored-By: q0w <43147888+q0w@users.noreply.github.com>
|
| |
|
|
|
| |
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
|
|
|
|
| |
Also, reflects that `--no-color` does not mean no-ansi-escapes but only
affects colour rules.
|
|
|
|
|
|
|
|
|
|
| |
This makes it possible to present output with rich markup, within the
constraints of our logging infrastructure.
Further, diagnostic errors can now by presented using rich, using their
own special "[present-diagnostic]" marker string, since those need to be
handled differently from regular log messages and passed directly
through to rich's console object, after an indentation wrapper.
|
|
|
|
|
|
|
| |
The different-definition-based-on-platform is unnecesary. This isn't
called such that the cost of an additional conditional matters much.
Bundling it into a single function definition makes it easier to read.
|
|
|
|
|
|
|
|
|
|
| |
Use the tool com2ann to automatically convert most type comments to type
annotations. Some type comments continue to exist where any work beyond
the automatic conversion was required (for example, additional
formatting or circular references).
For additional information on the com2ann tool, see:
https://github.com/ilevkivskyi/com2ann
|
| |
|
|
|
|
|
|
|
| |
loaded in pip._internals.__init__
must use utils.logging.getLogger to get the right type annotation
instead of logging.getLogger, despite no actual difference in behavior
|
|
|
|
|
|
|
|
| |
adds VERBOSE custom log level between DEBUG and INFO
used when `-v` is given. Now require -vv to enable full debug output.
Messages can be logged with VERBOSE level to promote them to `-v` output instead of `-vv`
|
|
|
|
| |
Followup to c148bcc1aa4025a9dae5bcdabe1a1e01e6df28e5.
|
|
|
|
| |
Remove mypy exceptions that are straightforward to remove.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://www.python.org/dev/peps/pep-3102/
Replaces the pattern: self.name = kwargs.pop('name')
Keyword-only arguments offer some advantages:
- In the event of a typo or misuse, a more informative error is
presented to the programmer.
- More self documenting and makes interfaces more explicit.
- They more easily allow explicit typing.
Adding types to ConfigOptionParser required changing some call sites to
pass arguments without using a dict due to mypy bug:
https://github.com/python/mypy/issues/9676
|
|\
| |
| | |
Use Formatter.default_time_format after dropping PY2
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
Unnecessary since dropping Python 2.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Resolves #6587.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Why? Eases post-facto analysis of time spent in different phases of pip operation.
Historical note:
https://github.com/pypa/pip/commit/767d11e49cb916e2d4637421d524efcb8d02ae8d#diff-b670e3b192038c9ffe810c1a12c0c51fL219
made it so that pip invocations emit zero timestamp information to the log
file. Prior to that each pip invocation's start time was written out (search
that commit's diff for [strftime]).
Result: https://gist.github.com/fischman/f570886219de5c64a3b695300195c70a
Resolves https://github.com/pypa/pip/issues/6141
|
| |
|
| |
|
|
|
|
|
| |
The current list is already not up-to-date. This should be handled by
downstream packagers if they unvendor pip's dependencies.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Improve the --no-color test
* Let the logger decide to not color things
* misc: Move handler name outside dict
|