Skip to content

Commit 7648b1a

Browse files
committed
replaced retrying dependency with tenacity in plotly package
1 parent 3e7967c commit 7648b1a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: packages/python/plotly/plotly/io/_orca.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from copy import copy
1212
from contextlib import contextmanager
1313

14-
import retrying
14+
import tenacity
1515
from six import string_types
1616

1717
import _plotly_utils.utils
@@ -1173,11 +1173,11 @@ def validate_executable():
11731173
11741174
>>> import plotly.io as pio
11751175
>>> pio.orca.config.use_xvfb = True
1176-
1176+
11771177
You can save this configuration for use in future sessions as follows:
11781178
1179-
>>> pio.orca.config.save()
1180-
1179+
>>> pio.orca.config.save()
1180+
11811181
See https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml
11821182
for more info on Xvfb
11831183
"""
@@ -1451,7 +1451,7 @@ def ensure_server():
14511451
orca_state["shutdown_timer"] = t
14521452

14531453

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))
14551455
def request_image_with_retrying(**kwargs):
14561456
"""
14571457
Helper method to perform an image request to a running orca server process

Diff for: packages/python/plotly/recipe/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ requirements:
2424
- setuptools
2525
run:
2626
- python
27-
- retrying >=1.3.3
27+
- tenacity >=6.2.0
2828
- six
2929

3030
test:

Diff for: packages/python/plotly/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
six==1.8.0
1010

1111
## retrying requests ##
12-
retrying==1.3.3
12+
tenacity>=6.2.0

Diff for: packages/python/plotly/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def run(self):
505505
),
506506
("etc/jupyter/nbconfig/notebook.d", ["plotlywidget.json"]),
507507
],
508-
install_requires=["retrying>=1.3.3", "six"],
508+
install_requires=["tenacity>=6.2.0", "six"],
509509
zip_safe=False,
510510
cmdclass=dict(
511511
build_py=js_prerelease(versioneer_cmds["build_py"]),

0 commit comments

Comments
 (0)