Pradyun Gedam
053346f3b0
Merge pull request #7187 from chrahunt/refactor/move-get-file-content
...
Remove pip._internal.download
2019-10-18 06:47:07 +05:30
Christopher Hunt
24c9daaaa9
Merge pull request #6857 from abs51295/fix-pip-freeze
...
Canonicalize FrozenRequirement name for correct comparison
2019-10-17 20:08:23 -04:00
Pradyun Gedam
2e9f89ef8f
Fix PEP 517 builds for packages without setup.py ( #6606 )
2019-10-17 22:18:03 +05:30
Christopher Hunt
7c755a571d
Merge pull request #7216 from NeilBotelho/debug-ca-info
...
Display CA information in pip debug
2019-10-17 04:29:41 -04:00
Neil Botelho
144611ca1e
Show cert config value first
...
Move the cert config show_value statement to before the
REQUESTS_CA_BUNDLE statement. Removed lines used for testing.
2019-10-17 12:31:49 +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
Pradyun Gedam
33d7d65da1
Update test to verify that full URL is not printed
2019-10-16 12:26:10 +05:30
Christopher Hunt
bc7948e200
Merge pull request #7193 from vharsh/skip_svn_test
...
Skip running svn tests when svn isn't installed
2019-10-15 19:14:29 -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
Neil Botelho
e2a6fea7fa
Add CA cert info to debug, and corresponding tests
...
Added CA cert information to debug.py
Made the corresponding changes to tests/functional/test_debug.py
2019-10-15 14:54:34 +05:30
Xavier Fernandez
8df9329396
Add release target
2019-10-14 14:23:00 +02:00
Harsh Vardhan
4f1b88375a
Skip running svn tests when svn isn't installed
...
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
2019-10-14 14:32:32 +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
Pradyun Gedam
1c3f31ce14
Merge pull request #7072 from TonyBeswick/master
...
Fix pip freeze not showing correct entry for mercurial packages that use subdirectories.
2019-10-12 18:23:20 +05:30
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
ofrinevo
35c2161785
Improve the documentation of the added tests
2019-09-01 21:32:00 +03:00
ofrinevo
a05de613fc
Add a test that checks for mixed upper and lower case letters
...
in pip show
Remove useless import in stubs for named tests
2019-09-01 21:28:31 +03:00
Pradyun Gedam
d764181da3
Merge pull request #6933 from pradyunsg/misc/warning-cleanup
...
Move docstring to appropriately placed comment
2019-09-01 21:55:03 +05:30
ofrinevo
b951dd954e
Remove a print command left by mistake in the test
2019-08-31 22:38:04 +03:00
ofrinevo
ce17cf9c32
Fix test_show_required_by_packages_capitalized documentation being too long
2019-08-31 22:09:41 +03:00
ofrinevo
c674fabe95
Fix package name not being canonicalize in commands/show
...
Add test to check if a capitalized name is being shown properly
Add new stub package to support the test
2019-08-31 21:44:41 +03:00
Albert Tugushev
a9d23fadbb
Use pytest.param to skip certain parametrizations ( #6944 )
2019-08-31 17:13:44 +02:00
Pradyun Gedam
987b45af9e
Move docstring to appropriately placed comment
2019-08-27 13:35:55 +05:30
Albert Tugushev
3c9770d9b2
Redact single-part login credentials from URLs ( #6921 )
2019-08-26 15:50:07 -07:00
Albert Tugushev
d8b6296227
Fix pip.exe upgrade pip fails on Windows
...
It fails if it already satisfies the requirement, when
pip has been modifying via `pip.exe install ...` command.
2019-08-26 16:05:48 +03:00
Frost Ming
8ac22141c2
Support including port part in trusted-host ( #6909 )
2019-08-25 16:26:01 -07:00
Pradyun Gedam
d2b7082932
Fix bypassed pip upgrade warning on Windows
...
Merge pull request #6864 from atugushev/fix-issue-6841
2019-08-25 19:08:28 +05:30
Stéphane Bidoul (ACSONE)
75a12ff423
Add failing test for StashedUninstallPathSet symlink
2019-08-24 23:39:05 +02:00
Stéphane Bidoul (ACSONE)
885fdc3754
Correctly uninstall symlinks
2019-08-24 23:04:47 +02:00
Stéphane Bidoul (ACSONE)
f8d58256b7
Add failing test for symlink uninstall
2019-08-24 00:36:40 +02:00
Chris Jerdonek
aa14d3aecf
Add a make_no_network_finder() test helper.
2019-08-23 07:55:01 -07:00
Chris Jerdonek
d20e02e728
Change PackageFinder._sort_locations() to a group_locations() function.
2019-08-23 07:53:52 -07:00
Chris Jerdonek
1ab37d31f1
Merge pull request #6903 from cjerdonek/move-trusted-hosts
...
Move PackageFinder's --trusted-host logic to PipSession
2019-08-22 03:56:13 -07:00
Chris Jerdonek
ce218c340d
Rename the insecure_hosts argument to trusted_hosts.
2019-08-22 00:03:28 -07:00
Chris Jerdonek
cbd62171cd
Remove the unneeded logger argument from is_secure_origin().
2019-08-22 00:01:27 -07:00
Chris Jerdonek
9ef811638b
Merge pull request #6787 from cjerdonek/best-candidate-result
...
Simplify PackageFinder best candidate API some more
2019-08-21 13:13:44 -07:00
Chris Jerdonek
7783c47131
Hide security-sensitive strings in VCS command log messages ( #6890 )
2019-08-21 03:22:57 -07:00
Chris Jerdonek
a6cdb490b0
Move trusted_hosts logic to PipSession.
2019-08-21 03:03:17 -07:00
Christopher Hunt
5e97de4773
Ignore errors copying socket files for source installs (in Python 3). ( #6844 )
2019-08-21 02:19:02 -07:00
Chris Jerdonek
06d786dee1
Add a test for compute_best_candidate() returning a None best candidate.
2019-08-20 22:49:30 -07:00
Chris Jerdonek
6554273fe5
Pass the best candidate to BestCandidateResult instead of CandidateEvaluator.
2019-08-20 22:49:30 -07:00
Chris Jerdonek
e8eda16ed8
Rename some PackageFinder "best candidate" classes and methods:
...
* Rename FoundCandidates to BestCandidateResult.
* Rename CandidateEvaluator's make_found_candidates() to
compute_best_candidate().
* Rename CandidateEvaluator's get_best_candidate() to
sort_best_candidate().
* Rename PackageFinder's find_candidates() to find_best_candidate().
2019-08-20 22:49:30 -07:00
Pradyun Gedam
58a66066cc
Merge pull request #6882 from pradyunsg/update-test-to-py36
...
Update marker test to use Python 3.6 instead of 2.6
2019-08-21 06:53:47 +05:30
Pradyun Gedam
1e8a47c2f3
Update variable names
2019-08-21 01:53:33 +05:30
Chris Jerdonek
97d9c6d156
Merge pull request #6880 from GadgetSteve/master
...
#6858 : Changes to report any missing packages in pip show
2019-08-18 12:24:38 -07:00
Steve Barnes
3198ba6185
Change pip show to report missing packages.
2019-08-18 01:27:14 -07:00
Pradyun Gedam
9332803089
Merge pull request #6729 from asottile/3_10_fixes
...
sys.version fixes for python 3.10
2019-08-18 09:27:09 +09:00
Paul Moore
54eedbd7b4
Merge pull request #6874 from rdb/patch-1
...
Don't append "m" ABI flag in Python 3.8
2019-08-17 09:47:46 +01:00
rdb
48109b1bb5
Don't append 'm' ABI flag in Python 3.8
2019-08-16 08:53:20 +02:00
Stéphane Bidoul (ACSONE)
2e1dfbef76
consolidate vcs link detection
2019-08-16 08:14:33 +02:00
Albert Tugushev
f9fc667325
Addrees review comments
...
Fix typos
Use script.pip instead of script.run
2019-08-16 06:02:17 +03:00
Pradyun Gedam
376f1136d8
Update marker test to use Python 3.6 instead of 2.6
2019-08-15 23:02:40 +09:00
Chris Jerdonek
bbae384d5b
Make some final tweaks to the PR.
2019-08-14 22:13:26 -07:00
Frost Ming
3f9136f885
Make trusted host w/o port work for HTTPS
2019-08-14 22:13:18 -07:00
Chris Hunt
5f4da50adf
Shorten selfcheck filenames and move to cache subdirectory.
2019-08-15 00:22:51 -04:00
Stéphane Bidoul (ACSONE)
ea517a2bb9
clarify WheelBuilder.build() a bit
2019-08-14 11:24:26 +02:00
Albert Tugushev
173761c030
Address review comments
...
Rebased to the latest master
Remove unneeded assertions
Use create_basic_wheel_for_package
Couple other nitpicks
2019-08-14 11:39:16 +03:00
Albert Tugushev
94979001e0
Address review comments
...
Fix typos and remove unneeded assertions.
2019-08-14 10:11:16 +03:00
Albert Tugushev
a1fa84e57e
Address review comments
...
Handle the case of invoking pip via pip3 and pip3.7
2019-08-14 10:11:16 +03:00
Albert Tugushev
9a317d3b20
Fix bypassed pip upgrade warning on Windows
2019-08-14 10:11:16 +03:00
Chris Hunt
d81a95a095
Simplify selfcheck state file structure.
...
Since we are in a prefix-specific state file, we no longer need to
have a top-level map keyed by prefix and can have a simple flat
structure.
2019-08-13 21:50:03 -04:00
Chris Hunt
9928409b2f
Do not read selfcheck state file when saving.
2019-08-13 21:50:03 -04:00
Chris Hunt
c6c2ee433b
Add test for specific state file names.
2019-08-13 21:49:57 -04:00
Chris Hunt
f6468178c2
Make selfcheck state file path prefix-specific.
2019-08-13 21:49:02 -04:00
Chris Hunt
0220fbc6d6
Add tests for reading/writing selfcheck state file.
2019-08-13 21:44:26 -04:00
Chris Hunt
8d732c709f
Make selfcheck state key explicit.
2019-08-13 20:29:36 -04:00
Chris Jerdonek
76a89542a8
Merge pull request #6856 from chrahunt/maint/remove-unneeded-expect-error-stderr
...
Remove unnecessary expect_error
2019-08-12 15:08:56 -07:00
Chris Hunt
73e33ae803
Assert that expect_error script invocations return non-zero.
2019-08-12 16:27:25 -04:00
Vinicyus Macedo
16af35c613
Adding improvements to the _get_path_to_url function
2019-08-12 14:32:03 -03:00
Vinicyus Macedo
5b93c09199
Added test to fail pep508
2019-08-12 14:32:03 -03:00
Chris Jerdonek
022a36662f
Remove WheelBuilder's dependence on PipSession.
2019-08-11 11:33:23 -07:00
Chris Hunt
0a6b3cedae
Remove unnecessary expect_error.
2019-08-10 22:39:57 -04:00
Pradyun Gedam
d32365c552
Remove an unneeded argument from populate_requirement_set() ( #6847 )
2019-08-10 18:39:21 +05:30
Chris Jerdonek
8720d322cb
Merge pull request #6848 from cjerdonek/wheel-support-index-min-int-return-type
...
Change the return type of Wheel.support_index_min() from Optional[int] to int
2019-08-09 01:26:35 -07:00
Chris Jerdonek
bb9cb5e19d
Change the return type of Wheel.support_index_min() to int.
2019-08-08 22:58:17 -07:00
Chris Jerdonek
23446f6d0e
Remove the unneeded name argument from populate_requirement_set().
2019-08-08 17:29:02 -07:00
Chris Jerdonek
9b1ece3c96
Add some handle_pip_version_check() tests.
2019-08-07 23:14:46 -07:00
Chris Hunt
2571398f4d
Fix tests when running in git linked worktree.
2019-08-07 22:59:10 -04:00
Chris Jerdonek
505456fed7
Test the command class inheritance for each command.
2019-08-07 15:17:21 -07:00
Paul Moore
d44938c56f
Merge pull request #6517 from blurstudio/uninstall-support-unc
...
Add unit tests for easy-install.pth uninstall
2019-08-07 08:46:22 +01:00
Chris Hunt
df36ddfb0d
Merge branch 'master' into maint/merge-5924
2019-08-06 23:42:04 -04:00
Pradyun Gedam
ade7d8efea
Merge pull request #6838 from atugushev/fix-issue-1373
...
Unskip pip install from wheel with headers
2019-08-06 09:47:51 +05:30
Paul Moore
e4c32b9917
Merge pull request #6770 from omry/master
...
exclude '.tox', '.nox' from being copied during 'pip install .'
2019-08-05 23:29:02 +01:00
Albert Tugushev
aaf86008d0
Unskip pip install from wheel with headers
...
Closes #1373 .
2019-08-06 01:28:28 +03:00
Pradyun Gedam
068cbeda3c
Refactor download.get_file_content
...
Merge pull request #6756 from chrahunt/maint/cleanup-download
2019-08-04 20:06:01 +05:30
Pradyun Gedam
7d29841ced
Fix handling of tokens (single part credentials) in URLs ( #6818 )
2019-08-04 19:56:41 +05:30
Chris Jerdonek
56324a3f38
Fix "~" expansion in --find-links paths.
2019-08-03 11:55:38 -07:00
Omry Yadan
6dd5727773
responded to comments
2019-08-03 11:14:36 -07:00
Chris Hunt
82ef9d67e2
Refactor download.get_file_content.
2019-08-03 10:51:16 -04:00
Omry Yadan
8e87980d17
responding to comments
2019-08-02 23:14:41 -07:00
Omry Yadan
e67f066169
fixed on python 2.7
2019-08-02 18:40:09 -07:00
Omry Yadan
77c1504137
unit test
2019-08-02 18:17:53 -07:00
Pradyun Gedam
5796d9e949
Populate InstallRequirement.link before preparing it ( #6803 )
2019-08-01 18:29:49 +05:30
Mike Hendricks
4e339f537d
Merge branch 'master' into uninstall-support-unc
2019-07-30 11:36:15 -07:00
Pradyun Gedam
145a753cd3
Update tests for eagerly populated links
2019-07-29 20:31:52 +05:30
Pradyun Gedam
4b8f185fa8
Mark a network dependent test as network
2019-07-29 14:29:39 +05:30
Pradyun Gedam
fc976bb32b
Utilize "pip_install_local" where possible
2019-07-29 14:27:28 +05:30
Prabakaran Kumaresshan
f76014efac
Add global options and no user config args to make_setuptools_shim_args ( #6706 )
2019-07-28 11:28:35 -07:00
Chris Jerdonek
6f638eb591
Add get_major_minor_version().
2019-07-27 20:01:52 -07:00
Anthony Sottile
c3fb5cbff0
sys.version fixes for python 3.10
2019-07-27 19:59:18 -07:00
Chris Jerdonek
4cd825873b
Remove get_summaries().
2019-07-27 12:29:07 -07:00
Chris Jerdonek
1f09e67f34
Only import a Command class when it is actually needed.
...
This resulted in an approximate 24% speed-up of a vanilla `pip`
invocation on one system (0.477 secs before, 0.363 secs after).
2019-07-26 23:30:26 -04:00
Pradyun Gedam
2e51624bbb
Merge pull request #6764 from pradyunsg/style/isort
...
Change isort multi_line_output to 3
2019-07-26 23:52:24 +05:30
Hugo
b4ac45cdd3
Ignore because flake8 can't detect the use inside skipif()
2019-07-25 18:48:07 +03:00
Hugo
4a7b345cc5
Consistently get version string, ignoring alpha/beta
2019-07-25 14:39:13 +02:00
Hugo
e7babff80f
Simplify using PY2 and PY3 constants
2019-07-25 11:14:54 +03:00
Hugo
8f32b8f425
Drop support for EOL Python 3.4
2019-07-23 22:49:21 +03:00
Chris Jerdonek
0a1571ba03
Fix a NoneType AttributeError when evaluating hashes.
2019-07-23 05:22:59 -04:00
Pradyun Gedam
537b0fca12
Change isort multi_line_output to 3
2019-07-22 10:15:27 +05:30
Brandt Bucher
8582f7e40f
Reduce dependency on ctypes when discovering glibc version. ( #6678 )
2019-07-21 18:18:37 +05:30
Chris Hunt
9281a7aac1
Remove copytree from tests.lib.path.Path.
2019-07-20 19:46:47 -04:00
Christopher Hunt
0d286012f7
Remove copy from tests.lib.path.Path. ( #6746 )
2019-07-21 01:12:07 +02:00
Chris Hunt
3732e791a5
Remove normpath from tests.lib.path.Path.
2019-07-20 22:54:46 +02:00
Chris Hunt
358e690c54
Remove move from tests.lib.path.Path.
2019-07-20 22:48:24 +02:00
Chris Hunt
9d37e3ced2
Remove rmtree from tests.lib.path.Path.
2019-07-20 22:37:31 +02:00
Xavier Fernandez
645809944c
Move config files locations inside a function ( #6736 )
2019-07-20 22:29:24 +02:00
Pradyun Gedam
f669719c96
Rename InstallationCandidate.{location -> link}
2019-07-20 12:41:22 +05:30
Chris Jerdonek
00665d11bb
Add some encoding return values to pip-debug.
2019-07-19 21:52:54 -04:00
Xavier Fernandez
7b58720381
Add utils.virtualenv tests ( #6738 )
...
* Add utils.virtualenv tests
* deal with missing attr
2019-07-19 21:36:11 +02:00
Xavier Fernandez
34092d3234
Move pip marker related constant & function in their own module
...
It didn't seem related with the rest of the locations module
2019-07-18 22:53:05 +02:00
Xavier Fernandez
ab10b8c328
debug: add warnings about its provisional status
2019-07-18 14:39:12 +02:00
Chris Jerdonek
2de38044bb
Pass the specifier to CandidateEvaluator.create().
2019-07-16 01:09:14 -07:00
Chris Jerdonek
90fa087c63
Merge pull request #6714 from cjerdonek/filter-unallowed-hashes-logging
...
Add debug logging to filter_unallowed_hashes()
2019-07-15 16:30:07 -07:00
Chris Jerdonek
957756ac36
Remove strict_optional=False for models/target_python.py.
2019-07-14 23:07:45 -07:00
Chris Jerdonek
3cf192ff1b
Add debug logging to filter_unallowed_hashes().
2019-07-14 10:56:07 -07:00
Chris Jerdonek
0d96a49cf7
Add project_name to CandidateEvaluator.
2019-07-14 10:56:00 -07:00
Chris Jerdonek
2c36f4d8eb
Merge pull request #6699 from cjerdonek/issue-5874-hash-checking
...
Address #5874 : Prefer candidates with allowed hashes
2019-07-14 09:10:43 -07:00
Chris Jerdonek
74504fff6c
Prefer candidates with allowed hashes when sorting.
2019-07-14 02:50:51 -07:00
Chris Jerdonek
9ddc89a21d
Pass the hashes when creating the CandidateEvaluator.
2019-07-14 02:50:51 -07:00
Chris Jerdonek
e80fc233ff
Add filter_unallowed_hashes().
2019-07-14 02:50:48 -07:00
Pradyun Gedam
34621bf008
Merge pull request #6701 from pradyunsg/tests/remove-makedirs
...
Change Path.makedirs() -> Path.mkdir(parents=True)
2019-07-13 16:53:41 +05:30
Pradyun Gedam
16ef685f5a
Remove an unused argument in Path.touch() ( #6700 )
2019-07-13 11:52:22 +05:30
Xavier Fernandez
3e8ccc99e5
Tweak utime call
...
Apparently, times is not a keyword argument either in Python 2.7 ;)
2019-07-12 23:11:24 +02:00
Prabakaran Kumaresshan
91b6b4ed54
Refactor SETUPTOOLS_SHIM with function make_setuptools_shim_args ( #6691 )
2019-07-12 01:29:41 -07:00
Pradyun Gedam
8e57084a94
Python 2 support is not painful. :)
...
/s because obviously I'm being sarcastic.
2019-07-12 13:38:04 +05:30
Pradyun Gedam
bc88399d07
Change Path.makedirs() -> Path.mkdir(parents=True)
2019-07-12 13:30:18 +05:30
Pradyun Gedam
2ce98c1807
Remove an unused argument
2019-07-12 13:19:17 +05:30
Savio Jomton
1b331851f1
Improve error message for invalid editable requirement. ( #6679 )
2019-07-11 20:07:54 +05:30
Chris Jerdonek
e85a848ec8
Add Link.is_hash_allowed().
2019-07-11 01:34:46 -07:00
Chris Jerdonek
3a2ee333a9
Add Hashes.is_hash_allowed().
2019-07-10 20:13:24 -07:00
Chris Jerdonek
a9bf0415c5
Merge pull request #6687 from cjerdonek/add-candidate-preferences
...
Add PackageFinder.make_candidate_evaluator()
2019-07-10 19:58:49 -07:00
Chris Jerdonek
ddfa401dae
Merge pull request #6683 from cjerdonek/make-subprocess-error-path-display
...
Support non-ascii cwds in make_subprocess_output_error()
2019-07-08 13:19:43 -07:00
Chris Jerdonek
4a9e306678
Add get_applicable_candidates(), and test.
2019-07-07 14:35:56 -07:00
Chris Jerdonek
b2389bf8c7
Add CandidatePreferences and PackageFinder.make_candidate_evaluator().
2019-07-07 14:35:50 -07:00
Chris Jerdonek
9311049de2
Merge pull request #6684 from cjerdonek/simplify-found-candidates
...
Simplify FoundCandidates
2019-07-06 02:04:39 -07:00
Chris Jerdonek
9d3d369834
Simplify FoundCandidates.
2019-07-06 01:08:51 -07:00
Chris Jerdonek
cf6f882392
Add test_make_found_candidates().
2019-07-06 00:52:15 -07:00
Chris Jerdonek
77ad4764ef
Support non-ascii cwds in make_subprocess_output_error().
2019-07-06 00:26:36 -07:00
A_Rog
8e26b833d0
Parameterize test_looks_like_hash() ( #6650 )
2019-07-05 22:31:28 +05:30