Chris Jerdonek
aa14d3aecf
Add a make_no_network_finder() test helper.
2019-08-23 07:55:01 -07:00
Pradyun Gedam
537b0fca12
Change isort multi_line_output to 3
2019-07-22 10:15:27 +05:30
Pradyun Gedam
f669719c96
Rename InstallationCandidate.{location -> link}
2019-07-20 12:41:22 +05:30
Chris Jerdonek
2de38044bb
Pass the specifier to CandidateEvaluator.create().
2019-07-16 01:09:14 -07:00
Chris Jerdonek
0d96a49cf7
Add project_name to CandidateEvaluator.
2019-07-14 10:56:00 -07:00
Chris Jerdonek
b2389bf8c7
Add CandidatePreferences and PackageFinder.make_candidate_evaluator().
2019-07-07 14:35:50 -07:00
Chris Jerdonek
979c8405d2
Add LinkEvaluator class.
2019-07-04 16:54:29 -07:00
Chris Jerdonek
8af3f21a57
Filter out yanked links earlier when allow_yanked=False.
2019-06-27 19:50:25 -07:00
Chris Jerdonek
7d08bb37a5
Add SearchScope class.
2019-06-18 00:47:10 -07:00
Chris Jerdonek
210dab7470
Add make_test_finder() helper function.
2019-06-11 19:18:56 -07:00
Chris Jerdonek
b8d693c71e
Add a TargetPython class.
2019-06-11 18:19:20 -07:00
Chris Jerdonek
a9a9cfd98c
Improve the debug log message when installing an incompatible wheel.
2019-05-25 23:59:32 -07:00
Chris Jerdonek
7995e2d5a9
Move get_install_candidate() to PackageFinder.
2019-05-19 11:03:47 -07:00
Chris Jerdonek
cad71a7117
Add PackageFinder.create(), and simplify PackageFinder().
2019-05-17 11:55:21 -07:00
Chris Jerdonek
c54e50f50b
Simplify CandidateEvaluator.evaluate_link().
2019-05-12 15:21:14 -04:00
Chris Jerdonek
10c68e674b
Rename _link_package_versions() to evaluate_link().
2019-05-07 11:54:28 -04:00
Chris Jerdonek
651d6fe705
Move _link_package_versions() to CandidateEvaluator.
2019-05-07 11:46:08 -04:00
Chris Jerdonek
dddd28b8de
Add CandidateEvaluator class to encapsulate sorting. ( #6424 )
2019-04-22 03:40:35 -07:00
Chris Jerdonek
f82d87a555
Enable test by fixing typo: "est_link_..." -> "test_link_..."
2019-04-02 05:39:11 -07:00
Pradyun Gedam
7222cb8fdb
Remove --process-dependency-links and related support code
2019-01-02 17:27:06 +05:30
Tzu-ping Chung
de7fdbb7a5
Convert multi-phase tests into fixtures
...
Also... make the tests actually pass.
2018-12-03 13:49:25 +08:00
Tzu-ping Chung
557e7d2739
Fix test case class name
...
So it is actually picked up correctly by Pytest.
2018-12-03 13:49:25 +08:00
Jon Dufresne
8136b410f7
Correct capitalization of PyPI
...
As spelled on https://pypi.org/ .
2018-09-16 15:30:52 -07:00
Nitesh Sharma
b818b8324d
refactor format control and rename test functions
2018-08-28 21:45:40 +05:30
Nitesh Sharma
e10a613212
Refactoring: Move FormatControl to separate class
...
This moves FormatControl named tuple and it's all related
methods to separate class.
Closes https://github.com/pypa/pip/issues/5592
2018-08-28 21:12:42 +05:30
Pradyun Gedam
a5a07fe61c
Move InstallRequirement.from_line to constructors module
2018-08-21 20:37:40 +05:30
Donald Stufft
275ab7c3f5
Switch pip to use Warehouse by default
2018-04-16 15:54:11 -04:00
luz.paz
209b0c6c10
Misc. trivial typos
...
Found via `codespell -q 3`
2018-03-27 06:51:44 -04:00
Donald Stufft
80cf173c93
Merge branch 'release/9.0.2' into merged/9.0.2
2018-03-16 23:44:44 -04:00
Donald Stufft
fb2f8f17b6
Fix tests
2018-03-16 19:06:18 -04:00
Anthony Sottile
e21e2d3f8f
Upgrade syntax in ./tests
...
Changes were automated via https://github.com/asottile/pyupgrade
See #4921
2017-12-14 21:59:41 -08:00
Pradyun Gedam
353a13ddff
isort: Include trailing commas
2017-11-21 13:23:59 +05:30
Benoit Pierre
d778fc330e
Small tests related cleanups ( #4703 )
...
* fix test not using temporary directory
* avoid creating a `cache_dir` directory in the source tree
* drop `data` fixture from tests that don't use it
* tests: fix pytest warning
2017-10-02 18:33:52 +01:00
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00
Ian Stapleton Cordasco
283cf2ca78
Add support for wheel build tags ( #4299 )
2017-08-31 07:58:02 -04:00
Pradyun S. Gedam
9923c1ad7e
Sort imports and minor Flake8 changes ( #4520 )
...
* Run isort on the codebase
Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests
* 📰
2017-06-13 14:17:00 +02:00
Pradyun S. Gedam
1832569530
Sort all imports
2017-05-16 15:47:47 +05:30
Alex Gaynor
3e527f2fbf
Fixed some pytest warnings in the tests
2017-03-20 11:45:29 -04:00
Donald Stufft
ceb7feed75
Update tests for the removal of Python 2.6
2017-03-18 14:52:14 -04:00
Xavier Fernandez
5bd3367644
Merge pull request #3760 from patricklaw/pl.pip-install-additional-options
...
Pl.pip install additional options
2016-08-12 10:27:57 +02:00
Matthias Bussonnier
bfd8794aad
Set test docstring ad add to CHANGES.txt
2016-07-29 09:41:10 -07:00
Matthias Bussonnier
d4e22ea097
Add tests
2016-07-28 15:18:44 -07:00
Mathew Jennings
9a4be9b281
Add --platform and --python-version to `pip download`.
...
With the --platform option, a user can download wheels with
a different platform than that of the local machine running the command.
With the --python-version option, a user can
download wheels that are explicitly compatible with a specific
Python interpreter version.
This functionality is meant for utilities that gather dependencies
and prepare distributions for other platforms.
2016-07-21 13:01:52 -05:00
Xavier Fernandez
2bc3e3b069
Drop useless test
...
find_all_candidates can not return an unsupported wheel:
it would have been skipped in _link_package_versions
2016-01-15 10:19:07 +01:00
Xavier Fernandez
81ce0deca2
No need to sort the candidates, just find the best
2016-01-15 10:19:07 +01:00
Xavier Fernandez
e0904eb5d2
Rename _find_all_versions to find_all_candidates
2016-01-03 15:07:12 +01:00
Sachi King
f9c40564c4
monkeypatch os.path.exists over less code
...
PipSession attempts to create a user_agent which results in calls to
platform.linux_distribution being called, there is a chance this hits
platform._dist_try_harder, which calls os.path.exists("/a/bad/path")
then attempts to open and read from said path resulting in brekage.
This creates PipSession before mock patches os.path.exists then only
patches the call that requires os.path.exists to be patched.
2015-11-25 16:08:58 +11:00
Xavier Fernandez
f1bf7515c2
pip.index: remove INSTALLED_VERSION
...
closes #703
2015-11-04 22:52:44 +01:00
Donald Stufft
0f5d4286a5
Deprecate and Noop the PEP 438 functionality due to PEP 470
2015-09-02 23:47:05 -04:00
Robert Collins
6aec23cafe
Issue #2675 : Granular control over wheels/sdists
...
With wheel autobuilding in place a release blocker is some granular
way to opt-out of wheels for known-bad packages. This patch introduces
two new options: --no-binary and --only-binary to control what
archives we are willing to use on both a global and per-package basis.
This also closes #2084
2015-04-24 08:52:48 +12:00