File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
packages/python/chart-studio Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if [ ! -d $HOME/miniconda/envs/circle_optional ]; then
1616 # Create environment
1717 # PYTHON_VERSION=2.7 or 3.5
1818 $HOME /miniconda/bin/conda create -n circle_optional --yes python=$PYTHON_VERSION \
19- requests nbformat six tenacity psutil pandas decorator pytest mock nose poppler xarray scikit-image ipython jupyter ipykernel ipywidgets statsmodels
19+ requests nbformat six retrying tenacity psutil pandas decorator pytest mock nose poppler xarray scikit-image ipython jupyter ipykernel ipywidgets statsmodels
2020
2121 # Install orca into environment
2222 $HOME /miniconda/bin/conda install --yes -n circle_optional -c plotly plotly-orca==1.3.1
Original file line number Diff line number Diff line change 33import requests
44import json as _json
55from requests .exceptions import RequestException
6- import tenacity
6+ from retrying import retry
77
88import _plotly_utils .exceptions
99from chart_studio import config , exceptions
@@ -129,10 +129,11 @@ def should_retry(exception):
129129 return False
130130
131131
132- @tenacity .retry (
133- wait = tenacity .wait_exponential (multiplier = 1000 , max = 16000 ),
134- stop = tenacity .stop_after_delay (180000 ),
135- retry = tenacity .retry_if_exception (should_retry ),
132+ @retry (
133+ wait_exponential_multiplier = 1000 ,
134+ wait_exponential_max = 16000 ,
135+ stop_max_delay = 180000 ,
136+ retry_on_exception = should_retry ,
136137)
137138def request (method , url , ** kwargs ):
138139 """
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ deps=
5656 requests ==2.12.4
5757 six ==1.10.0
5858 pytz ==2016.10
59- tenacity ==6.2.0
59+ retrying ==1.3.3
6060 pytest ==3.5.1
6161 backports.tempfile ==1.0
6262 pandas ==0.23.2
63- numpy ==1.14.3
63+ ; numpy==1.14.3
6464 ipywidgets ==7.2.0
6565 matplotlib ==2.2.3
6666 --editable =file:///{toxinidir}/../plotly
You can’t perform that action at this time.
0 commit comments