diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..3c3855b5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +sudo: false +dist: trusty +language: python +python: + - "3.6" + - "2.7" +env: + global: + - PYPI_VENDOR_DIR='./tests/pypi/' + - GIT_ASK_YESNO='false' + - PYTHONIOENCODING='utf-8' + matrix: + - TEST_SUITE='not install' + - TEST_SUITE='install' + PYTEST_ADDOPTS='--cache-clear' + +install: + - "pip install --upgrade pip" + - "pip install -e . --upgrade --upgrade-strategy=only-if-needed" + - "pipenv install --dev" + - 'pip install -e "$(pwd)" --upgrade' + - 'pipenv install --system --dev' + +script: + - 'pipenv run time pytest -v -n 4 -m "$TEST_SUITE" tests' diff --git a/pipenv/patched/notpip/_vendor/__init__.py b/pipenv/patched/notpip/_vendor/__init__.py index 774f1bf3..40ce7a01 100644 --- a/pipenv/patched/notpip/_vendor/__init__.py +++ b/pipenv/patched/notpip/_vendor/__init__.py @@ -107,3 +107,5 @@ if DEBUNDLED: vendored("requests.packages.urllib3.util.ssl_") vendored("requests.packages.urllib3.util.timeout") vendored("requests.packages.urllib3.util.url") + +import requests diff --git a/tasks/vendoring/patches/patched/piptools.patch b/tasks/vendoring/patches/patched/piptools.patch index 60ba96fd..9a50ffe7 100644 --- a/tasks/vendoring/patches/patched/piptools.patch +++ b/tasks/vendoring/patches/patched/piptools.patch @@ -519,3 +519,13 @@ index 674674a..4259028 100644 PyPI, + SafeFileCache, ) +diff --git a/pipenv/patched/pip/_vendor/__init__.py b/pipenv/patched/pip/_vendor/__init__.py +index 774f1bf3..40ce7a01 100644 +--- a/pipenv/patched/pip/_vendor/__init__.py ++++ b/pipenv/patched/pip/_vendor/__init__.py +@@ -107,3 +107,5 @@ if DEBUNDLED: + vendored("requests.packages.urllib3.util.ssl_") + vendored("requests.packages.urllib3.util.timeout") + vendored("requests.packages.urllib3.util.url") ++ ++import requests