Damian Shaw
68529081c2
Enforce f-strings via Ruff ( #12393 )
2023-11-07 09:14:56 +00:00
Christian Clauss
69a1e956da
Ruff rules C4,C90,PERF
2023-08-28 14:51:13 +02:00
Stéphane Bidoul
55f1251fa2
Merge pull request #11868 from DefaultRyan/normalize-path-cached
...
cache normalize_path in req_uninstall and is_local
2023-04-11 08:44:18 +02:00
Ryan Shepherd
5294e34fa1
Retry removing the argument from lru_cache
2023-04-10 16:45:34 +02:00
pre-commit-ci[bot]
4221c23a2b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-04-10 16:45:34 +02:00
Ryan Shepherd
a84f7bf0b0
Fix overly long line length
2023-04-10 16:45:34 +02:00
Ryan Shepherd
14736eac9c
Document _normalize_path_cached
2023-04-10 16:45:34 +02:00
Ryan Shepherd
6a8e403148
Remove is_local import
2023-04-10 16:45:34 +02:00
Ryan Shepherd
82f1d14772
Remove reference to utils.misc.normalize_path_cached
2023-04-10 16:45:34 +02:00
Ryan Shepherd
58882a1642
Move normalize_path caching to an instance on UninstallPathSet
2023-04-10 16:45:34 +02:00
Ryan Shepherd
d46fd99de8
cache normalize_path in req_uninstall and is_local
2023-04-10 16:45:34 +02:00
Pradyun Gedam
01b1388165
Merge branch 'main' into main
2023-03-27 11:52:58 +01:00
Tzu-ping Chung
846d8e5965
Try to cover Path interface differences
2022-04-12 03:31:46 +08:00
q0w
3820b0e52c
Replace Iterator[T] with Generator[T,None, None] ( #11007 )
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2022-04-09 16:11:58 +01:00
Russell Keith-Magee
d1f3c73697
Normalise paths when comparing egg-link from network drive ( #11011 )
...
Co-authored-by: Niko Pasanen <niko@pasanen.me>
2022-04-07 08:50:03 +01:00
Jiun Bae
0a205358fe
Update compare package path using os.path.samefile
2021-12-01 17:01:02 +09:00
Jiun Bae
c19f5f5f99
Update uninstall package link pointer path
2021-12-01 16:16:26 +09:00
Tzu-ping Chung
39bcfce66d
Pass arguments to closure instead of late binding
2021-11-20 19:59:57 +08:00
Tzu-ping Chung
35ec4375df
Fix editable-or-not egg-info uninstallation
2021-11-18 17:58:13 +08:00
Tzu-ping Chung
e1680b20fd
Fix distutils uninstallation error
2021-11-18 17:58:12 +08:00
Tzu-ping Chung
ebd693e0b5
Abstract pkg_resources from uninstall operation
2021-11-18 17:55:38 +08:00
Pieter Degroote
ebee1cecf8
Improve error message when egg-link does not match installed location
...
Include the locations of the mismatched locations in the message, to
provide more context.
2021-10-22 10:07:03 +01:00
Stéphane Bidoul
2de1e5b1bf
Remove egg_link_path()
2021-09-21 11:18:02 +02:00
Pradyun Gedam
069b01932a
Blacken src/pip/_internal/req
...
Progresses the black formatting of the codebase further.
2021-07-24 09:47:54 +01:00
harupy
9d96e0777f
Convert type comments
2021-07-23 23:38:27 +09:00
Joe Michelini
197392ca3d
Update src/pip/_internal/req/req_uninstall.py
...
Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
2021-06-29 06:14:42 -04:00
Joe Michelini
6a346a4948
add default proceed to uninstall
2021-06-29 06:14:42 -04:00
Tzu-ping Chung
c16585173b
Merge pull request #9450 from minrk/custom-log-level
2021-06-11 19:05:56 +08:00
Min RK
c87af08422
use setLoggerClass to define log.verbose
...
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
2021-06-11 11:59:51 +02:00
Miro Hrončok
f77649e841
Provide a better error message when uninstalling packages without dist-info/RECORD
...
Fixes https://github.com/pypa/pip/issues/8954
2021-05-10 21:56:59 +02:00
Min RK
9b3e78474a
-v shows subprocess output
...
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`
2021-03-12 13:12:09 +01:00
Tzu-ping Chung
09513b82da
Merge branch 'master' into sysconfig
2021-02-28 06:52:26 +08:00
Pradyun Gedam
baaf66f70d
Merge pull request #9591 from hexagonrecursion/open
...
Replace `open(file, 'r')` with `open(file)`
2021-02-23 13:37:25 +00:00
Tzu-ping Chung
738e600506
Move distuitls location logic into subpackage
2021-02-23 01:57:40 +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
Andrey Bienkowski
f13e10c915
Replace `open(file, 'r')` with `open(file)`
2021-02-10 13:20:11 +03:00
Xavier Fernandez
b33e791742
Merge pull request #9375 from jdufresne/dict-set-comprehension
...
Use dict and set comprehension where available
2021-01-07 15:04:05 +01:00
Jon Dufresne
8a9fea7434
Remove unnecessary class FakeFile
...
The class was being used in a single place, passed to csv.reader().
However, per the docs, csv.reader() can handle a list of str objects.
https://docs.python.org/3/library/csv.html#csv.reader
> csvfile can be any object which supports the iterator protocol and
> returns a string each time its __next__() method is called — file
> objects and list objects are both suitable.
2020-12-27 09:26:15 -08:00
Jon Dufresne
156886c144
Use dict and set comprehension where available
2020-12-27 08:49:32 -08:00
Jon Dufresne
09b3d3a50b
Remove object from class definitions
...
Unnecessary since dropping Python 2 support. In Python 3, all classes
are new style classes.
2020-12-25 15:48:11 -08:00
Jon Dufresne
f32adaf09b
Remove __future__ imports
...
Unnecessary since dropping Python 2.
2020-12-24 08:38:09 -08:00
Hugo van Kemenade
817ee23051
Remove redundant Python 2.7 code
2020-12-22 09:06:26 +02:00
Pradyun Gedam
25ab172b55
Update linter: isort
2020-09-23 19:52:28 +05:30
Pradyun Gedam
6fa4a9a0a7
Clean up code style changes
...
Toward minimizing style changes in the overall PR diff, or toward
consistency with the future use of black (in cases where I wasn't sure
of a good way to minimize the diff).
2020-07-17 14:33:19 +07:00
Nguyễn Gia Phong
f8b06a3906
Enable flake8-logging-format
2020-07-17 14:33:19 +07:00
Devesh Kumar Singh
4264d5e0d3
Don't fail uninstallation if easy-install.pth doesn't exist
2020-03-24 17:08:44 +05:30
Deepak Sharma
d31cf696e8
string_formatting
2020-01-30 20:33:00 +05:30
Tzu-ping Chung
555d05ce0d
Use logger to log instead of logging
2020-01-07 20:40:36 +05:30
Maxim Kurnikov
d1452ffabd
add global disallow_any_generics=True
2019-11-12 21:08:48 +03:00