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
Robert Collins
62041d3ca8
Cleanup now use_wheel is the default.
...
There were a bunch of tests passing use_wheel unnecessarily, this
makes the change to remove use_wheel larger than it needs to be.
2015-04-20 20:12:03 +12:00
Marc Abramowitz
0684a9f478
Move InstallationCandidate to pip.index
...
Move InstallationCandidate from `pip.req.req_requirement` to
`pip.index`, the one place where it's used.
2015-04-07 11:56:57 -07:00
Xavier Fernandez
d8609a5890
Log all skipped link the same way
2015-04-07 10:41:03 +02:00
Xavier Fernandez
1683f2caf6
PackageFinder._find_all_versions only needs the project_name
2015-03-27 17:38:50 +01:00
Xavier Fernandez
8bff8b5411
PackageFinder._get_index_urls_locations only needs req_name
...
and InstallRequirement does not need its url_name property anymore
2015-03-27 17:31:05 +01:00
Xavier Fernandez
2038c1af10
add intermediary tests for finder priorities
...
- test finder._find_all_versions results
- replace dead test with gmpy and dead c.pypi.python.org mirror
by pip on pypi/warehouse
2015-03-15 12:07:06 +01:00
Xavier Fernandez
9d0fcf7ef5
rename to _get_index_urls_locations and fix docstring
2015-03-15 12:07:06 +01:00
Xavier Fernandez
7db5cdc7f9
add some tests on find_requirement parts
2015-03-15 12:07:06 +01:00
Marc Abramowitz
886f38e806
Add test_finder.test_tilde unit test
...
Adds a `test_tilde` test to augment @pfmoore's work in
https://github.com/pypa/pip/pull/2455 ("Normalize paths starting with ~
in find-links")
This would've caught the missing import problem we had
(https://github.com/pfmoore/pip/pull/1 ).
2015-03-11 09:34:10 -07:00
Matej Stuchlik
c5024dc851
Mark tests requiring Internet access
2015-01-15 00:53:15 +01:00
Donald Stufft
841ebe4bfe
Merge pull request #2288 from xavfernandez/fix_dependency_links_log
...
fix finder debug log for dependency links
(cherry picked from commit 6531a2db3e
)
2015-01-03 01:00:17 -05:00
Donald Stufft
6f64d3e6e2
Implement PEP 440
2014-12-13 13:50:21 -05:00
Marcus Smith
9d01010672
fix false positive tests due to assert tuple syntax
2014-10-08 21:51:14 -07:00
Buck Golemon
72344874d2
unit coverage for wrong-case
2014-09-17 13:45:26 -07:00
Donald Stufft
767d11e49c
Switch to using the stdlib logger instead of pip.log
2014-09-10 09:36:09 -04:00
Donald Stufft
90688e82b1
Revert "Merge pull request #1519 from dstufft/remove-dependency-links"
...
This reverts commit da02f073da
, reversing
changes made to 2ad8888901
.
Conflicts:
CHANGES.txt
pip/commands/freeze.py
pip/commands/list.py
pip/commands/wheel.py
pip/index.py
pip/req/req_set.py
pip/vcs/subversion.py
2014-08-01 16:50:08 -04:00
Donald Stufft
7037443975
Require an already created session to be passed into APIs
2014-05-06 22:37:46 -04:00
Alex Gaynor
b48b9ce53f
Resolve several typos in the codebase
2014-04-29 22:33:04 -07:00
Donald Stufft
5a76a47d3b
Fix code to handle the latest flake8
2014-03-26 18:24:19 -04:00
Daniele Procida
68cacfb71d
fixes #1615
2014-03-05 18:17:43 -05:00
Donald Stufft
95ac4c16f5
Remove dependency links support from pip
2014-02-25 18:39:40 -05:00
Donald Stufft
95035fc5c4
Turn on everything in flake8
...
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05:00
Donald Stufft
9f027337a8
Use Flake8 on the test of pip's Python files
2014-01-28 19:47:58 -05:00
Donald Stufft
57acb26498
If --allow-unverified is used assume it also means --allow-external
2014-01-10 10:35:55 -05:00
Marcus Smith
3dc40cad46
- if installing directly from a wheel, fail if it has an invalid name or is unsupported
...
- when walking links, skip invalid wheel filenames, don't crash
2013-11-14 16:35:24 -08:00
Donald Stufft
12ee7cc6d9
Do not respect dependency links by default
2013-10-27 18:34:46 -04:00
Donald Stufft
840db882de
Remove the allow_all_unverified
2013-10-26 23:52:04 -04:00
Donald Stufft
616ce39061
Rename --allow-insecure to --allow-unverified
2013-10-26 23:47:57 -04:00