mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Add travis file and update patches for requests
Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
+25
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user