File tree 6 files changed +11
-1
lines changed
tests/test_optional/test_tools
6 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ which depend on `try-except` blocks containing network requests should be
12
12
revisited.
13
13
- ` plotly.py:sign_in ` now validates to the plotly server specified in your
14
14
config. If it cannot make a successful request, it raises a ` PlotlyError ` .
15
+ - ` plotly.figure_factory ` will raise an ` ImportError ` if ` numpy ` is not
16
+ installed.
15
17
16
18
### Deprecated
17
19
- ` plotly.tools.FigureFactory ` . Use ` plotly.figure_factory.* ` .
Original file line number Diff line number Diff line change 52
52
- sudo chmod -R 444 ${PLOTLY_CONFIG_DIR} && python -c "import plotly"
53
53
54
54
# test that giving back write permissions works again
55
- # this also has to pass the test suite that follows
56
55
- sudo chmod -R 777 ${PLOTLY_CONFIG_DIR} && python -c "import plotly"
56
+
57
+ # test that figure_factory cannot be imported with only core requirements.
58
+ # since optional requirements is part of the test suite, we don't need to
59
+ # worry about testing that it *can* be imported in this case.
60
+ - $(! python -c "import plotly.figure_factory")
Original file line number Diff line number Diff line change 1
1
from __future__ import absolute_import
2
2
3
+ # Require that numpy exists for figure_factory
4
+ import numpy
5
+
3
6
from plotly .figure_factory ._2d_density import create_2d_density
4
7
from plotly .figure_factory ._annotated_heatmap import create_annotated_heatmap
5
8
from plotly .figure_factory ._candlestick import create_candlestick
File renamed without changes.
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ def readme():
36
36
'plotly/api/v2' ,
37
37
'plotly/plotly' ,
38
38
'plotly/plotly/chunked_requests' ,
39
+ 'plotly/figure_factory' ,
39
40
'plotly/graph_objs' ,
40
41
'plotly/grid_objs' ,
41
42
'plotly/widgets' ,
You can’t perform that action at this time.
0 commit comments