-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues from prior refactoring and specify --no-build-isolation by…
… default.
- Loading branch information
Showing
3 changed files
with
164 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import os | ||
import tempfile | ||
|
||
import pytest | ||
|
||
|
||
@pytest.mark.basic | ||
@pytest.mark.categories | ||
@pytest.mark.install | ||
def test_basic_category_install(pipenv_instance_private_pypi): | ||
with pipenv_instance_private_pypi() as p: | ||
|
@@ -13,7 +16,7 @@ def test_basic_category_install(pipenv_instance_private_pypi): | |
assert "six" in p.lockfile["prereq"] | ||
|
||
|
||
@pytest.mark.basic | ||
@pytest.mark.categories | ||
@pytest.mark.install | ||
def test_multiple_category_install(pipenv_instance_private_pypi): | ||
with pipenv_instance_private_pypi() as p: | ||
|
@@ -25,3 +28,46 @@ def test_multiple_category_install(pipenv_instance_private_pypi): | |
assert "six" in p.lockfile["prereq"] | ||
assert "six" in p.lockfile["other"] | ||
assert "six" in p.lockfile["other"] | ||
|
||
|
||
@pytest.mark.extras | ||
@pytest.mark.install | ||
@pytest.mark.local | ||
def test_multiple_category_install_proceeds_in_order_specified(pipenv_instance_private_pypi): | ||
"""Ensure -e .[extras] installs. | ||
""" | ||
with pipenv_instance_private_pypi(chdir=True) as p: | ||
#os.mkdir(os.path.join(p.path, "testpipenv")) | ||
setup_py = os.path.join(p.path, "setup.py") | ||
with open(setup_py, "w") as fh: | ||
contents = """ | ||
import six | ||
from setuptools import setup | ||
setup( | ||
name='testpipenv', | ||
version='0.1', | ||
description='Pipenv Test Package', | ||
author='Pipenv Test', | ||
author_email='[email protected]', | ||
license='MIT', | ||
packages=[], | ||
install_requires=['six'], | ||
zip_safe=False | ||
) | ||
""".strip() | ||
fh.write(contents) | ||
with open(os.path.join(p.path, 'Pipfile'), 'w') as fh: | ||
fh.write(""" | ||
[packages] | ||
testpipenv = {path = ".", editable = true} | ||
[prereq] | ||
six = "*" | ||
""".strip()) | ||
c = p.pipenv("lock") | ||
assert c.returncode == 0 | ||
assert "testpipenv" in p.lockfile["default"] | ||
assert "testpipenv" not in p.lockfile["prereq"] | ||
assert "six" in p.lockfile["prereq"] | ||
c = p.pipenv('sync --categories="prereq packages" -v') | ||
assert c.returncode == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters