Henry Schreiner
c7ace4de39
Upgrade packaging to 20.9
2021-01-29 15:54:55 -05:00
Tzu-ping Chung
2e70ec0751
Create the candidate lazily to avoid download
2021-01-27 19:58:24 +08:00
Pradyun Gedam
8d042c4487
Merge pull request #9464 from NoahGorny/fix-pip-debug-parse-version
...
commands: debug: Use packaging.version.parse to compare
2021-01-23 17:38:25 +00:00
Paul Moore
6c09bdd7c0
Bump for release
2021-01-23 14:42:04 +00:00
Paul Moore
f03051540c
Revert "Bump for release"
...
This reverts commit 91f43f1fd4
.
2021-01-23 14:39:29 +00:00
Paul Moore
91f43f1fd4
Bump for release
2021-01-23 13:14:09 +00:00
Pradyun Gedam
8517a44f84
Update changelog for 20.3.4
2021-01-23 12:53:38 +00:00
Stéphane Bidoul
8de9edf401
Merge pull request #9436 from sbidoul/vcs-url-sbi
...
Remove deprecated support for VCS pseudo URLs
2021-01-19 11:07:17 +01:00
Tzu-ping Chung
6c0e484703
Include both sources in inconsistency error
2021-01-18 19:00:52 +08:00
Stéphane Bidoul
b3761f6fab
Remove support for git+git@ pseudo VCS URLs.
...
Now that we don't need to support git@
pseudo-urls, we can simplify the test for
valid VCS URLs based on link.is_vcs, which
is turns is based on the URL scheme.
This also means we fail earlier if a git@ pseudo
URL is used.
Since VCS requirements are not validated to be URLs
in Requirement constructors, we can simplify update_editable.
2021-01-18 09:11:07 +01:00
Pradyun Gedam
3af9093a73
Merge pull request #9274 from sbidoul/pip-wheel-must-keep-clone-sbi
2021-01-17 15:30:57 +00:00
Stéphane Bidoul
9361faa03e
Add newfragments
2021-01-17 14:43:52 +01:00
Noah Gorny
c09bc1432b
commands: debug: Use packaging.version.parse to compare
2021-01-16 19:23:02 +02:00
Paul Moore
7deba59c33
Upgrade msgpack and requests
2021-01-16 10:36:11 +00:00
Stéphane Bidoul
aa089883a8
Merge pull request #9438 from sbidoul/legacy-cache-cleanup
...
Remove support for legacy cache entries
2021-01-13 16:03:43 +01:00
Xavier Fernandez
363132659b
Merge pull request #9367 from hugovk/rm-2-default_time_format
...
Use Formatter.default_time_format after dropping PY2
2021-01-13 10:32:38 +01:00
Stéphane Bidoul
750b8a32fe
Remove support for legacy cache entries
2021-01-10 11:50:13 +01:00
Pradyun Gedam
9b83654de8
Merge pull request #9331 from sbidoul/7969-revert-sbi
...
Revert #7969 and fix VCS stdout/stderr capture
2021-01-09 21:09:04 +00: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
Xavier Fernandez
14830ae837
Merge pull request #9372 from jdufresne/devnull
...
Prefer subprocess.DEVNULL over open(os.devnull, 'w')
2021-01-07 11:58:08 +01:00
Pradyun Gedam
c7419b2aac
Merge pull request #9320 from uranusjr/wheel-check-valid
...
Verify built wheel contains valid metadata
2021-01-05 21:47:53 +00:00
Pradyun Gedam
47493d8227
Merge pull request #9410 from jdufresne/get-similar-commands
...
Make get_similar_command() return None for no value
2021-01-02 22:29:35 +00:00
Jon Dufresne
004b2cf9a8
Remove unused utility function consume()
...
Unused since e706af20fe
.
2021-01-01 16:07:53 -08:00
Jon Dufresne
014ccec8ca
Make get_similar_command() return None for no value
...
Follows the more conventional pattern of using None, instead of False,
when no value can be returned. This simplifies typing a bit by using
Optional instead of Union[bool, ...].
2021-01-01 11:50:37 -08:00
Stéphane Bidoul
062f0e54d9
Merge pull request #9401 from jdufresne/ne
...
Remove unnecessary __ne__ definitions
2021-01-01 19:38:09 +01:00
Stéphane Bidoul
35604e5a4c
Merge pull request #9403 from jdufresne/get-revision
...
Harmonize return type of VersionControl.get_revision in subclasses
2021-01-01 19:36:20 +01:00
Jon Dufresne
ca053fbe88
Handle ._get_svn_url_rev() returning None in .get_remote_url()
...
The method Subversion._get_svn_url_rev() will sometimes return None for
a remote URL. The calling code should handle this. If it is None, raise
a RemoteNotFoundError as prescribed by the parent class docstring.
Followup to 0b761a164c
.
2020-12-31 14:36:58 -08:00
Jon Dufresne
c513c5e890
Harmonize return type of VersionControl.get_revision in subclasses
...
Previously, the Subversion subclass violated the parent's type signature
by returning an int, but it is now coerced to a str to match the
expected signature.
2020-12-30 11:25:29 -08:00
Jon Dufresne
a49f1732e9
Remove unnecessary __ne__ definitions
...
Unnecessary since dropping Python 2 support. In Python 3, `__ne__`
defaults to the opposite of of `__eq__`.
https://docs.python.org/3/reference/datamodel.html#object.__ne__
> For `__ne__()`, by default it delegates to `__eq__()` and inverts the
> result unless it is `NotImplemented`.
2020-12-30 08:23:04 -08:00
Jon Dufresne
5150129f6b
Replace compat.expanduser() with os.path.expanduser()
...
The upstream bug has been fixed and released in all supported Python
version: https://bugs.python.org/issue14768
2020-12-29 08:15:55 -08:00
Pradyun Gedam
af5b7fe1f9
Merge pull request #9390 from jdufresne/noqa
...
Remove unnecessary "noqa" comments
2020-12-29 09:01:17 +00:00
Pradyun Gedam
914b7c2165
Merge pull request #9389 from jdufresne/copy-tree-kwargs
...
Remove unused class CopytreeKwargs
2020-12-29 08:57:42 +00:00
Jon Dufresne
133e146a88
Remove unused type VersionCandidate
...
Unused since 6a8956d7a8
.
2020-12-28 19:18:20 -08:00
Jon Dufresne
b78f71216f
Remove unnecessary "noqa" comments
2020-12-28 18:19:09 -08:00
Jon Dufresne
4bfe1037ee
Remove unused class CopytreeKwargs
...
Unused since d509a27ad4
.
2020-12-28 17:07:56 -08:00
Pradyun Gedam
67c03c3e81
Merge pull request #9382 from jdufresne/colorama-import
...
Remove outdated mypy workaround for colorama import
2020-12-28 07:46:51 +00:00
Pradyun Gedam
adca454611
Merge pull request #9385 from jdufresne/named-temp-file
...
Remove unnecessary type override NamedTemporaryFileResult
2020-12-28 07:36:22 +00:00
Jon Dufresne
089bbcb939
Remove unnecessary type override NamedTemporaryFileResult
...
The object returned by NamedTemporaryFile delegates all functions calls
to the underlying file so can avoid the type override by relying on IO
methods.
2020-12-27 17:19:28 -08:00
Jon Dufresne
9109e1ccde
Remove outdated mypy workaround for colorama import
2020-12-27 13:15:27 -08:00
Jon Dufresne
bd0c1f5d4c
Remove outdated PyPy workaround for site_packages location
...
Upstream issue has been resolved and released on Python versions
supported by pip:
https://foss.heptapod.net/pypy/pypy/-/issues/2506
2020-12-27 12:16:28 -08: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
50517b2171
Prefer subprocess.DEVNULL over open(os.devnull, 'w')
...
Available since Python 3.3.
https://docs.python.org/3/library/subprocess.html#subprocess.DEVNULL
Use a context manager for the other opened file, dump.
2020-12-27 08:37:08 -08:00
Jon Dufresne
14380668b5
Drop csv23 in favor of stdlib csv
...
Using csv23 has been unnecessary since dropping Python 2 support. It
previously remained as a compatibility shim.
2020-12-27 08:09:32 -08:00
Stéphane Bidoul
b3d348d6e7
Merge remote-tracking branch 'upstream/master' into 7969-revert-sbi
2020-12-27 17:01:58 +01:00
Stéphane Bidoul
74369e860e
vcs: capture subprocess stdout only
2020-12-27 16:54:57 +01:00
Pradyun Gedam
609d9d4a68
Merge pull request #9371 from hugovk/tidy-urllib-imports
...
Clean up urllib imports
2020-12-27 15:34:09 +00:00
Tzu-ping Chung
92b90ea7e9
Split news into two sections
2020-12-27 22:25:34 +08:00
Hugo van Kemenade
a3e246f7d0
Cleanup: replace 'from urllib import xyz as urllib_xyz' with import urllib.xyz
2020-12-27 16:18:44 +02:00
Tzu-ping Chung
6a438bdc93
Upgrade vendored resolvelib to 0.5.4
2020-12-27 20:23:07 +08:00