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
Christopher Hunt
44c8caccd4
Merge pull request #7285 from sbidoul/pip-wheel-cache-like-pip-install-sbi
...
Make pip wheel cache what it built
2019-11-04 05:49:35 +08:00
Stéphane Bidoul (ACSONE)
ba60397dd4
Make pip wheel cache what it built
...
Just like pip install.
2019-11-03 22:08:42 +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
39d16b6ca8
Merge pull request #7276 from chrahunt/refactor/shared-test-scripts
...
Share script fixtures across tests
2019-11-02 23:45:48 +08:00
Stéphane Bidoul (ACSONE)
18a58815a1
Refactor _get_used_vcs_backend
2019-11-01 12:53:54 +01: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
Chris Hunt
0c4625b2ba
Use another shared script in pip list tests
2019-10-30 02:16:23 -04:00
Chris Hunt
6cd9852626
Use shared script in pip list tests
2019-10-30 01:55:32 -04:00
Chris Hunt
1f9028851d
Make shared script with launchers installed
2019-10-30 01:54:57 -04:00
Chris Hunt
ab6b17b2a6
Refactor autocomplete test helper to use shared script
2019-10-30 01:53:48 -04:00
Chris Hunt
cc73b2b933
Use shared autocomplete_script for tests
2019-10-30 01:53:45 -04:00
Chris Hunt
ae4ad85e5f
Make virtualenv/script fixture factories
2019-10-29 23:41:34 -04: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
Pradyun Gedam
be13cf95d2
Merge pull request #7258 from takluyver/use-user-site-int
...
Allow for use_user_site being set to an integer
2019-10-27 19:15:04 +05:30
Thomas Kluyver
f92efc022b
Test that setting user in the config file works
2019-10-27 10:09:15 +00: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
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