Skip to content

Commit

Permalink
Preparing for new release (#68)
Browse files Browse the repository at this point in the history
* test py38 and fix autopublish
* update changelog
* fix lint
* test py38 on win
* register pytest mark
* amend changelog
  • Loading branch information
ocefpaf authored Feb 17, 2020
1 parent f0dfe2e commit cd22245
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ build: false
environment:
PYTHON: "C:\\myminiconda3"
matrix:
- PY: 3.6
- PY: 3.7
- PY: 3.8

init:
- "ECHO %PYTHON_VERSION% %MINICONDA%"
Expand Down
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ matrix:
env: PY=3.6
- name: "python-3.7"
env: PY=3.7
- name: "python-3.8"
env: PY=3.8
- name: coding_standards
env: PY=3.7
env: PY=3.8
- name: docs
env: PY=3.7
env: PY=3.8
- name: "tarball"
env: PY=3.7
env: PY=3.8

before_install:
# Install miniconda and create TEST env.
Expand Down Expand Up @@ -61,6 +63,7 @@ script:
fi

- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
python setup.py --version ;
pip wheel . -w dist --no-deps ;
check-manifest --verbose ;
twine check dist/* ;
Expand All @@ -86,13 +89,13 @@ doctr:
deploy:
skip_cleanup: true
provider: pypi
user: ocefpaf
user: "__token__"
password:
secure: "LzZ9ppBFcqskCeMos99eAmLPRiG2pX8n2Ghf7O5Nd5KgJruZBNVq+uOAFtLkCBTheG+59HS75dQwmc2n2E8hmt1WPCTRpz6bffPl8hUzxuTBIPMzfdor8RmXvnMY+c8zAuWXH2ws166GzRApKMhrIZMv7d5OmZyUZgHTKsA4kyd9Nhz1nZdJf1ox3TbODl4OuGfUkQ8gVhA5LwdlJtzxbZlbPTUpTeu42plJawa2JtY20jiSbnu2mujR1UUuzkcnaBHhStjWYYMUQNtXdKonV5irQ9gNACnmlFSwSqDf1Jb74f3n3ojB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ist bdist_wheel
upload_docs: no
on:
repo: python-visualization/branca
tags: true
all_branches: master
condition: '$TEST_TARGET == "docs"'
condition: '$TRAVIS_JOB_NAME == "tarball"'
13 changes: 13 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
0.4.0
~~~~~
- Dropped Python 2 support
- Store html content in a data-html attribute (#66)
- Colormap alpha #64
- Fix caption being propagated in scale functions #62
- Assert color type in color_brewer #52

0.3.1
~~~~~
- Added viridis scheme #47 (GillesC)
- Fixed testing, auto PyPI upload, and docs

0.3.0
~~~~~
- Add title to Figure (@fitoprincipe #33 and #39)
Expand Down
4 changes: 2 additions & 2 deletions branca/colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def __init__(self, colors, index=None, vmin=0., vmax=1., caption=''):
if index is None:
self.index = [vmin + (vmax-vmin)*i*1./(n-1) for i in range(n)]
else:
self.index = [x for x in index]
self.index = list(index)
self.colors = [_parse_color(x) for x in colors]

def rgba_floats_tuple(self, x):
Expand Down Expand Up @@ -379,7 +379,7 @@ def __init__(self, colors, index=None, vmin=0., vmax=1., caption=''):
if index is None:
self.index = [vmin + (vmax-vmin)*i*1./n for i in range(n+1)]
else:
self.index = [x for x in index]
self.index = list(index)
self.colors = [_parse_color(x) for x in colors]

def rgba_floats_tuple(self, x):
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ flake8-ignore =
docs/* ALL
versioneer.py ALL
branca/_version.py ALL
markers =
headless: mark headless tests (deselect with '-m "not headless"')

[metadata]
description-file = README.rst
Expand Down

0 comments on commit cd22245

Please sign in to comment.