Tzu-ping Chung
1056681686
Non-ASCII names are not weird
2020-05-19 16:03:51 +08:00
Tzu-ping Chung
aef15104c3
Fix test comment
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
776a55a419
Fix unit tests on module-internal functions
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
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
66d6601ec9
Merge pull request #8237 from uranusjr/new-resolver-as-a-fixture
...
Add pytest option to globally switch resolver
2020-05-15 20:00:36 +01:00
Paul Moore
d53e880cfe
Merge pull request #8229 from uranusjr/one-constraint-test
...
Add one more constraint test
2020-05-15 16:37:00 +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
041f83f76a
Doh, I forgot to update our own tests...
2020-05-15 14:45:44 +01:00
Paul Moore
c258a1f517
Fix some test failures related to message differences
2020-05-15 14:17:47 +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
Paul Moore
6fcaf49cb0
Tidy up handling of unexpected forms of constraint
2020-05-14 17:04:18 +01:00
Pradyun Gedam
a879bc448a
Merge pull request #8236 from uranusjr/test-skip-reason
...
Add a reason why we're xfail-ing this test
2020-05-14 17:05:47 +05:30
Pradyun Gedam
9f0665cefe
Merge pull request #8055 from gutsytechster/endian_safe
2020-05-14 17:03:41 +05:30
Paul Moore
9cf1bed78d
Address review comments
2020-05-14 11:33:30 +01:00
Tzu-ping Chung
a82a5e7abe
Add pytest option to globally switch resolver
2020-05-14 18:00:42 +08:00
Tzu-ping Chung
56d53cd60b
Add a reason why we're xfail-ing this test
...
This test uses xfail to test the negation of what's described in the
test, i.e. the assertion should "fail" if the command does what we
expect. I think this is a terrible way to write a test, but don't bother
to rewrite. This commit message is left here to tell future maintainers
what the test is all about by git blame.
2020-05-14 15:15:57 +08:00
Paul Moore
ddbc8fd7c1
Split find_matches into generation and sorting
2020-05-13 17:52:09 +01:00
Tzu-ping Chung
713645a554
Add one more constraint test
2020-05-13 07:13:19 +08:00
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
c0641464df
Revert "fix test_entrypoints_work test"
...
This reverts commit ace0c16531
.
2020-05-13 02:50:10 +05:30
Pradyun Gedam
4297b8d9b7
Revert "fix test_uninstall_console_scripts"
...
This reverts commit 877e1ccc77
.
2020-05-13 02:50:07 +05:30
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
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
Tzu-ping Chung
6ab42a86b8
Add tests for --user installs
...
Tests are based on equivalents from test_install_user.py with
modifications to appropriately monkey-patch things in the new resolver
module.
2020-05-06 03:48:34 +08:00
Tzu-ping Chung
d8062791dd
Implement use-user-site
2020-05-06 03:48:34 +08:00
Tzu-ping Chung
9eb47650b0
Please don't use shell=True :(
2020-05-05 20:29:21 +08:00
Pradyun Gedam
09a5af52e4
Merge pull request #8125 from uranusjr/yanked-link-warning-relocate
2020-05-05 16:15:52 +05:30
Tzu-ping Chung
1f32d8dfc6
Refine output check to accomodate specifier change
2020-05-05 18:42:53 +08:00
Paul Moore
8664218164
Merge branch 'master' into nr_constraints2
2020-05-05 11:41:09 +01:00
Pradyun Gedam
cbfbc29b63
Merge pull request #8118 from ilanschnell/yaml_updates
2020-05-04 19:30:50 +05:30
gutsytechster
b30dd1e04e
fix(tests/unit): Update tests to be endian safe
...
This updates `test_path_to_display` and `test_str_to_display__encoding`
to use the endian safe expected result instead of the hardcoded one.
This fixes https://github.com/pypa/pip/issues/7921
2020-05-03 22:51:00 +05:30
Paul Moore
1599cc2a36
Merge branch 'master' into nr_upgrade_strategy
2020-05-03 11:01:27 +01:00
Paul Moore
218e7d830d
Merge pull request #8146 from uranusjr/new-resolver-extra-in-explicit-requirement
...
New resolver: Carry extras info in ExplicitRequirement
2020-05-03 10:57:48 +01:00
Paul Moore
d3847e3071
Merge pull request #8059 from pelson/extra_requirements
...
Add xfail tests for case where specifications added as an extra are not honoured
2020-05-03 10:07:40 +01:00
Paul Moore
2483fb6cdd
Merge pull request #8127 from pradyunsg/resolver/installation-order
...
Rework `get_installation_order` to allow for dependency cycles
2020-05-03 09:58:59 +01:00
Paul Moore
0058bb5212
Improve test
2020-04-29 14:55:15 +01:00
Paul Moore
5186f05bd7
Add tests for constraints
2020-04-29 12:16:09 +01:00
Devesh Kumar Singh
8dccece9c0
Combine setting new umask and getting old one into one
2020-04-29 11:57:11 +05:30
Devesh Kumar Singh
9319703ad9
Add unit test for checking permissions with custom umask
2020-04-29 11:46:43 +05:30
Ilan Schnell
e8920daeab
add trivial example to demonstrate installing and uninstalling multiple packages
2020-04-29 00:12:02 -05:00
Ilan Schnell
1f6ff0cc6e
make flake8 happy
2020-04-28 23:43:00 -05:00