Nguyễn Gia Phong
46b938349a
Allow py2 deprecation warning from setuptools
2020-08-14 17:56:15 +07:00
Surbhi Sharma
a851753ff0
fix method call
2020-06-01 18:18:33 +05:30
Surbhi Sharma
fe761c5f4f
Use helper methods in test_download and test_new_resolver
2020-05-31 18:55:43 +05:30
Tzu-ping Chung
0e4dd69759
Also fixed this test
2020-05-25 20:39:45 +08:00
Pradyun Gedam
403310e9b5
Merge pull request #7996 from deveshks/add-prefer-binary-to-req-file
2020-05-23 17:11:36 +05:30
Paul Moore
c2fa0dd997
Add a mark for tests that fail on the new resolver
2020-05-21 15:39:00 +01:00
Devesh Kumar Singh
714a6c5469
Added unit tests
2020-05-21 19:37:45 +05:30
Chris Hunt
b58205ea01
Use valid wheel for functional download tests
...
Previously we were copying an existing wheel to a file with a
different distribution name. When using stricter metadata parsing this
would fail, so now we use a more conformant dummy wheel function.
2020-01-04 23:08:43 +01:00
Chris Hunt
9faa9aef29
Make download_http_url existing bad file test functional
...
Reduces coupling between tests and code.
2019-12-13 20:30:45 -05:00
Chris Hunt
d3920f299f
Make unpack_file_url existing bad file test functional
...
Reduces coupling between tests and code.
2019-12-13 20:30:45 -05:00
Chris Hunt
fe24c7fc16
Make unpack_file_url existing matching file test functional
...
Reduces coupling between tests and code.
2019-12-13 20:30:45 -05:00
Chris Hunt
30c2d979b0
Make unpack_file_url download test to functional
...
This and the next several changes will uncouple the tests from the
current implementation, allowing us to factor the actual file download
out of `unpack_file_url` and `unpack_http_url`.
2019-12-13 20:30:45 -05:00
Chris Hunt
d4f2c9f962
Remove interpreter-specific major version tag
...
As mentioned in https://snarky.ca/the-challenges-in-designing-a-library-for-pep-425/
this tag doesn't make much sense + it impedes our usage of
packaging.tags.
In terms of backwards-compatibility, we attest to try to match
compatible wheels as best as possible, and this tag doesn't represent
that.
2019-11-15 00:20:58 -05: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
Chris Hunt
0a6b3cedae
Remove unnecessary expect_error.
2019-08-10 22:39:57 -04:00
Christopher Hunt
0d286012f7
Remove copy from tests.lib.path.Path. ( #6746 )
2019-07-21 01:12:07 +02:00
Chris Hunt
39ac9ca351
Rename compatible functions in tests.lib.path.Path.
2019-07-02 18:48:44 -04:00
Chris Jerdonek
8dbf88dff7
Update pip-download to respect --python-version.
2019-06-06 13:20:29 -07:00
Paul Moore
087d8254a7
Merge pull request #5410 from wtolson/manylinux2010
...
Manylinux2010
2018-11-22 11:07:49 +00:00
Jon Dufresne
8136b410f7
Correct capitalization of PyPI
...
As spelled on https://pypi.org/ .
2018-09-16 15:30:52 -07:00
Pradyun Gedam
1694a5f1bf
Move status_codes to pip._internal.cli
2018-07-30 09:43:53 +05:30
Pradyun Gedam
54722aa7ec
Remove unused imports
2018-06-13 13:17:30 +05:30
William T Olson
8d2068906b
Rename manylinux2 tag as manylinux2010
...
This reflects the change in the tag name in PEP 571.
2018-05-15 10:16:35 -04:00
Mark Williams
fde4a826b9
Preliminary manylinux2 support.
2018-05-15 09:09:56 -04:00
Daniel Shaulov
d67d98dd91
Add a --prefer-binary flag. ( #5370 )
...
The flag makes pip prefer an older but valid binary distributions over a newer source distributions.
Fixes #3785 .
2018-05-11 11:17:32 +05:30
Pradyun Gedam
e31d784b41
Rename a few tests to add the word "basic"
...
This essentially allows me to do an overall check general check by running the tests using pytest's `-k basic` syntax. Given that I like running tests often and that, in general, I make typos more often than changes that break core functionality, I think this will reduce cycle times for me.
2017-12-16 23:43:46 +05:30
Michael Williamson
2d97891497
Allow downloading of sdists for specific platform with --no-deps
2017-10-12 09:30:28 +01:00
Michael Williamson
2f90cd0735
Split tests for download with specific platform
2017-10-12 09:30:28 +01:00
Michael Williamson
70ddf290ed
Remove duplicate test case
2017-10-12 09:30:28 +01:00
Benoit Pierre
961737ab98
Fix integration tests on Windows ( #4769 )
2017-10-06 20:51:42 +01:00
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -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
Nikhil Benesch
20326d8b24
Failing exit status when no requirements specified ( #4210 )
...
* add failing tests for #2720
* fix #2720 : exit status when no requirements specified
* Don't fail when blank requirements files specified
2017-01-06 23:21:46 +01: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
Xavier Fernandez
2badb05d19
Fix test_download_wheel
...
Use local path instead of bitbucket
2016-07-31 22:33:03 +02:00
Patrick Lawson
bbe99ce62d
Add --implementation and --abi parameters to ``pip download``.
...
Add thorough tests, usage documentation, and handle some merge issues.
2016-07-21 13:01:52 -05: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
Donald Stufft
1ae7707e96
Default to downloading to the current directory
2016-01-19 13:05:34 -05:00
Mathew Jennings
417f79d8b8
Add `pip download` command and deprecate `pip install --download`.
...
`pip download` has the same functionality as `pip install --download`,
and the behavior of `pip install --download` is preserved with a deprecation
warning. `pip install --download` will be removed in pip version 10.
2015-09-13 17:41:00 -04:00