Skip to content

Commit db16669

Browse files
authored
Merge pull request #596 from ocefpaf/new_release
New release
2 parents 8fa74b9 + 9359372 commit db16669

File tree

8 files changed

+30
-25
lines changed

8 files changed

+30
-25
lines changed

.stickler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
linters:
2+
flake8:
3+
max-line-length: 100
4+
max-complexity: 10
5+
files:
6+
ignore: ['*.ipynb', 'conf.py']

.travis.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,24 @@ matrix:
1010
fast_finish: true
1111
include:
1212
- python: 2.7
13-
env: TEST_TARGET=branca_release
14-
- python: 3.5
15-
env: TEST_TARGET=branca_release
16-
- python: 3.5
17-
env: TEST_TARGET=coding_standards
13+
env: TEST_TARGET=default
14+
- python: 3.4
15+
env: TEST_TARGET=default
1816
- python: 3.5
17+
env: TEST_TARGET=default
18+
- python: 3.6
19+
env: TEST_TARGET=default
20+
- python: 3.6
1921
env: TEST_TARGET=notebooks
2022
- python: 2.7
21-
env: TEST_TARGET=branca_latest
22-
- python: 3.5
23-
env: TEST_TARGET=branca_latest
23+
env: TEST_TARGET=latest_branca
24+
- python: 3.6
25+
env: TEST_TARGET=latest_branca
2426
allow_failures:
2527
- python: 2.7
26-
env: TEST_TARGET=branca_latest
27-
- python: 3.5
28-
env: TEST_TARGET=branca_latest
28+
env: TEST_TARGET=latest_branca
29+
- python: 3.6
30+
env: TEST_TARGET=latest_branca
2931

3032
before_install:
3133
- wget http://bit.ly/miniconda -O miniconda.sh
@@ -36,10 +38,10 @@ before_install:
3638
- conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements-dev.txt
3739
- source activate TEST
3840

39-
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.5" ]]; then
41+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
4042
conda install --yes mock ;
4143
fi
42-
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
44+
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
4345
conda install --yes doctr ;
4446
fi
4547

@@ -48,21 +50,17 @@ install:
4850
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
4951

5052
script:
51-
- if [[ $TEST_TARGET == 'branca_release' ]]; then
53+
- if [[ $TEST_TARGET == 'default' ]]; then
5254
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
5355
fi
5456

55-
- if [[ $TEST_TARGET == 'branca_latest' ]]; then
57+
- if [[ $TEST_TARGET == 'latest_branca' ]]; then
5658
pip install git+https://github.com/python-visualization/branca.git ;
5759
python setup.py test ;
5860
fi
5961

60-
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
61-
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
62-
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
63-
fi
64-
6562
- if [[ $TEST_TARGET == 'notebooks' ]]; then
63+
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
6664
py.test -vv tests/notebooks/test_notebooks.py ;
6765
doctr deploy --built-docs=examples/results --gh-pages-docs=gallery ;
6866
fi

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Added `fullscreen` plugin (sanga #437)
1313
- Added `smooth_factor `option to `GeoJSON`, `TopoJSON` and `Choropleth` (JamesGardiner #428)
1414
- `Map` object now accepts Leaflet global switches (sgvandijk #424)
15+
- Added weight option to CircleMarker (palewire #581)
1516

1617
Bug Fixes
1718

@@ -20,6 +21,7 @@ Bug Fixes
2021
- Fixed MIME type (text/plain) is not executable (talespaiva #440)
2122
- Update Travis-CI testing to incorporate branca and fix notebook tests (ocefpaf #436)
2223
- Removed MultiPolyLine and MultiPolygon, both are handled by PolyLine and PolyLine in leaflet 1.0.* (ocefpaf #554)
24+
- Removed deprecated MapQuest tiles (HashCode55 #562)
2325

2426
0.2.1
2527
~~~~~

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ recursive-include folium *.py
44
recursive-include folium *.js
55
recursive-include folium/plugins *
66
recursive-include folium/templates *
7+
prune examples/

folium/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
TopoJson, WmsTileLayer
1818
)
1919

20-
__version__ = '0.3.0.dev'
20+
__version__ = '0.3.0'
2121

2222
__all__ = [
2323
'CssLink',

folium/features.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def __init__(self, url, name=None, layers=None, styles=None, format=None,
6868
self.format = format if format else 'image/jpeg'
6969
self.transparent = transparent
7070
self.version = version
71-
# FIXME: Should be map CRS!
72-
# self.crs = crs if crs else 'null
7371
self._template = Template(u"""
7472
{% macro script(this, kwargs) %}
7573
var {{this.get_name()}} = L.tileLayer.wms(

folium/plugins/scroll_zoom_toggler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self):
3737
{% macro html(this,kwargs) %}
3838
<img id="{{this.get_name()}}" alt="scroll"
3939
src="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/png/512/arrow-move.png"
40-
style="z-index: 999999"
40+
style="z-index: 999999"
4141
onclick="{{this._parent.get_name()}}.toggleScroll()">
4242
</img>
4343
{% endmacro %}

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
flake8
1+
pycodestyle
22
pytest
33
nbconvert
44
jupyter_client

0 commit comments

Comments
 (0)