1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

2571 commits

Author SHA1 Message Date
Chris Hunt
95375a5213 Make session a required parameter in operations.prepare 2019-11-11 22:34:52 -05:00
Christopher Hunt
0801e972c3
Merge pull request #7337 from chrahunt/refactor/remove-unneeded-compat
Remove unnecessary native_str implementation
2019-11-11 15:44:02 +08:00
Pradyun Gedam
c522381b32
Rename InstallationCandidate.{project -> name} (#7328) 2019-11-11 13:11:19 +05:30
Christopher Hunt
8ce34af430
Merge pull request #7323 from chrahunt/refactor/less-intrusive-pep425tags
Be less intrusive towards pep425tags in tests
2019-11-11 15:37:10 +08:00
Pradyun Gedam
9b25cd512b
Rename InstallationCandidate.{project -> name} 2019-11-11 11:37:53 +05:30
Pradyun Gedam
1405a403fe
Merge branch 'master' into add-use-user-site-to-preparer 2019-11-11 08:40:20 +05:30
Chris Jerdonek
f4cad3d403 Add PackageFinder.process_project_url(), and test. 2019-11-10 21:27:13 -05:00
Chris Jerdonek
bab1e4f8a1 Change CollectedLinks to store project_urls. 2019-11-10 21:27:00 -05:00
Chris Jerdonek
024038cf10 Add LinkCollector.fetch_page(). 2019-11-10 21:19:07 -05:00
Chris Hunt
0a6305a398 Remove unused compat.native_str 2019-11-10 18:06:24 -05:00
Pradyun Gedam
deecb36de9
Reduce RequirementTracker responsibilities (#7278) 2019-11-10 15:08:52 +05:30
Christopher Hunt
2ed5d565de
Merge pull request #7326 from chrahunt/bugfix/enforce-pyproject-requires-format
Enforce requirement format in pyproject.toml build-system.requires
2019-11-10 16:56:18 +08:00
Christopher Hunt
77eb89edbb
Merge pull request #7314 from chrahunt/refactor/remove-req-from-wheel-build
Factor out legacy wheel build function
2019-11-10 16:55:35 +08:00
Pradyun Gedam
c9606b86e1
Add use_user_site to RequirementPreparer 2019-11-10 13:51:29 +05:30
Pradyun Gedam
1b07d3e797
Rewrap strings to 80 characters 2019-11-10 12:38:29 +05:30
Pradyun Gedam
f39ce3439b
Update tests to correctly enter RequirementTracker context 2019-11-10 12:38:08 +05:30
Pradyun Gedam
bb197e12bf
Move make_install_req definition to top of function
Why: Makes the diff for the next commit cleaner
2019-11-10 12:34:59 +05:30
Pradyun Gedam
c40a9d332d
Update callsites for RequirementTracker 2019-11-10 12:33:25 +05:30
Chris Hunt
f64f15b6d9 Enforce requirement format in build-system.requires 2019-11-09 20:58:27 -05:00
Chris Hunt
eb3701f749 Use shared_data to avoid copying the data directory 2019-11-09 20:47:20 -05:00
Chris Hunt
9775387e41 Move unit test to functional test for implicit hash checking 2019-11-09 16:30:44 -05:00
Chris Hunt
e4a7276ea0 Explicitly require hashes for tests that expect it
The purpose of these tests is not to check implicit hash-checking mode,
so we can be explicit.
2019-11-09 16:12:05 -05:00
Chris Hunt
7f8c25dbbb Fix call to Resolver/Preparer in tests 2019-11-09 16:11:43 -05:00
Chris Hunt
94dbbe2556 Remove patching of pep425tags internals in wheel tests 2019-11-09 13:09:18 -05:00
Chris Hunt
7f910251a4 Remove unused sys.platform patching from test_wheel 2019-11-09 13:09:06 -05:00
Chris Hunt
8963f63989 Parameterize requirement name for logging 2019-11-08 21:54:03 -05:00
Christopher Hunt
7af704e3cf
Merge pull request #7310 from chrahunt/refactor/scheme
Add Scheme model and use for wheel installation
2019-11-09 09:57:03 +08:00
Chris Hunt
e03a71aff8 Use new Scheme model for wheel installation 2019-11-07 12:43:39 -05:00
Pradyun Gedam
0cebc55e3f
Add tests for create_env_error_message function (#7255) 2019-11-07 21:08:02 +05:30
Christopher Hunt
d3129f227a
Merge pull request #7301 from chrahunt/refactor/reduce-resolver-finder-dependence
Reduce Resolver dependence on PackageFinder
2019-11-06 14:17:55 +08:00
Pradyun Gedam
7b3d3a31e6
Support PEP 405 include-system-site-packages configuration (#7155) 2019-11-06 11:47:36 +05:30
Christopher Hunt
8341f87046
Merge pull request #7287 from pradyunsg/refactor/simplify-metadata-generation-flow
Simplify metadata generation flow, to be a lot more "linear"
2019-11-06 11:51:49 +08:00
Chris Hunt
deac2343dc Don't pass PackageFinder to Preparer from Resolver
Preparer's overall responsibilities align more with having its own
reference to finder, which will help us remove it from resolver later.
2019-11-05 20:57:14 -05:00
Pradyun Gedam
8981895b5e
Skip all failing tests when using venv
Our isolation logic for venv isn't correct and that is causing these
tests to fail. The culprits for this are:

  tests/lib/venv.py::VirtualEnvironment.user_site_packages
  tests/lib/venv.py::VirtualEnvironment.sitecustomize

Both these together are supposed to create an environment to isolate the
tests. However, they were written for virtualenv and make assumptions
that are not true for environments created with venv. Until we can fix
VirtualEnvironment to properly isolate the test from the underlying test
environment when using venv, these tests will continue to fail.

This is blocking an important bugfix for users facing issues with since
pip is installing packages into `--user` when run in a venv, even when
`--user` isn't visible from that environment.

As a temporary band-aid for this problem, I'm skipping these tests to
unblock us from shipping the bugfix for the aforementioned issue.

The test isolation logic should be fixed to work for venv. Once such a
fix is made, this commit should be reverted.
2019-11-05 23:02:45 +05:30
Pradyun Gedam
1aee0eb5cb
Correctly ignore system site-packages for venv
Why: PEP 405 virtual environments have a different mechanism for
ignoring system site-packages in virtual environments.
2019-11-05 14:45:08 +05:30
Pradyun Gedam
fd7c9b7ce4
Refactor virtualenv_no_global
Why: This change makes it easier to introduce handling for PEP 405 based
virtual environment's global site-package exclusion logic
2019-11-05 14:45:08 +05:30
Christopher Hunt
7d5967906e
Merge pull request #7288 from pradyunsg/refactor/new-wheel_builder-module
Create a new wheel_builder module and move WheelBuilder+friends
2019-11-05 11:54:09 +08:00
Christopher Hunt
7f8be22584
Merge pull request #7292 from chrahunt/refactor/make-session-required
Make session required in pip._internal.req.req_file functions
2019-11-04 19:40:25 +08:00
Pradyun Gedam
54fc70d212
Stop generating metadata as part of a unit test 2019-11-04 14:30:20 +05:30
Pradyun Gedam
b1f2f747f9
🎨 a test 2019-11-04 11:51:44 +05:30
Pradyun Gedam
9435050c2d
Move tests for WheelBuilder and friends 2019-11-04 11:51:44 +05:30
Pradyun Gedam
647d30ec77
Move hash_file to utils.misc
Why: Allows for better code reuse, without introducing dependency
between wheel->wheel_builder.
2019-11-04 11:51:08 +05:30
Pradyun Gedam
da9a432576
Move WheelBuilder and friends to a dedicated module 2019-11-04 11:49:02 +05:30
Chris Hunt
df42c80ff6 Make session required in pip._internal.req.req_file functions 2019-11-03 20:49:11 -05:00
Christopher Hunt
e79fa0e8a2
Merge pull request #6851 from sbidoul/pip6640-sbi
Cache wheels built from immutable VCS requirements
2019-11-04 08:32:11 +08:00
Christopher Hunt
5b77910715
Merge pull request #7289 from chrahunt/bugfix/send-client-cert
Send client certificate when using --trusted-host
2019-11-04 08:30:28 +08:00
Chris Hunt
d9854794fa Add failing test for missing client cert when using --trusted-host 2019-11-03 17:05:58 -05:00
Chris Hunt
204a004377 Add test helpers for HTTP(S) server and certs 2019-11-03 17:05:52 -05:00
Stéphane Bidoul (ACSONE)
9cad519521
Cache wheels built from immutable Git requirements
Cache wheels that are built from Git requirements
that contain an immutable revision (i.e. a sha).
2019-11-03 22:54:33 +01:00
Stéphane Bidoul (ACSONE)
f5eba4f726
Add tests for git sha wheel caching 2019-11-03 22:54:33 +01:00