Commit Graph

3260 Commits

Author SHA1 Message Date
Andrey Bienkowski afecf80cff Lint 2021-03-29 10:37:40 +03:00
Andrey Bienkowski cd7b50277e Use f-strings for formatting 2021-03-29 10:37:24 +03:00
Tzu-ping Chung 1068e75e9c Drop the SCHEMES['nt_user']['scripts'] shim
I dug into CPython commit history and this was fixed in 3.5, so we
shouldn't need this? Let's find out...
2021-03-22 11:05:51 +08:00
Tzu-ping Chung c76e9c4d8e Reduce diff 2021-03-15 14:53:14 +08:00
Tzu-ping Chung 56a8f3d8bd Typing fixes 2021-03-10 16:40:58 +08:00
Tzu-ping Chung 9624d0d529
Merge pull request #9676 from stefanor/re-parse-version 2021-03-08 03:17:25 +08:00
Tzu-ping Chung 80e0163e03
Merge pull request #9552
From uranusjr/new-resolver-requires-python-error
2021-03-08 02:26:20 +08:00
Winson Luk c6933d5c5d
Add a warning when run as root (e.g., sudo pip) (#9394) 2021-03-06 12:59:39 +00:00
KOLANICH 7a95720e79 Fixed --editable install for setuptools projects without setup.py.
Co-Authored-By: Tzu-ping Chung <uranusjr@gmail.com>
Co-Authored-By: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
2021-03-03 21:24:29 +03:00
Stefano Rivera ba4b7f110d Don't cache _version 2021-03-03 09:27:36 -08:00
Tzu-ping Chung d9d7790636
Merge pull request #9467 from uranusjr/avoid-exchanging-parsed-version
Use str to pass versions to avoid debundling issue
2021-03-03 16:39:21 +08:00
Stefano Rivera 8f2e3d6978 Parse pkg_resources Dist versions with packaging.version
Due to a mix of bundled and unbundled dependencies, pkg_resources
Version class may not be the same as packaging's Version class.

See: https://github.com/pypa/setuptools/issues/2052
2021-03-02 12:19:10 -08:00
Tzu-ping Chung e7d6e54dff
Merge pull request #9669 from uranusjr/ignore-invalid-name-dist-info
Ignore dist-info directories with invalid name
2021-02-28 23:27:06 +08:00
Tzu-ping Chung 550270c7ff
Merge pull request #9636 from dwt/master 2021-02-28 22:16:28 +08:00
Tzu-ping Chung e4349aec70 Ignore dist-info directories with invalid name 2021-02-28 22:13:36 +08:00
Pradyun Gedam 8223d29b39
Merge pull request #9405 from MrMino/diagnostic_aversion 2021-02-28 08:43:33 +00:00
Pradyun Gedam 1c46f30a3e
Merge pull request #9584 from hexagonrecursion/paren
Drop redundant parentheses
2021-02-28 08:40:07 +00:00
Tzu-ping Chung 6d018bf220 Special-case PyPy's lib location differences 2021-02-28 08:31:41 +08:00
Blazej Michalik d1d914597c
Refactor `set(...)` → `{...}`
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2021-02-28 00:41:04 +01:00
Tzu-ping Chung 826234e3ac New style type hints 2021-02-28 07:37:23 +08:00
Tzu-ping Chung d87abdfdfe Fix error reporting on Requires-Python conflicts 2021-02-28 07:31:39 +08:00
Tzu-ping Chung 09513b82da Merge branch 'master' into sysconfig 2021-02-28 06:52:26 +08:00
Tzu-ping Chung b4ce289237 Add a couple of special cases for PyPy 2021-02-28 06:43:11 +08:00
Blazej Michalik a2c57948b6 Bring back the "from versions:" message
In the new resolver the "(from versions ...)" message, shown on
failure to resolve a package, has been removed. This commit brings it
back.
2021-02-27 20:37:10 +01:00
Tzu-ping Chung a220486af2
Merge pull request #9477 from bbodenmiller/patch-1 2021-02-27 15:31:01 +08:00
Tzu-ping Chung 7f8504cf86
Merge pull request #9589 from hexagonrecursion/text-typehint 2021-02-27 11:20:56 +08:00
Andrey Bienkowski 65934d3e8b
Upgrade from six.raise_from to the raise from syntax (#9590)
* Upgrade from six.raise_from

* Lint
2021-02-26 13:57:30 +00:00
Ben Bodenmiller b920bbbe5b
Update cmdoptions.py 2021-02-26 01:32:18 -08:00
Tzu-ping Chung 410e82ad4a
Merge pull request #8733 2021-02-25 20:11:20 +08:00
Tzu-ping Chung 43b7f3ff95
Merge pull request #9300 2021-02-25 14:49:18 +08:00
Pradyun Gedam 0ffff034f3
Merge pull request #9595 from hexagonrecursion/transformed-hint
Use the new typehint syntax
2021-02-24 13:30:20 +00:00
Tzu-ping Chung e0d6028ebf Additional logging to get context 2021-02-24 17:53:36 +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
Jon Dufresne 581868484b Use super() for Python 2 old-style classes
Followup to c148bcc1aa.
2021-02-23 15:20:52 -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
Pradyun Gedam 270ddd3d03
Merge pull request #9404 from jdufresne/mypy-fixup
Handle several mypy TODO comments and exceptions
2021-02-23 13:30:23 +00:00
Pradyun Gedam 79cca313c2
Merge pull request #9641 from jdufresne/black-dist
Blacken the src/pip/_internal/distributions directory
2021-02-23 13:17:14 +00:00
Tzu-ping Chung a0a3bde152 Split scheme inference functions for clarity
This also helps catch bugs in the logic, which are also fixed in this
commit.
2021-02-23 19:27:27 +08:00
Jon Dufresne 63ea2e8c08 Handle several mypy TODO comments and exceptions
Remove mypy exceptions that are straightforward to remove.
2021-02-22 16:53:54 -08:00
David Hewitt 838988cb44 Build local directories in-place with feature flag 2021-02-22 23:31:47 +00:00
Tzu-ping Chung 0c4bd55706 Stray name 2021-02-23 05:04:21 +08:00
Tzu-ping Chung 8ba9917c0f
Merge pull request #9556 from remove-pkg-resources-versioncontrol
Avoid pkg_resources API in versioncontrol
2021-02-23 05:02:58 +08:00
Tzu-ping Chung 60a82e7a0e Better erroring 2021-02-23 04:38:32 +08:00
Tzu-ping Chung d37fdf27d3
Merge pull request #9635 from jdufresne/blacken-cli
Blacken src/pip/_internal/cli directory
2021-02-23 04:30:42 +08:00
Tzu-ping Chung b7068f643e Split bin_user and bin_prefix implementations
Module-level logic is bad.
2021-02-23 04:29:46 +08:00
Tzu-ping Chung 1e1289e550 User-site special case fixes 2021-02-23 03:51:15 +08:00
Tzu-ping Chung 917ecadd77 Show constraint in error message 2021-02-23 02:08:19 +08:00