File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11
11
from copy import copy
12
12
from contextlib import contextmanager
13
13
14
- import retrying
14
+ import tenacity
15
15
from six import string_types
16
16
17
17
import _plotly_utils .utils
@@ -1173,11 +1173,11 @@ def validate_executable():
1173
1173
1174
1174
>>> import plotly.io as pio
1175
1175
>>> pio.orca.config.use_xvfb = True
1176
-
1176
+
1177
1177
You can save this configuration for use in future sessions as follows:
1178
1178
1179
- >>> pio.orca.config.save()
1180
-
1179
+ >>> pio.orca.config.save()
1180
+
1181
1181
See https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml
1182
1182
for more info on Xvfb
1183
1183
"""
@@ -1451,7 +1451,7 @@ def ensure_server():
1451
1451
orca_state ["shutdown_timer" ] = t
1452
1452
1453
1453
1454
- @retrying .retry (wait_random_min = 5 , wait_random_max = 10 , stop_max_delay = 60000 )
1454
+ @tenacity .retry (wait = tenacity . wait . wait_random ( min = 5 , max = 10 ), stop = tenacity . stop . stop_after_delay ( 60000 ) )
1455
1455
def request_image_with_retrying (** kwargs ):
1456
1456
"""
1457
1457
Helper method to perform an image request to a running orca server process
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ requirements:
24
24
- setuptools
25
25
run :
26
26
- python
27
- - retrying >=1.3.3
27
+ - tenacity >=6.2.0
28
28
- six
29
29
30
30
test :
Original file line number Diff line number Diff line change 9
9
six == 1.8.0
10
10
11
11
## retrying requests ##
12
- retrying == 1.3.3
12
+ tenacity >= 6.2.0
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ def run(self):
505
505
),
506
506
("etc/jupyter/nbconfig/notebook.d" , ["plotlywidget.json" ]),
507
507
],
508
- install_requires = ["retrying>=1.3.3 " , "six" ],
508
+ install_requires = ["tenacity>=6.2.0 " , "six" ],
509
509
zip_safe = False ,
510
510
cmdclass = dict (
511
511
build_py = js_prerelease (versioneer_cmds ["build_py" ]),
You can’t perform that action at this time.
0 commit comments