Stéphane Bidoul
803a6f2017
Merge pull request #8271 from deveshks/add-mypy-cache-xmlrpc-form_contr
...
Add mypy type annotations to cache, xmlrpc in network and format_control in models module
2020-05-20 10:19:30 +02:00
Devesh Kumar Singh
65a6152f02
Remove Optional type from xmlrpc bool parameters
2020-05-20 12:40:05 +05:30
Devesh Kumar Singh
fdc062475e
Type annotations for pip._internal.network.xmlrpc
2020-05-19 22:13:44 +05:30
Devesh Kumar Singh
e572d9e0c9
Type annotations for pip._internal.network.cache
2020-05-19 22:13:44 +05:30
Devesh Kumar Singh
1bd8903815
Type annotations for pip._internal.models.format_control
2020-05-19 22:13:32 +05:30
Tzu-ping Chung
0a31845007
Explode the record row for readability
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
dd50a03f10
Use unicode for filesystem stuff on Python 2
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
1056681686
Non-ASCII names are not weird
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
dc4171c213
Python 2 works but not tested
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
7a54132b16
Can drop the strict-optional marker now
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
2339a7a859
Fix installation of wheel with non-ASCII entries
...
This mainly deals with correctly recording the wheel content in the
RECORD metadata. This metadata file must be written in UTF-8, but the
actual files need to be installed to the filesystem, the encoding of
which is not (always) UTF-8. So we need to carefully handle file name
encoding/decoding when comparing RECORD entries to the actual file.
The fix here makes sure we always use the correct encoding by adding
strict type hints. The entries in RECORD is decoded/encoded with UTF-8
on the read/write boundaries to make sure we always deal with text
types. A type-hint-only type RecordPath is introduced to make sure this
is enforced (because Python 2 "helpfully" coerces str to unicode with
the wrong encoding).
2020-05-19 16:03:51 +08:00
Pradyun Gedam
e7dd02c723
Merge pull request #8027 from gutsytechster/pip/7998
2020-05-19 12:14:59 +05:30
Devesh Kumar Singh
60f00b837a
Upgrade flake8 to 3.8.1
...
Co-Authored-By: Anthony Sottile <asottile@umich.edu>
2020-05-18 21:58:26 +05:30
Pradyun Gedam
d0ab9bd8bd
Merge pull request #8235 from deveshks/remove-pretty-arg-from-mypy
2020-05-18 19:40:22 +05:30
Tzu-ping Chung
f39134699b
Avoid the horrendous line break for type hints
2020-05-18 17:15:06 +08:00
Tzu-ping Chung
ec86cb1970
Use OrderedDict to prefer links found *later*
2020-05-18 16:35:09 +08:00
Devesh Kumar Singh
4d208b02b4
Cast record file to typing.IO[str] to appease mypy for python 2
2020-05-18 12:27:26 +05:30
Pradyun Gedam
301f65fad8
Merge pull request #8016 from deveshks/add-mypy-annotations-commands
2020-05-17 23:14:46 +05:30
Pradyun Gedam
04f63ca377
Merge pull request #8018 from deveshks/add-mypy-annotations-hash-show-wheel
2020-05-17 23:13:23 +05:30
Devesh Kumar Singh
8ce6b88077
Remove comment addressing metadata initial value
2020-05-17 15:08:19 +05:30
Nguyễn Gia Phong
29940371cc
Fix typo and simplify ireq call
2020-05-16 12:04:17 +07:00
Paul Moore
c74577e18e
Merge pull request #8186 from uranusjr/install-req-from-dist-line-rewrite
...
Build ireq line from parent for installed dist
2020-05-15 22:33:03 +01:00
Paul Moore
e28b388c73
Merge pull request #7997 from uranusjr/resolver-use-user-site
...
New resolver: implement --user
2020-05-15 20:01:50 +01:00
Paul Moore
640b5e1dec
Merge pull request #8192 from uranusjr/requires-python-contains
...
Allow prereleases in Requires-Python check
2020-05-15 20:01:01 +01:00
Paul Moore
4c599edc5b
Merge pull request #8243 from pfmoore/message_fixes
...
Fix some test failures related to message differences
2020-05-15 15:25:31 +01:00
gutsytechster
2276f9528c
fix(network/auth): Asks for password when it is None
...
When `get_keyring_auth` provides the password as None, the
user should be prompt to ask password.
2020-05-15 19:41:43 +05:30
Paul Moore
adfb70a309
Merge pull request #8239 from pfmoore/constraints_fixes
...
Tidy up handling of unexpected forms of constraint
2020-05-15 14:58:29 +01:00
Paul Moore
c258a1f517
Fix some test failures related to message differences
2020-05-15 14:17:47 +01:00
Pradyun Gedam
7e44950e72
Merge pull request #8051 from deveshks/add-mypy-annotations-comp-dbg
2020-05-15 18:45:42 +05:30
Paul Moore
a56376b20f
req.specifier is always a SpecifierSet
2020-05-15 13:58:12 +01:00
Paul Moore
d42c448e7a
Merge pull request #8234 from pfmoore/refactor_find_matches
...
Split find_matches into generation and sorting
2020-05-15 13:54:50 +01:00
Devesh Kumar Singh
c83c2804ca
Always return SUCCESS from commands.completion.run
2020-05-15 16:57:31 +05:30
Devesh Kumar Singh
78c0a7192a
Change return type annotation for commands.debug.get_vendor_version_from_module
2020-05-15 16:55:58 +05:30
Paul Moore
96b3377cd7
Type annotations
2020-05-15 10:57:07 +01:00
Paul Moore
0bcae1e964
Add a deprecation warning for undocumented constraint forms
2020-05-15 09:54:40 +01:00
Paul Moore
6fcaf49cb0
Tidy up handling of unexpected forms of constraint
2020-05-14 17:04:18 +01:00
Devesh Kumar Singh
bd07bfb8db
Cast record_file to io.StringIO for Python 3 to appease mypy
2020-05-14 17:42:03 +05:30
Pradyun Gedam
1dbcd12236
Merge pull request #8221 from pradyunsg/revert-in-place-builds
2020-05-14 16:23:03 +05:30
Paul Moore
9cf1bed78d
Address review comments
2020-05-14 11:33:30 +01:00
Paul Moore
0db022fc42
Remove left-over print from debugging
2020-05-13 18:04:20 +01:00
Paul Moore
ddbc8fd7c1
Split find_matches into generation and sorting
2020-05-13 17:52:09 +01:00
Devesh Kumar Singh
89f248c7bf
Removing type ignore comments from cli.progress_bars
2020-05-13 15:21:15 +05:30
Pradyun Gedam
0bd624275d
Revert "build in place"
...
This reverts commit 88e6e6bc5c
.
2020-05-13 02:50:10 +05:30
Pradyun Gedam
1b90e1bccf
Revert "remove _copy_source_tree and friends"
...
This reverts commit 873f1e6332
.
2020-05-13 02:50:10 +05:30
Pradyun Gedam
d18ebcfe41
Drop parallelization in pip list
2020-05-07 21:54:56 +05:30
Tzu-ping Chung
1ea42caf1f
Allow prereleases in Requires-Python check
2020-05-07 21:15:43 +08:00
Paul Moore
94f2dc435b
Merge pull request #8170 from pfmoore/nr_constraints2
...
New Resolver: Second try at implementing constraints
2020-05-07 12:40:49 +01:00
Paul Moore
c7c319c4ed
Fix type declarations. Mypy let me down :-(
2020-05-07 11:55:56 +01:00
Paul Moore
64b3d1b278
Merge constraints into a single SpecifierSet
2020-05-06 11:30:25 +01:00
Paul Moore
ee4830b5ec
Move constraints from factory to provider
2020-05-06 10:56:50 +01:00