示例#1
0
def test_pip_install_no_binary(python, project_source_root):
    subprocess_run(
        python,
        "-m",
        "pip",
        "install",
        "--no-binary",
        ":all:",
        project_source_root.as_posix(),
    )

    pip_show = subprocess_run(python, "-m", "pip", "show", "poetry-core")
    assert "Name: poetry-core" in pip_show.stdout
示例#2
0
def test_pip_wheel_build(temporary_directory, project_source_root):
    tmp = str(temporary_directory)
    pip = subprocess_run("pip", "wheel", "--use-pep517", "-w", tmp,
                         str(project_source_root))
    assert "Successfully built poetry-core" in pip.stdout

    assert pip.returncode == 0

    wheels = list(Path(tmp).glob("poetry_core-*-none-any.whl"))
    assert len(wheels) == 1
示例#3
0
def test_pip_install_no_binary(temporary_directory, project_source_root):
    venv_dir = temporary_directory / ".venv"
    venv_python = venv_dir / "bin" / "python"

    subprocess_run(sys.executable, "-m", "venv", str(venv_dir))
    subprocess_run(str(venv_python), "-m", "pip", "install", "--upgrade",
                   "pip")
    subprocess_run(
        str(venv_python),
        "-m",
        "pip",
        "install",
        "--no-binary",
        ":all:",
        str(project_source_root),
    )

    pip_show = subprocess_run(str(venv_python), "-m", "pip", "show",
                              "poetry-core")
    assert "Name: poetry-core" in pip_show.stdout