Skip to content

Commit 8ede6e5

Browse files
committed
🔥 disable moban stage
1 parent 0583f50 commit 8ede6e5

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

.moban.d/extras_travis.yml.jj2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "travis.yml.jj2" %}
2+
3+
{%block custom_python_versions%}
4+
python:
5+
- 3.8-dev
6+
- 3.7
7+
- 3.6
8+
{%endblock%}

.travis.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ python:
1111
stages:
1212
- test
1313
- lint
14-
- moban
1514

1615
.disable_global: &disable_global
1716
addons: false
@@ -36,15 +35,6 @@ stages:
3635
install: pip install flake8
3736
script: flake8
3837

39-
.moban: &moban
40-
<<: *disable_global
41-
python: 3.6
42-
stage: moban
43-
install: pip install moban>=0.0.4
44-
script:
45-
- moban
46-
- git diff --exit-code
47-
4838
jobs:
4939
include:
5040
- *moban

lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip install flake8
2-
flake8 . --exclude=.moban.d,docs --builtins=unicode,xrange,long
2+
flake8 . --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long

pyecharts-extras.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies:
99
- pyecharts>=1.3.1
1010
description: "Draw speciaized graphs using pyecharts"
1111
nodocs: true
12+
moban_command: false
1213
releases:
1314
- changes:
1415
- action: maintenance release

tests/test_choropleth_map.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@ def test_choropleth_map():
1919
{"tag": "C", "label": "test c", "color": "green"},
2020
{"tag": "THIS_KEY_IS_NOT_IN_HTML", "label": "test d", "color": "red"},
2121
]
22-
map = ChoroplethMap(init_opts=opts.InitOpts(width="1200px", height="600px"))
23-
map.set_global_opts(title_opts=opts.TitleOpts(
24-
title="Choropleth map - 等值区域图示例"
25-
))
26-
map.add("",
27-
data_pair=zip(attr, value),
28-
choropleth_legend=legends,
29-
maptype="china",
30-
is_map_symbol_show=False,
31-
label_opts=opts.LabelOpts(is_show=False))
22+
map = ChoroplethMap(
23+
init_opts=opts.InitOpts(width="1200px", height="600px")
24+
)
25+
map.set_global_opts(
26+
title_opts=opts.TitleOpts(title="Choropleth map - 等值区域图示例")
27+
)
28+
map.add(
29+
"",
30+
data_pair=zip(attr, value),
31+
choropleth_legend=legends,
32+
maptype="china",
33+
is_map_symbol_show=False,
34+
label_opts=opts.LabelOpts(is_show=False),
35+
)
3236
map.render()
3337
content = get_default_rendering_file_content()
3438
assert "piecewise" in content

0 commit comments

Comments
 (0)