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

1047 commits

Author SHA1 Message Date
Pradyun Gedam c40a9d332d
Update callsites for RequirementTracker 2019-11-10 12:33:25 +05:30
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
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
Stéphane Bidoul (ACSONE) f5eba4f726
Add tests for git sha wheel caching 2019-11-03 22:54:33 +01:00
Chris Hunt 3076c39f25 Remove unused Resolver.session 2019-11-03 14:31:38 -05:00
Chris Hunt 44cc3aeb0a Use session from RequirePreparer, not Resolver 2019-11-03 14:26:47 -05:00
Christopher Hunt 2a2794e09b
Merge pull request #7268 from sbidoul/remove-should_use_ephem_cache-sbi
remove should_use_ephemeral_cache
2019-11-01 16:29:03 +08:00
Christopher Hunt a0fd8c2154
Merge pull request #7261 from chrahunt/refactor/simplify-req-file-parsing-3
Simplify requirement file parsing
2019-10-31 09:20:40 +08:00
jenix21 d8567d3b66 address review comment 2019-10-30 00:33:15 +09:00
Stéphane Bidoul (ACSONE) cdf09bfc4a
remove should_use_ephemeral_cache 2019-10-29 09:15:44 +01:00
Stéphane Bidoul (ACSONE) aaa4237adf
refactor should_use_ephemeral_cache 2019-10-28 22:56:04 +01:00
Chris Hunt 85918afc5e Remove req_file.process_line and update tests
The behavior that was in process_line was moved to
RequirementsFileParser so it's no longer needed, we just had to
move the remaining tests to use the higher-level parse_requirements
interface.
2019-10-26 13:53:01 -04:00
Chris Hunt 68454d29a5 Make req file parsing unit tests higher-level
Decoupling the tests from the implementation makes it possible
to refactor the interface exposed by process_line.
2019-10-26 13:52:36 -04:00
Christopher Hunt be01170ba5
Merge pull request #7245 from chrahunt/refactor/simplify-req-file-parsing-2
Simplify requirement file parsing
2019-10-25 19:51:04 +08:00
jenix21 4c6052d2d6 Add tests for create_env_error_message function 2019-10-23 01:00:08 +09:00
Pradyun Gedam c729a84b48
Merge pull request #7002 from takluyver/install-user-fallback
Default to --user install in certain conditions
2019-10-22 08:44:06 +05:30
Thomas Kluyver c4d92bbb4e Use pytest parametrize for decide_user_install tests 2019-10-21 08:52:44 +01:00
Thomas Kluyver fbc0588c01 Add unit tests of decide_user_install() 2019-10-20 21:48:18 +01:00
Chris Hunt a5d53eab0a Simplify skip_requirements_regex option handling
Decouples `process_lines` from our CLI options.
2019-10-20 13:33:15 -04:00
Pradyun Gedam 8dbf8461fc
Clean up wheel.move_wheel_files (#7176) 2019-10-20 13:26:48 +05:30
Pradyun Gedam 9ab9040d75
Remove RequirementSet.require_hashes (#7068) 2019-10-20 13:23:40 +05:30
Pradyun Gedam 611fc6069b
Update references to collector.py 2019-10-19 22:24:53 +05:30
Pradyun Gedam 2db6f428bf
Update imports to {index -> index.package_finder} 2019-10-19 22:24:01 +05:30
Pradyun Gedam 66e9b44f15
Import req_file more directly 2019-10-19 22:22:11 +05:30
Pradyun Gedam c18e912b2a
Import InstallationCandidate more directly 2019-10-19 22:22:11 +05:30
Pradyun Gedam bcad1b1cb5
Add new option: pip wheel --save-wheel-names (#6377) 2019-10-19 11:03:15 +05:30
Chris Hunt 5c5c6eca83 Rename test file to align with moved functions 2019-10-16 21:29:06 -04:00
Chris Hunt 6eb83c6d3a Move remaining functions in download to operations.prepare
The only user of this module is operations.prepare.RequirementPreparer.
Moving the functionality to the single using module means that
refactoring will be easier (since all the mess is in one place). This
also removes a mis-named module from the top-level of the repository.
2019-10-16 21:29:06 -04:00
Harsh Vardhan 0e6ac42c93 Add need_svn decorator for tests which require svn
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
2019-10-15 17:22:16 +05:30
Chris Hunt b8fb97a815 Remove unused RequirementSet.require_hashes 2019-10-13 13:19:49 -04:00
Chris Hunt bbc29f0c6c Pass require_hashes directly to Resolver
This removes some of the dependence of the Resolver on our specific
RequirementSet implementation.
2019-10-13 13:19:49 -04:00