Pradyun Gedam
2d028e140e
Revert "Filter available distributions using hash declarations from constraints files ( #10962 )"
...
This reverts commit 0c284520c6
.
2022-05-03 17:50:21 +01:00
q0w
0c284520c6
Filter available distributions using hash declarations from constraints files ( #10962 )
2022-03-16 07:43:06 +00:00
Tzu-ping Chung
498f313853
Remove pkg_resources usages from req_install
2021-12-04 17:57:33 +08:00
Tzu-ping Chung
cd01e4fd8f
Remove pkg_resources usages from utils modules
...
Relevant functionalities are moved into pip._internal.metadata.
2021-12-04 17:57:33 +08:00
Joseph Bylund
97327292c6
Set limited maxsize for requirement parsing cache
2021-10-08 07:28:45 -04:00
Joseph Bylund
dee6690f06
Renames, moves, docstrings, comments
2021-10-07 07:11:33 -04:00
Tzu-ping Chung
135faabfd6
Remove direct pkg_resource usages from resolver and preparer
2021-08-23 02:07:33 +08:00
Jon Dufresne
6a6561c2cb
Move many type comments to annotations
...
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
2021-08-10 07:12:32 -07:00
Jon Dufresne
a9d4446dc4
Blacken src/pip/_internal/utils directory
2021-02-21 07:24:35 -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
Jon Dufresne
f32adaf09b
Remove __future__ imports
...
Unnecessary since dropping Python 2.
2020-12-24 08:38:09 -08:00
Pradyun Gedam
25ab172b55
Update linter: isort
2020-09-23 19:52:28 +05:30
Chris Jerdonek
8dbf88dff7
Update pip-download to respect --python-version.
2019-06-06 13:20:29 -07:00
Chris Jerdonek
cd5bd2cd52
Improve error message if METADATA or PKG-INFO metadata is None.
2019-05-26 12:35:07 -07:00
Chris Jerdonek
f82ea77217
Simplify the _check_dist_requires_python() call site.
2019-05-24 21:33:12 -07:00
Chris Jerdonek
cc70cf5ba3
Move check_dist_requires_python() to resolve.py.
2019-05-23 22:58:10 -07:00
Chris Jerdonek
6217335a41
Remove unnecessary slices.
2019-05-08 19:34:55 -04:00
Chris Jerdonek
5be4e1481e
Remove utils/packaging.py's dependence on the current environment.
2019-05-07 21:51:39 -04:00
Maxim Kurnikov
f77b8ca051
remove #noqa: F401
2019-02-22 14:17:07 +03:00
Maxim Kurnikov
5e5904e61c
Add type annotations for pip._internal.utils and pip._internal.vcs.__init__ ( #6061 )
2018-12-08 08:47:24 +05:30
Paul Moore
52d87f2e30
Refactoring metadata handling in InstallRequirement
2018-07-31 21:11:45 +01:00
Paul Moore
701d88d06d
Placate flake8 (2 spaces before inline comment)
2018-03-24 11:55:09 +00:00
Paul Moore
6e8af823f1
Silence invalid mypy errors (see python/typeshed#1985 )
2018-03-24 11:41:51 +00:00
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
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00