Add travis file and update patches for requests

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-05-20 01:40:44 -04:00
parent 9cde62ebeb
commit effeb174c8
3 changed files with 37 additions and 0 deletions
+25
View File
@@ -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'
@@ -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
@@ -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