How to use the johnnydep.pipper._get_wheel_args function in johnnydep

To help you get started, we’ve selected a few johnnydep examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wimglenn / johnnydep / tests / test_pipper.py View on Github external
def test_get_wheel_args():
    fake_env = ("python_executable", "snek"), ("pip_version", "8.8.8")
    url = "https://user:pass@example.org:8888/something"
    args = johnnydep.pipper._get_wheel_args(index_url=url, env=fake_env, extra_index_url=None)
    assert args == [
        "snek",
        "-m",
        "pip",
        "wheel",
        "-vvv",
        "--no-deps",
        "--no-cache-dir",
        "--disable-pip-version-check",
        "--index-url",
        "https://user:pass@example.org:8888/something",
        "--trusted-host",
        "example.org",
    ]