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
Sebastian Jordan
28f3dcc641 Add missing newline characters in pep517_setup_and_pyproject test data 2019-10-12 12:19:52 +02:00
Chris Hunt
913f856739 Cleanup arguments, add docstring 2019-10-11 22:24:50 -04:00
Chris Hunt
39572ddd12 Don't pass InstallRequirement to install_unpacked_wheel
We are only using this value for logging. Passing a string reduces
coupling between InstallRequirement and this function.
2019-10-11 21:58:58 -04:00
Chris Hunt
4682f3cb9b Pass scheme to install_unpacked_wheel
This reduces the number of required arguments and helps establish a
convention for install_* functions, which should take a scheme instead
of the individual components.
2019-10-11 21:49:39 -04:00
Chris Hunt
578de7d863 Rename wheel install function 2019-10-11 21:41:47 -04:00
Sebastian Jordan
e3089c5bff Merge remote-tracking branch 'origin/master' into issue-6222 2019-10-11 19:23:45 +02:00
Christopher Hunt
f3f396fd79
Merge pull request #7102 from mayeut/manylinux2014
Add manylinux2014 support
2019-10-10 18:07:51 -04:00
Pachwenko
f84d9c810b
update global install option test 2019-10-10 07:56:38 -05:00
Pradyun Gedam
af3062af41 Remove the deprecated pip config --venv option (#7163) 2019-10-09 23:28:00 +02:00
mayeut
62d84a5aae
Add manylinux2014 support
Per PEP 599:
https://www.python.org/dev/peps/pep-0599/
2019-10-09 22:09:28 +02:00
Thomas Kluyver
4a4f1ca1cf Relax failing tests due to changing site-packages mtime 2019-10-09 13:54:46 +01:00
TonyBeswick
bcbaee7aa5
Merge branch 'master' into master 2019-10-08 18:39:08 +13:00
tbeswick
c6906f1a38 - Abstracted out common get_subdirectory() code in Git and Mercurial, adding get_repo_root_dir() for the vcs specific code.
- Reverted behaviour of `Git.controls_location()` and `Mercurial.controls_location()` to call the vcs command if the base `VersionControl.controls_location()` doesn't detect the vcs directory.
- Added `log_failed_cmd` argument `VcsSupport.run_command()` to allow vcs commands to be tried without logging errors if they aren't present.
- Corrected indentation.
- Removed `expect_stderr=True` in `test_freeze_mercurial_clone_srcdir` as its not required.
2019-10-08 18:15:22 +13:00
Pradyun Gedam
37bc629551
Rename tests.lib.path.Path.{abspath -> resolve()} 2019-10-07 18:01:06 +05:30
Pradyun Gedam
732da2dae0
Remove tests.lib.path.Path.__sub__ (#7151) 2019-10-07 17:52:19 +05:30
Pradyun Gedam
3ff9061c4e
Fix a copy-paste error 2019-10-07 15:12:33 +05:30
Pradyun Gedam
7d72b3e034
Update uses of path subtraction to os.path.relpath 2019-10-07 12:38:22 +05:30
Pradyun Gedam
959969840b
Remove subtraction from tests.lib.path.Path 2019-10-07 12:25:38 +05:30
Chris Hunt
f805f328d4 Align interface of tests.lib.path.Path.mkdir with pathlib.Path.mkdir. 2019-10-06 21:55:10 -04:00
Christopher Hunt
5a997b7509
Merge pull request #7065 from chrahunt/pr-5955
Explicit support for hg+file
2019-10-06 09:39:42 -04:00
Sebastian Jordan
6a2d2dbb81 Merge branch 'master' of https://github.com/pypa/pip into issue-6222 2019-10-03 08:36:19 +02:00
Pradyun Gedam
e6f69fadd8
Fix crash when sys.stdin is None (#7118) 2019-10-02 13:47:46 +05:30
Emil Burzo
5089b84c56 rewrite tests using pytest.mark.parametrize 2019-10-02 08:51:32 +03:00
Emil Burzo
004103c0f5 fix code quality issues 2019-10-02 08:33:41 +03:00
Emil Burzo
6f7c304167 add tests 2019-10-02 08:25:56 +03:00
Pradyun Gedam
64262aacee
Use the repr of version strings in wheels. 2019-10-01 11:45:07 +05:30
Pradyun Gedam
b20fd061c4
Allow errors in YAML test outputs 2019-10-01 11:24:21 +05:30
Pradyun Gedam
617c94e57b
Show output in YAML test failures 2019-10-01 11:21:21 +05:30
Pradyun Gedam
ff041cc5b0
Merge branch 'master' into master 2019-09-30 21:33:34 +05:30
Christopher Hunt
b0ea6059fe
Merge pull request #7112 from JohnPaton/rename-outdated-check
Move _internal.utils.outdated to _internal.self_outdated_check
2019-09-30 06:25:49 -04:00
John Paton
ea4ac30674 rename test file 2019-09-30 11:35:57 +02:00
John Paton
6b57c1f5df Move outdated outside utils and rename (pypa/pip#6532) 2019-09-30 09:56:44 +02:00
Pradyun Gedam
e9d79db6c4
Move tests for utils.subprocess to dedicated file 2019-09-30 11:42:08 +05:30
Pradyun Gedam
2bb8ee6ae3
Sort imports for the greater good 2019-09-28 18:16:34 +05:30
Pradyun Gedam
3a77de3c7d
Split tests for different functionality 2019-09-28 18:16:34 +05:30
Pradyun Gedam
e670f90219
Generate temporary file in a fixture 2019-09-28 18:16:34 +05:30
Pradyun Gedam
f3c1519160
Improve name and docstring 2019-09-28 18:15:13 +05:30
Pradyun Gedam
03392873ec
Refactor metadata directory handling (#7087) 2019-09-28 17:34:43 +05:30
Pradyun Gedam
ad33ecef74
Move PipSession to network.session (#7089) 2019-09-28 11:55:15 +05:30
Albert Tugushev
e41c5f868c Address review comments
Fix typos.

Co-Authored-By: Christopher Hunt <chrahunt@gmail.com>
2019-09-28 01:07:48 +03:00
Albert Tugushev
1a3b84060d Add functional tests for 'yanked' files 2019-09-28 01:07:48 +03:00
Chris Hunt
3328e811d1 Normalize style 2019-09-27 01:03:47 -04:00
Chris Hunt
cf7ebdbbc2 Move PipSession to network.session 2019-09-27 01:02:52 -04:00
Pradyun Gedam
b01f301c75
Update get_dist to directly use metadata_directory 2019-09-27 10:32:25 +05:30
Chris Hunt
6ce7217a53 Move PipSession helper functions to network.session
This new module is a catch-all for PipSession helpers.
2019-09-27 00:55:06 -04:00
Christopher Hunt
ea923d96a9
Merge pull request #6313 from wilsonfv/master
Fix #3907 tar file placed outside of target location
2019-09-26 19:30:53 -04:00
Christopher Hunt
3b7d2eee5e
Merge pull request #7061 from chrahunt/refactor/move-code-out-of-init
Move code out of pip._internal.__init__
2019-09-26 13:36:35 -04:00
Pradyun Gedam
b926290a50
Merge pull request #7078 from pradyunsg/revamp-linting-processes
Revamp linting processes
2019-09-25 20:57:36 +05:30
Patrik Kopkan
9a2181a087 Add new option: pip wheel --save-wheel-names 2019-09-25 13:39:34 +02:00
Sebastian Jordan
58eb90ff80 Fix code layout problems in test_install.py 2019-09-25 06:39:03 +02:00
Sebastian Jordan
be6e198875 Implement functional test for installing PEP 517 packages with --no-binary :all: 2019-09-25 06:32:18 +02:00
Pradyun Gedam
b447f438df
Move path_to_url() to utils/urls.py (#7075) 2019-09-25 10:00:33 +05:30
Chris Hunt
8c94b70354 Address review comments 2019-09-24 22:43:06 -04:00
Wilson Mo
08a0eeb90c Fix #3907 tar file placed outside of target location 2019-09-24 22:25:18 -04:00
Chris Hunt
3e98ee8464 Use from ... import ... style 2019-09-24 21:36:16 -04:00
Christopher Hunt
9611394a5b
Merge pull request #7062 from chrahunt/refactor/network-modules
Move SafeFileCache to network.cache
2019-09-24 21:03:18 -04:00
Pradyun Gedam
ea68afab93
Enable isort in pre-commit 2019-09-24 18:03:22 +05:30
Pradyun Gedam
6f8c29aa77
Enable end-of-file-fixer 2019-09-24 18:03:22 +05:30
Pradyun Gedam
40a0f189b9
Enable check-builtin-literals 2019-09-24 18:03:22 +05:30
Christopher Hunt
928f86a162
Merge pull request #7048 from chrahunt/refactor/always-create-tempdirectory
Always create TempDirectory.path at __init__
2019-09-24 08:27:44 -04:00
tbeswick
657a7cb0c2 - Added missing argument to run_command: on_returncode='ignore'
- fixed lint errors.
2019-09-24 21:05:30 +12:00
Chris Jerdonek
0435316fde Move path_to_url() to utils/urls.py. 2019-09-24 02:01:52 -07:00
tbeswick
356c6d2059 fixed typo 2019-09-24 16:33:39 +12:00
Tony Beswick
73a6342d55 Added unit test for Mercurial to check for correct behaviour when either the source or setup.py is located in a subdirectory of the repo root. 2019-09-24 12:28:40 +12:00
Chris Hunt
e6bde63620 Assert TempDirectory.path has not been cleaned up on access 2019-09-23 20:09:04 -04:00
Chris Hunt
7ea1fcdb13 Remove outer class for temp_dir tests 2019-09-23 18:49:12 -04:00
Chris Hunt
236fb82a1f Move temp_dir tests to separate file 2019-09-23 18:47:28 -04:00
Chris Jerdonek
99ec6a5e31
Merge pull request #7057 from cjerdonek/remove-iter-links
Remove HTMLPage.iter_links()
2019-09-23 05:55:54 -07:00
Chris Jerdonek
6c9e0c2536 Remove HTMLPage.iter_links(). 2019-09-23 05:12:33 -07:00
Chris Jerdonek
4ad5a58376 Change HTMLPage.__init__ to accept an encoding. 2019-09-23 05:12:29 -07:00
Chris Jerdonek
d30bc69073 Move make_fake_html_page() elsewhere in the module. 2019-09-23 05:08:27 -07:00
Chris Hunt
05964ead48 Address previous review comments 2019-09-22 11:10:25 -04:00
Chris Hunt
658425a555 Add explicit test for hg+file
This was previously failing on the master branch.
2019-09-22 11:06:07 -04:00
Adam Tse
4022ac277f :fixed whitespace 2019-09-22 11:04:23 -04:00
Adam Tse
3f98ee4250 Explicit support and tests for hg+file scheme for pip install. 2019-09-22 11:04:23 -04:00
Chris Hunt
85dcaa74bb Unconditionally create TempDirectory.path 2019-09-22 00:02:46 -04:00
Chris Jerdonek
dd62731107
Merge pull request #7060 from cjerdonek/get-page-links
Improve logging in LinkCollector.collect_links()
2019-09-21 16:36:46 -07:00
Chris Jerdonek
7c00316268 Use a single log message. 2019-09-21 15:49:43 -07:00
Chris Hunt
99c29af3ce Move SafeFileCache to network.cache. 2019-09-21 16:24:31 -04:00
Chris Hunt
b0eed267a6 Remove autocomplete import from pip._internal.__init__ 2019-09-21 15:27:47 -04:00
Chris Hunt
09fd200c59 Move pip._internal:main to its own module
Moving content out of `__init__` is preferred in general because it
avoids conflicts with module names and unnecessary imports.
2019-09-21 15:27:39 -04:00
Chris Jerdonek
a2b2a24513 Remove duplicate links before logging. 2019-09-21 10:52:56 -07:00
Chris Jerdonek
7b7d162870 Add _remove_duplicate_links(), and test. 2019-09-21 10:52:52 -07:00
Chris Jerdonek
a556278bf2
Merge pull request #7058 from cjerdonek/simplify-local-repos
Simplify local_repos.py
2019-09-21 10:44:05 -07:00
Pradyun Gedam
aea7d86a22
Merge pull request #7059 from pradyunsg/cleanup/get-rid-of-is-artifact
Remove link.is_artifact
2019-09-21 22:46:28 +05:30
Chris Jerdonek
f5e5f403b6 Test logging in test_collect_links(). 2019-09-21 10:10:53 -07:00
Chris Jerdonek
188ec6ff4e Don't pass "/trunk" when calling local_checkout() with svn. 2019-09-21 03:29:34 -07:00
Chris Jerdonek
d7709fa106 Assert that initools_dir doesn't already exist. 2019-09-21 02:31:32 -07:00
Chris Jerdonek
1ca61e14ba Assert that repo_url_path doesn't exist. 2019-09-21 02:31:25 -07:00
Chris Jerdonek
144051e422 Simplify local_repos.py. 2019-09-21 02:30:30 -07:00
Pradyun Gedam
ab6d550592
Remove link.is_artifact 2019-09-21 14:30:14 +05:30
Pradyun Gedam
0a2238ac38
Create new module: network.auth (#7045) 2019-09-20 22:43:34 +05:30
Chris Hunt
7e1d02226b Rename networking to network 2019-09-19 23:13:47 -04:00
Chris Hunt
f8d03e4baa Move MultiDomainBasicAuth to networking.auth 2019-09-19 21:02:22 -04:00
Chris Hunt
e9274f6548 Move keyring-related functions to new networking.auth module 2019-09-19 20:48:09 -04:00
Chris Hunt
2aeed371e5 Make content_type optional in unpack_file. 2019-09-19 20:02:47 -04:00
Christopher Hunt
79ec3def25
Merge pull request #7037 from chrahunt/refactor/clean-up-unpack
Remove svn handling in unpacking.unpack_file
2019-09-19 08:35:12 -04:00
Chris Hunt
89bbe73498 Remove unused argument in unpacking.unpack_file 2019-09-19 01:47:24 -04:00
Christopher Hunt
b0a6428d3b
Merge pull request #7023 from chrahunt/maint/remove-lockfile-dependency
Remove Lockfile
2019-09-19 00:23:57 -04:00
Chris Jerdonek
6d94944efd Change PackageFinder.create() to accept a LinkCollector. 2019-09-18 00:59:04 -07:00
Chris Jerdonek
6a55f0788b Move make_search_scope() to outdated.py. 2019-09-18 00:48:48 -07:00
Chris Hunt
6a5bd723ec Move unpack_* from utils.misc to utils.unpacking. 2019-09-17 23:40:02 -04:00
Chris Hunt
0689cf5db7 Remove function-level imports in test. 2019-09-17 23:37:38 -04:00
Christopher Hunt
47293435bb
Merge pull request #6976 from atugushev/fix-issue-4910
Fix rmtree_errorhandler to skip nonexistent dirs
2019-09-17 22:40:46 -04:00
Christopher Hunt
b1bc41b2c3
Merge pull request #6914 from sbidoul/pip6892-sbi
uninstall: remove symlinks created by flit install --symlink
2019-09-17 21:14:28 -04:00
Pradyun Gedam
c3e6329039
Rename InstallRequirement.{build_location -> ensure_build_location} (#7021)
Merge pull request #7021 from pradyunsg/refactor/rename-build-location
2019-09-17 18:30:08 +05:30
Chris Hunt
ddfe2be362 Fix unrelated test. 2019-09-16 12:51:30 -04:00
Christopher Hunt
82c2dd40eb
Merge pull request #6203 from vinicyusmacedo/fix-pep-508
Fix is_url from splitting the scheme incorrectly when using PEP 440's direct references
2019-09-16 09:52:40 -04:00
Albert Tugushev
e3a6ba6396 Use normal fixture instead of yield_fixture
It's been deprecated since pytest>=2.10.
See https://docs.pytest.org/en/latest/historical-notes.html#pytest-yield-fixture-decorator
2019-09-16 02:55:47 +03:00
Chris Hunt
48be7eb5e3 Implement cache methods using plain filesystem functions. 2019-09-15 17:01:32 -04:00
Chris Hunt
80f092d22a Copy function to get cache path. 2019-09-15 16:47:00 -04:00
Pradyun Gedam
ad68984ec6
Rename {build_location -> ensure_build_location} 2019-09-15 22:09:34 +05:30
Pradyun Gedam
ab250e3e09
Merge pull request #6879 from chrahunt/bugfix/dont-lock-selfcheck
Don't use lockfile to protect updates to selfcheck file.
2019-09-15 19:02:46 +05:30
Chris Jerdonek
fe2509bd58 Move LinkCollector to a new collector.py module. 2019-09-14 02:54:07 -07:00
Chris Jerdonek
180a795660
Merge pull request #7015 from cjerdonek/simplify-get-pages
Remove unused project_name argument from LinkCollector._get_pages()
2019-09-14 01:33:45 -07:00
Chris Jerdonek
c9a90fd160
Merge pull request #7011 from cjerdonek/url-utils
Remove index.py and req/constructors.py's dependence on download.py
2019-09-14 00:32:43 -07:00
Chris Jerdonek
1a42641762 Remove unused project_name argument from LinkCollector._get_pages(). 2019-09-13 23:47:58 -07:00
Chris Jerdonek
9a765b8cab Change local_checkout() to accept tmpdir. 2019-09-13 21:41:32 -07:00
Chris Jerdonek
3303c11828 Remove index.py and req/constructors.py's dependence on download.py. 2019-09-13 09:57:04 -07:00
Chris Jerdonek
084d797947
Merge pull request #6910 from cjerdonek/link-collector
Split out a LinkCollector class from PackageFinder
2019-09-13 08:50:05 -07:00
Chris Jerdonek
12a27d0c9f Add a couple tests. 2019-09-12 02:31:42 -07:00
Chris Jerdonek
ed55cde689 Add LinkCollector class to index.py. 2019-09-10 10:13:02 -07:00
Pradyun Gedam
ceaf514189
Drop support for EOL Python 3.4 (2) (#6782)
Merge pull request #6782 from hugovk/rm-3.4
2019-09-10 09:28:11 +05:30
Hugo
2b94acb9d8 Rename for clarity 2019-09-09 20:43:09 +03:00
Pradyun Gedam
e0239735a3
Refactor wheel.move_wheel_files to use updated distlib (#6763) 2019-09-09 00:18:15 +05:30
Hugo
0f7921e120 Add a @non_python2_only skipif 2019-09-08 20:03:13 +03:00
Chris Hunt
b4bc7a62f4 Remove lockfile-dependent test. 2019-09-08 09:29:48 -04:00
Hugo
6d20cbca23 Remove noqa workaround 2019-09-08 15:19:03 +03:00
Chris Hunt
f92961d99e More descriptive function name. 2019-09-07 10:50:14 -04:00
Chris Hunt
82be4ee76a Use application context manager for PipSession.
This removes a level of indentation from all commands without
introducing any dummy functions.
2019-09-07 09:46:48 -04:00
AinsworthK
e5f05ce18c Directly import objects to be tested, from utils.outdated (#6966) 2019-09-07 16:02:26 +05:30
Pradyun Gedam
a39e881479
Fix pip.exe upgrade pip fails on Windows
Merge pull request #6928 from atugushev/fix-issue-6924
2019-09-07 14:14:29 +05:30
Pradyun Gedam
9300fe640a
Reduce context/options passed to Resolver (#6986) 2019-09-07 13:15:40 +05:30
Pradyun Gedam
a0a55bc797
Fix tests when running in git linked worktree
Merge pull request #6846 from chrahunt/bugfix/fix-tests-in-linked-worktree
2019-09-07 13:04:55 +05:30
Pradyun Gedam
8b2e1c866c
Merge pull request #6855 from chrahunt/refactor/separate-statefile-states
Write separate statefiles per prefix.
2019-09-07 09:35:23 +05:30
Chris Hunt
7514a50e1d Remove unused arguments from Resolver constructor. 2019-09-06 18:53:35 -04:00
Chris Hunt
0ee1f9762b Move make_install_req out of Resolver. 2019-09-06 18:45:27 -04:00
Xavier Fernandez
d942a4ee65 tests: fix typos 2019-09-06 13:13:24 +02:00
Albert Tugushev
a8427d5553 Run parametrized command in test_pep518_forkbombs
Fixes copy-paste issue in `test_pep518_forkbombs`.
2019-09-06 09:55:49 +02:00
Albert Tugushev
cdcacff8a1 Address review comments
Fix some comments and variable names.
Execute rmtree_errorhandler in an except block to test whether
it reraises an exception.
2019-09-06 10:55:40 +03:00
Stéphane Bidoul (ACSONE)
04bc6d090d
Remove non standard function from Path class 2019-09-06 09:42:06 +02:00
Albert Tugushev
b5c1c76203 Fix failing test and revisit is_readonly flag 2019-09-05 17:49:58 +03:00
Chris Hunt
b63ea9cd08 Remove now-unused finder and format_control from WheelBuilder. 2019-09-04 21:10:34 -04:00
Chris Hunt
a4102d179a Don't check allowed format in wheel.py, pass function to do check. 2019-09-04 21:06:52 -04:00
Albert Tugushev
85a5ae12d2 Fix rmtree_errorhandler to skip non-existing dirs 2019-09-05 00:25:35 +03:00
Paul Moore
bc78bcd674
Merge pull request #6957 from ofrinevo/bugfix/show_requierd_by_not_canonized
Fix pip show displaying the incorrect result for "Required-by"
2019-09-04 08:44:34 +01:00
ofrinevo
1c4881157e Remove useless python packages from required_cap
Rename stub package required_by_mixed_cap to requires_requires_cap
Move the canonicalize_name calculation outside of a loop
2019-09-03 20:46:28 +03:00
ofrinevo
bc65d55d8b Fix all failing tests 2019-09-02 19:41:51 +03:00
abs51295
ea2a889ce3 Canonicalize FrozenRequirement name for correct comparison
- Fixes #5716
2019-09-02 13:45:47 +05:30
Chris Hunt
b0a7d2b503 Refactor wheel.move_wheel_files to use updated distlib. 2019-09-01 22:36:13 -04:00