mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Implement functional test for installing PEP 517 packages with --no-binary :all:
This commit is contained in:
parent
4879c8b2eb
commit
be6e198875
4 changed files with 26 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
[build-system]
|
||||
requires = [ "setuptools" ]
|
||||
build-backend = "setuptools.build_meta"
|
3
tests/data/packages/pep517_setup_and_pyproject/setup.cfg
Normal file
3
tests/data/packages/pep517_setup_and_pyproject/setup.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
[metadata]
|
||||
name = pep517-setup-and-pyproject
|
||||
version = 1.0
|
3
tests/data/packages/pep517_setup_and_pyproject/setup.py
Normal file
3
tests/data/packages/pep517_setup_and_pyproject/setup.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup()
|
|
@ -1268,6 +1268,23 @@ def test_install_no_binary_disables_building_wheels(script, data, with_wheel):
|
|||
assert "Running setup.py install for upper" in str(res), str(res)
|
||||
|
||||
|
||||
def test_install_no_binary_builds_pep_517_wheel(script, data, with_wheel):
|
||||
to_install = data.packages.joinpath('pep517_setup_and_pyproject')
|
||||
res = script.pip(
|
||||
'install', '--no-binary=:all:', '-f', data.find_links, to_install
|
||||
)
|
||||
expected = ("Successfully installed pep517-setup-and-pyproject")
|
||||
# Must have installed the package
|
||||
assert expected in str(res), str(res)
|
||||
|
||||
assert "Building wheel for pep517-setup-and-pyproject" in str(res), str(res)
|
||||
assert (
|
||||
"Running setup.py install for pep517-setup-and-pyproject" \
|
||||
not in str(res),
|
||||
str(res)
|
||||
)
|
||||
|
||||
|
||||
def test_install_no_binary_disables_cached_wheels(script, data, with_wheel):
|
||||
# Seed the cache
|
||||
script.pip(
|
||||
|
|
Loading…
Reference in a new issue