diff options
author | Marcus Smith <qwcode@gmail.com> | 2013-12-04 19:38:10 -0800 |
---|---|---|
committer | Marcus Smith <qwcode@gmail.com> | 2013-12-04 19:38:10 -0800 |
commit | 0017f1b1cbb984a33f296730b42e02ebee6a78a2 (patch) | |
tree | 54bfc8d95ac9acb3f971561c9b329133f70f1115 /tests | |
parent | f81c026c7beff77b8ecfd8f1c49e3f1060ba3869 (diff) | |
download | pip-0017f1b1cbb984a33f296730b42e02ebee6a78a2.tar.gz |
use latest wheel from pypi when testing
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/packages/wheel-0.16.0.tar.gz | bin | 37355 -> 0 bytes | |||
-rw-r--r-- | tests/functional/test_install_wheel.py | 4 | ||||
-rw-r--r-- | tests/functional/test_wheel.py | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/data/packages/wheel-0.16.0.tar.gz b/tests/data/packages/wheel-0.16.0.tar.gz Binary files differdeleted file mode 100644 index 4dfbb00b7..000000000 --- a/tests/data/packages/wheel-0.16.0.tar.gz +++ /dev/null diff --git a/tests/functional/test_install_wheel.py b/tests/functional/test_install_wheel.py index 0cfeff46d..a052702a7 100644 --- a/tests/functional/test_install_wheel.py +++ b/tests/functional/test_install_wheel.py @@ -53,7 +53,7 @@ def test_install_wheel_with_target(script, data): """ Test installing a wheel using pip install --target """ - script.pip_install_local('wheel') + script.pip('install', 'wheel') target_dir = script.scratch_path/'target' result = script.pip('install', 'simple.dist==0.1', '-t', target_dir, '--use-wheel', '--no-index', '--find-links='+data.find_links) @@ -98,7 +98,7 @@ def test_install_user_wheel(script, virtualenv, data): Test user install from wheel (that has a script) """ virtualenv.system_site_packages = True - script.pip_install_local('wheel') + script.pip('install', 'wheel') result = script.pip('install', 'has.script==1.0', '--user', '--use-wheel', '--no-index', '--find-links='+data.find_links) egg_info_folder = script.user_site / 'has.script-1.0.dist-info' diff --git a/tests/functional/test_wheel.py b/tests/functional/test_wheel.py index a19ec3fb1..bc7136f44 100644 --- a/tests/functional/test_wheel.py +++ b/tests/functional/test_wheel.py @@ -24,7 +24,7 @@ def test_pip_wheel_success(script, data): """ Test 'pip wheel' success. """ - script.pip_install_local('wheel') + script.pip('install', 'wheel') result = script.pip('wheel', '--no-index', '-f', data.find_links, 'simple==3.0') wheel_file_name = 'simple-3.0-py%s-none-any.whl' % pyversion_nodot wheel_file_path = script.scratch/'wheelhouse'/wheel_file_name @@ -36,7 +36,7 @@ def test_pip_wheel_fail(script, data): """ Test 'pip wheel' failure. """ - script.pip_install_local('wheel') + script.pip('install', 'wheel') result = script.pip('wheel', '--no-index', '-f', data.find_links, 'wheelbroken==0.1') wheel_file_name = 'wheelbroken-0.1-py%s-none-any.whl' % pyversion_nodot wheel_file_path = script.scratch/'wheelhouse'/wheel_file_name @@ -49,7 +49,7 @@ def test_pip_wheel_ignore_wheels_editables(script, data): """ Test 'pip wheel' ignores editables and *.whl files in requirements """ - script.pip_install_local('wheel') + script.pip('install', 'wheel') local_wheel = '%s/simple.dist-0.1-py2.py3-none-any.whl' % data.find_links local_editable = data.packages.join("FSPkg") @@ -76,7 +76,7 @@ def test_no_clean_option_blocks_cleaning_after_wheel(script, data): """ Test --no-clean option blocks cleaning after wheel build """ - script.pip_install_local('wheel') + script.pip('install', 'wheel') result = script.pip('wheel', '--no-clean', '--no-index', '--find-links=%s' % data.find_links, 'simple') build = script.venv_path/'build'/'simple' assert exists(build), "build/simple should still exist %s" % str(result) @@ -87,7 +87,7 @@ def test_pip_wheel_source_deps(script, data): Test 'pip wheel --use-wheel' finds and builds source archive dependencies of wheels """ # 'requires_source' is a wheel that depends on the 'source' project - script.pip_install_local('wheel') + script.pip('install', 'wheel') result = script.pip('wheel', '--use-wheel', '--no-index', '-f', data.find_links, 'requires_source') wheel_file_name = 'source-1.0-py%s-none-any.whl' % pyversion_nodot wheel_file_path = script.scratch/'wheelhouse'/wheel_file_name @@ -98,7 +98,7 @@ def test_pip_wheel_source_deps(script, data): def test_pip_wheel_fail_cause_of_previous_build_dir(script, data): """Test when 'pip wheel' tries to install a package that has a previous build directory""" - script.pip_install_local('wheel') + script.pip('install', 'wheel') # Given that I have a previous build dir of the `simple` package build = script.venv_path / 'build' / 'simple' |