Jon Dufresne
c71cf88049
Complete type annotations of tests/functional/ directory
2021-11-18 18:26:17 -08:00
Jon Dufresne
fa0804b98c
Use @pytest.mark.usefixture("with_wheel") in tests
...
The with_wheel fixture doesn't have a value and isn't ever referenced
within a test function.
To avoid typing it every test function, change tests to use
pytest.mark.usefixture. It will no longer appear as an argument.
https://docs.pytest.org/en/latest/how-to/fixtures.html#use-fixtures-in-classes-and-modules-with-usefixtures
2021-09-20 21:44:29 -07:00
Pradyun Gedam
94999255d5
Reformat the codebase, with black
2021-08-20 13:37:49 +01:00
Andrey Bienkowski
510e691bc0
Undo removal of test docstring
...
It was very hard for me to figure out what this test was designed
to test. It turns out that when this test was promoted from unit
to functional someone forgot to copy the docstring
9faa9aef29
2021-02-10 21:02:28 +03:00
Pradyun Gedam
86afa89043
Merge pull request #9361 from jdufresne/f-strings
...
Use f-strings for simple string formatting
2020-12-26 10:24:18 +00:00
Jon Dufresne
cdcf74fb8e
Use f-strings for simple string formatting
...
Use pyupgrade to convert simple string formatting to use f-string
syntax. pyupgrade is intentionally timid and will not create an f-string
if it would make the expression longer or if the substitution parameters
are anything but simple names or dotted names.
2020-12-25 16:21:20 -08:00
Jon Dufresne
09b3d3a50b
Remove object from class definitions
...
Unnecessary since dropping Python 2 support. In Python 3, all classes
are new style classes.
2020-12-25 15:48:11 -08:00
Hugo van Kemenade
209ca8de8f
Remove default allow_stderr_warning=False
2020-12-22 16:40:01 +02:00
Hugo van Kemenade
817ee23051
Remove redundant Python 2.7 code
2020-12-22 09:06:26 +02:00
Nikita Chepanov
f8b03eefe2
Add --ignore-requires-python
support to pip download
2020-12-17 12:40:01 -05:00
Stéphane Bidoul
a24d198c15
Do not download editables while preparing requirements
...
Downloading is done at the end of the download command
just like any other requirement. This is necessary to avoid
archiving editable requirements to a zip file when running
pip wheel.
2020-11-22 21:14:09 +01:00
Stéphane Bidoul
9613c887f1
Test download editable
2020-11-12 13:20:44 +01:00
Daniel Katz
7237bd3397
Respond to feedback, and add functional tests.
2020-10-27 19:00:22 -04:00
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