File tree 3 files changed +9
-8
lines changed
packages/python/chart-studio
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
16
16
# Create environment
17
17
# PYTHON_VERSION=2.7 or 3.5
18
18
$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
20
20
21
21
# Install orca into environment
22
22
$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 3
3
import requests
4
4
import json as _json
5
5
from requests .exceptions import RequestException
6
- import tenacity
6
+ from retrying import retry
7
7
8
8
import _plotly_utils .exceptions
9
9
from chart_studio import config , exceptions
@@ -129,10 +129,11 @@ def should_retry(exception):
129
129
return False
130
130
131
131
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 ,
136
137
)
137
138
def request (method , url , ** kwargs ):
138
139
"""
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ deps=
56
56
requests ==2.12.4
57
57
six ==1.10.0
58
58
pytz ==2016.10
59
- tenacity ==6.2.0
59
+ retrying ==1.3.3
60
60
pytest ==3.5.1
61
61
backports.tempfile ==1.0
62
62
pandas ==0.23.2
63
- numpy ==1.14.3
63
+ ; numpy==1.14.3
64
64
ipywidgets ==7.2.0
65
65
matplotlib ==2.2.3
66
66
--editable =file:///{toxinidir}/../plotly
You can’t perform that action at this time.
0 commit comments