Pradyun Gedam
51086b3718
Don't add wheels when checking if pip gets confused when building wheels
...
setuptools expects only one wheel file to be present in dist/
2019-02-05 08:35:01 +05:30
Pradyun Gedam
6463ffe195
Add failing tests for the behaviour to fix
2019-02-05 08:34:25 +05:30
Paul Moore
a82b7ce5e7
Fix test_pep518_with_user_pip which was getting errors due to irrelevant changes in setuptools output
2018-10-29 23:32:13 +01:00
Benoit Pierre
add3801163
tests: rework tests virtual environment
...
- cleanup virtualenv creation code
- ensure all testing virtual environments use a recent version
of setuptools / wheel, making it easier to switch to custom
versions of those, as well as reducing network accesses
- reduce size of testing virtual environment, slightly speeding
up the testsuite
2018-10-18 23:28:37 +02:00
Pradyun Gedam
1694a5f1bf
Move status_codes to pip._internal.cli
2018-07-30 09:43:53 +05:30
Pradyun Gedam
030d48a25e
Merge pull request #5427 from benoit-pierre/fix_some_tests
...
Fix some tests
2018-06-06 13:08:53 +05:30
Benoit Pierre
1335eba819
tests: tweak test_pip_wheel_with_user_set_in_config
( #5428 )
...
To reduce failures when connection to PyPI is [flaky](https://ci.appveyor.com/project/benoit-pierre/pip/build/1.0.293/job/qohehq43vuwiek1p#L164 ).
2018-05-31 11:42:10 +05:30
Pradyun Gedam
b120d24e4d
Add @pytest.mark.network to a test that did not have it ( #5459 )
2018-05-30 22:49:43 +05:30
Benoit Pierre
f64713226e
tests: fix test_pip_wheel_fail_cause_of_previous_build_dir
2018-05-19 12:51:27 +02:00
Benoit Pierre
04874e24fd
tests: improve PEP 518 tests
...
- avoid hitting the index: use `common_wheels`/`script.pip_install_local`
- use `script.pip(..., use_module=True)` to simplify some tests
- improve `test_pep518_uses_build_env` parametrization
- simplify `test_pep518_with_user_pip`: we only need to check build
requirements can be installed, so no need for testing with both
`install` and `wheel` command
- fix `test_pip_wheel_with_pep518_build_reqs_no_isolation`: building
pep518-3.0 without isolation should fail if the build requirements
are not installed.
2018-05-18 23:45:55 +02:00
Benoit Pierre
6da1d9e47c
fix PEP 518 support
...
* fix build environment handling when using PyPy
* do use the build environment for all build commands
* allow installing and building a wheel of a PEP 518 enabled
package without prior installation of setuptools and/or wheels
* fix check for minimum supported requirements for PEP 518 support:
- correctly handle complex requirements
- both setuptools and wheels are needed
2018-04-08 14:06:11 +02:00
Paul Moore
17e0d115e8
Fix for issue 5085 (--user set in config causes pip wheel to fail)
2018-03-25 18:22:18 +01:00
Pradyun Gedam
c08d4cc806
Add --no-build-isolation for disabling build isolation
2018-03-09 00:01:26 +05:30
Pradyun Gedam
4c147397ea
Merge branch 'master' into cache/ephem-wheel-cache
2018-01-24 02:15:21 +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
Pradyun S. Gedam
ebf06ceb9d
Merge master
2017-10-04 16:58:31 +05:30
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00
Xavier Fernandez
b709b1ef4a
Add a common_wheels fixtures providing wheel & setuptools wheels
2017-07-21 18:08:53 +02:00
Thomas Kluyver
ee67867369
Allow temp files for another test
...
When there's a previous build directory, no_clean is set
2017-07-05 20:05:24 -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
Thomas Kluyver
20955812bf
Merge branch 'master' into pep518
2017-05-19 11:04:32 +01:00
Pradyun S. Gedam
1832569530
Sort all imports
2017-05-16 15:47:47 +05:30
Thomas Kluyver
aee5b6c984
Download packages to path, not to file:/// URL
2017-05-13 22:41:15 +01:00
Thomas Kluyver
2b2bdd1567
Download setuptools, wheel during tests
...
Rather than storing wheels in the test data directory
2017-05-13 19:51:38 +01:00
Thomas Kluyver
1164677d05
Merge branch 'pep518' of github.com:takluyver/pip into pep518
2017-04-26 13:45:48 +01:00
Thomas Kluyver
65585b962e
Allow temp files in test of --no-clean option
2017-04-26 13:38:13 +01:00
Thomas Kluyver
034efe5f2b
Let pip look in packages directory for 'wheel -e' test
2017-04-13 10:56:41 +01:00
Thomas Kluyver
8a9d0493e7
Use finder to find build deps to install
2017-04-01 19:29:47 +01:00
Thomas Kluyver
f257e85d8a
Try to fix pep518 test
2017-04-01 19:29:47 +01:00
Thomas Kluyver
b4f65bfc7c
Try adding smoketest of pep518 build dependency installation
2017-04-01 19:29:47 +01:00
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
4716962112
Improve tests
...
- improve two tests to make them network-less
- add a bunch of pytest.mark
2016-12-04 21:54:50 +01:00
Xavier Fernandez
b1720f303b
Fix test_pip_wheel_builds_when_no_binary_set for Python 3.6
...
setuptools 0.9.8 was not compatible with Python 3.6
Let's use our simple-3.0.tar.gz file instead.
2016-10-28 17:22:21 +02:00
Stéphane Bidoul (ACSONE)
4d1b798465
Allow creating wheels for editable packages ( #3695 )
2016-05-26 06:41:01 -04:00
Xavier Fernandez
18b5fc2c44
pip.wheel: change --wheel-dir default value
...
From <current working directory>/wheelhouse to <current working
directory> only to be consistent with pip download behavior.
2016-01-19 22:42:22 +01:00
Xavier Fernandez
82c45bcf63
Add changelog and test
2015-11-26 23:49:26 +01: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
Donald Stufft
a88bc0de73
Send log messages >= logging.WARNING to stderr
2015-04-06 23:11:16 -04:00
Matej Stuchlik
c5024dc851
Mark tests requiring Internet access
2015-01-15 00:53:15 +01:00
Donald Stufft
01610be0d5
Use a secure randomized build directory when possible
2014-11-11 20:19:10 -05:00
Marcus Smith
12034176a1
build wheels for dependencies of editables
2014-05-03 10:12:57 -07:00
Paul Moore
e9e5a7e874
Need to tell script.pip to expect an error
2014-04-28 15:46:29 +01:00
Paul Moore
0047974b0f
Make pip wheel return failure if any wheels fail to build
2014-04-28 14:28:31 +01:00
Matthew Iversen
d1a7130246
Fix compatibility with wheel 0.23.0
...
wheel now only produces the major python version for the tag of pure
distributions, so expect that instead.
2014-04-03 10:49:27 +11:00
Donald Stufft
5a76a47d3b
Fix code to handle the latest flake8
2014-03-26 18:24:19 -04: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
Marcus Smith
e41bf0230e
'pip wheel' should download wheels, when it finds them
2014-02-01 11:41:55 -08:00
Donald Stufft
9f027337a8
Use Flake8 on the test of pip's Python files
2014-01-28 19:47:58 -05:00
Marcus Smith
0017f1b1cb
use latest wheel from pypi when testing
2013-12-04 19:38:10 -08:00