Skip to content

Commit cd22245

Browse files
authored
Preparing for new release (#68)
* test py38 and fix autopublish * update changelog * fix lint * test py38 on win * register pytest mark * amend changelog
1 parent f0dfe2e commit cd22245

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ build: false
33
environment:
44
PYTHON: "C:\\myminiconda3"
55
matrix:
6-
- PY: 3.6
76
- PY: 3.7
7+
- PY: 3.8
88

99
init:
1010
- "ECHO %PYTHON_VERSION% %MINICONDA%"

.travis.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ matrix:
2323
env: PY=3.6
2424
- name: "python-3.7"
2525
env: PY=3.7
26+
- name: "python-3.8"
27+
env: PY=3.8
2628
- name: coding_standards
27-
env: PY=3.7
29+
env: PY=3.8
2830
- name: docs
29-
env: PY=3.7
31+
env: PY=3.8
3032
- name: "tarball"
31-
env: PY=3.7
33+
env: PY=3.8
3234

3335
before_install:
3436
# Install miniconda and create TEST env.
@@ -61,6 +63,7 @@ script:
6163
fi
6264

6365
- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
66+
python setup.py --version ;
6467
pip wheel . -w dist --no-deps ;
6568
check-manifest --verbose ;
6669
twine check dist/* ;
@@ -86,13 +89,13 @@ doctr:
8689
deploy:
8790
skip_cleanup: true
8891
provider: pypi
89-
user: ocefpaf
92+
user: "__token__"
9093
password:
91-
secure: "LzZ9ppBFcqskCeMos99eAmLPRiG2pX8n2Ghf7O5Nd5KgJruZBNVq+uOAFtLkCBTheG+59HS75dQwmc2n2E8hmt1WPCTRpz6bffPl8hUzxuTBIPMzfdor8RmXvnMY+c8zAuWXH2ws166GzRApKMhrIZMv7d5OmZyUZgHTKsA4kyd9Nhz1nZdJf1ox3TbODl4OuGfUkQ8gVhA5LwdlJtzxbZlbPTUpTeu42plJawa2JtY20jiSbnu2mujR1UUuzkcnaBHhStjWYYMUQNtXdKonV5irQ9gN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asRIuLsKiJxnk9oiS+k="
9295
distributions: sdist bdist_wheel
9396
upload_docs: no
9497
on:
9598
repo: python-visualization/branca
9699
tags: true
97100
all_branches: master
98-
condition: '$TEST_TARGET == "docs"'
101+
condition: '$TRAVIS_JOB_NAME == "tarball"'

CHANGES.txt

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
0.4.0
2+
~~~~~
3+
- Dropped Python 2 support
4+
- Store html content in a data-html attribute (#66)
5+
- Colormap alpha #64
6+
- Fix caption being propagated in scale functions #62
7+
- Assert color type in color_brewer #52
8+
9+
0.3.1
10+
~~~~~
11+
- Added viridis scheme #47 (GillesC)
12+
- Fixed testing, auto PyPI upload, and docs
13+
114
0.3.0
215
~~~~~
316
- Add title to Figure (@fitoprincipe #33 and #39)

branca/colormap.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def __init__(self, colors, index=None, vmin=0., vmax=1., caption=''):
197197
if index is None:
198198
self.index = [vmin + (vmax-vmin)*i*1./(n-1) for i in range(n)]
199199
else:
200-
self.index = [x for x in index]
200+
self.index = list(index)
201201
self.colors = [_parse_color(x) for x in colors]
202202

203203
def rgba_floats_tuple(self, x):
@@ -379,7 +379,7 @@ def __init__(self, colors, index=None, vmin=0., vmax=1., caption=''):
379379
if index is None:
380380
self.index = [vmin + (vmax-vmin)*i*1./n for i in range(n+1)]
381381
else:
382-
self.index = [x for x in index]
382+
self.index = list(index)
383383
self.colors = [_parse_color(x) for x in colors]
384384

385385
def rgba_floats_tuple(self, x):

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ flake8-ignore =
1616
docs/* ALL
1717
versioneer.py ALL
1818
branca/_version.py ALL
19+
markers =
20+
headless: mark headless tests (deselect with '-m "not headless"')
1921

2022
[metadata]
2123
description-file = README.rst

0 commit comments

Comments
 (0)