Skip to content

Commit 91a49cd

Browse files
committed
Merge remote-tracking branch 'remotes/upstream/master' into python-2-deprecation
2 parents 218346b + ca745ef commit 91a49cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1568
-454
lines changed

.github/CONTRIBUTING.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,18 @@ First of all, thanks for your interest in contributing!
5858
git checkout -b name-of-your-branch
5959
```
6060
4. Make change to your local copy of the folium repository
61-
5. Commit those changes
61+
5. Make sure the tests pass:
62+
* in the repository folder do `pip install -e .` (needed for notebook tests)
63+
* along with all the dependencies install `phantomjs` via `npm install -g phantomjs` or by downloading it from [here](http://phantomjs.org/download.html) and installing manually
64+
* run `python -m pytest tests`
65+
* resolve all errors
66+
6. Commit those changes
6267
```
6368
git add file1 file2 file3
6469
git commit -m 'a descriptive commit message'
6570
```
66-
6. Push your updated branch to your fork
71+
7. Push your updated branch to your fork
6772
```
6873
git push origin name-of-your-branch
6974
```
70-
7. [Open a pull request](https://help.github.com/articles/creating-a-pull-request/) to the python-visualization/folium
75+
8. [Open a pull request](https://help.github.com/articles/creating-a-pull-request/) to the python-visualization/folium

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.egg-info/
2+
*.pyc
3+
.ipynb_checkpoints
4+
.pytest_cache
5+
build/
6+
dist/
7+
docs/_build/
8+
docs/quickstart.ipynb
9+
examples/results/*
10+
.cache/
11+
.idea/
12+
/*.xml
13+
/codestyles/*.xml
14+
/_mac/*.xml
15+
/inspection/*.xml

.travis.yml

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
language: python
1+
language: minimal
22

33
sudo: false
44

@@ -9,33 +9,32 @@ env:
99
matrix:
1010
fast_finish: true
1111
include:
12-
- python: 2.7
13-
env: TEST_TARGET=default
14-
- python: 3.6
15-
env: TEST_TARGET=default
16-
- python: 3.6
17-
env: TEST_TARGET=notebooks
18-
- python: 3.6
19-
env: TEST_TARGET=latest_branca
20-
- python: 3.6
21-
env: TEST_TARGET=docs
12+
- name: default-python2
13+
env: TEST_TARGET=default PY=2.7
14+
- name: default
15+
env: TEST_TARGET=default PY=3.7
16+
- name: notebooks
17+
env: TEST_TARGET=notebooks PY=3.7
18+
- name: latest_branca
19+
env: TEST_TARGET=latest_branca PY=3.7
20+
- name: docs
21+
env: TEST_TARGET=docs PY=3.7
2222
allow_failures:
23-
- python: 2.7
24-
env: TEST_TARGET=latest_branca
25-
- python: 3.6
26-
env: TEST_TARGET=latest_branca
23+
- name: latest_branca
24+
env: TEST_TARGET=latest_branca PY=3.7
2725

2826
before_install:
2927
- wget http://bit.ly/miniconda -O miniconda.sh
3028
- bash miniconda.sh -b -p $HOME/miniconda
3129
- export PATH="$HOME/miniconda/bin:$PATH"
3230
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
3331
- conda update conda
32+
- conda config --remove channels defaults --force
3433
- conda config --add channels conda-forge --force
35-
- conda create --name TEST python=$TRAVIS_PYTHON_VERSION phantomjs --file requirements.txt --file requirements-dev.txt
34+
- conda create --name TEST python=$PY phantomjs --file requirements.txt --file requirements-dev.txt
3635
- source activate TEST
3736

38-
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
37+
- if [[ "$PY" == "2.7" ]]; then
3938
conda install mock ;
4039
fi
4140

@@ -49,18 +48,18 @@ script:
4948
fi
5049

5150
- if [[ $TEST_TARGET == 'default' ]]; then
52-
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
51+
pytest -vv --ignore=tests/notebooks/test_notebooks.py ;
5352
fi
5453

5554
- if [[ $TEST_TARGET == 'latest_branca' ]]; then
5655
conda uninstall branca ;
5756
pip install git+https://github.com/python-visualization/branca.git ;
58-
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
57+
pytest -vv --ignore=tests/notebooks/test_notebooks.py ;
5958
fi
6059

6160
- if [[ $TEST_TARGET == 'notebooks' ]]; then
6261
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,I100 --max-line-length=100 --show-source ; done ;
63-
py.test -vv tests/notebooks/test_notebooks.py ;
62+
pytest -vv tests/notebooks/test_notebooks.py ;
6463
fi
6564

6665
- if [[ $TEST_TARGET == 'docs' ]]; then
@@ -77,3 +76,17 @@ script:
7776
doctr:
7877
require-master: true
7978
sync: False
79+
80+
deploy:
81+
skip_cleanup: true
82+
provider: pypi
83+
user: ocefpaf
84+
password:
85+
secure: "BdJc76Z+DnmmamZSX+QCGZDnf+FW/JQOnVZ2t59r2r2RM4860Wf6GSL/Ncw6v8G3sOghWQcMzFdY5e6aNzAW0Ddm2YKHAsfxgurbEsnlzwsNPBWv2280ca7TtlFk2JkqhtYQOkoBFbA8+e/lC8ZC6aAVffQAT1NE4lEs0/Jd+TA="
86+
distributions: sdist bdist_wheel
87+
upload_docs: no
88+
on:
89+
repo: python-visualization/folium
90+
tags: true
91+
all_branches: master
92+
condition: '$TEST_TARGET == "default"'

CHANGES.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
0.7.0
2+
~~~~~
3+
4+
- Update leaflet to 1.3.4 (ocefpaf #939)
5+
- More options (tms, opacity, kwargs) in TileLayer (mpickering #948)
6+
- Add MousePosition plugin (btozer #916)
7+
- Add Minimap plugin (talbertc-usgs #968)
8+
- Replace Rawgit CDN with Githack (jtbaker #1002)
9+
- Handling of NaN and missing values in choropleth (FloChehab #1005)
10+
11+
API changes
12+
13+
- `threshold_scale` argument of choropleth is replaced by `bins` (FloChehab #1005)
14+
15+
Bug Fixes
16+
17+
- Fix wrong default value for fmt argument of WmsTileLayer (conengmo #950)
18+
- Fix icon_create_function argument in MarkerCluster (conengmo #954)
19+
- Update stylesheet url in TimestampedGeoJson (frodebjerke #963)
20+
- Use Javascript template literals in Tooltip and Popup (jtbaker #955 #962)
21+
- Proper scaling on mobile phones (conengmo #992)
22+
123
0.6.0
224
~~~~~
325

@@ -18,6 +40,10 @@
1840
- Ingest any object that __geo_interface__ (ocefpaf #880)
1941
- Added `FeatureGroupSubGroup` plugin (shtrom #875)
2042
- Added `duration` option to `TimestampedGeoJson` (andy23512 #894)
43+
- Added `zoom_control` to `Map` to toggle zoom controls as per enhancement (#795) (okomarov #899)
44+
- Change default `date_options` in TimestampedGeoJson (andy23512 #914)
45+
- Added gradient argument to HeatMapWithTime (jtbaker #925)
46+
- Added `Tooltip` and `GeoJsonTooltip` classes (jtbaker #883)
2147

2248
API changes
2349

@@ -34,6 +60,7 @@ Bug Fixes
3460
- Fix disappearing layer control when using FastMarkerCluster (conengmo #866)
3561
- Host heatmap.js to circumvent adblockers (conengmo #886)
3662
- Fix permission error in Map._to_png() due to tempfile (conengmo #887)
63+
- Replace strftime use in TimesliderChoropleth example (conengmo #919)
3764

3865
0.5.0
3966
~~~~~

README.rst

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
.. image:: https://badge.fury.io/py/folium.png
2-
:target: http://badge.fury.io/py/folium
3-
.. image:: https://api.travis-ci.org/python-visualization/folium.png?branch=master
4-
:target: https://travis-ci.org/python-visualization/folium
5-
.. image:: https://badges.gitter.im/Join%20Chat.svg
6-
:target: https://gitter.im/python-visualization/folium?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
7-
.. image:: https://zenodo.org/badge/18669/python-visualization/folium.svg
1+
|PyPI| |Travis| |Gitter| |DOI|
2+
3+
.. |PyPI| image:: https://img.shields.io/pypi/v/folium.svg
4+
:target: https://pypi.python.org/pypi/folium/
5+
:alt: PyPI Package
6+
7+
.. |Travis| image:: https://travis-ci.org/python-visualization/folium.svg?branch=master
8+
:target: https://travis-ci.org/python-visualization/folium
9+
:alt: Travis Build Status
10+
11+
.. |Gitter| image:: https://badges.gitter.im/python-visualization/folium.svg
12+
:target: https://gitter.im/python-visualization/folium
13+
:alt: Gitter
14+
15+
.. |DOI| image:: https://zenodo.org/badge/18669/python-visualization/folium.svg
816
:target: https://zenodo.org/badge/latestdoi/18669/python-visualization/folium
17+
:alt: DOI
918

1019
folium
1120
======
@@ -35,23 +44,28 @@ or
3544
Documentation
3645
-------------
3746

38-
http://python-visualization.github.io/folium/docs-v0.5.0/
47+
https://python-visualization.github.io/folium/docs-v0.6.0/
3948

4049
The documentation for the development version can be found here:
41-
http://python-visualization.github.io/folium/docs-master/
42-
43-
Note that the documentation on Read the Docs is for the deprecated version
44-
0.2.0.
50+
https://python-visualization.github.io/folium/docs-master/
4551

4652
Gallery
4753
-------
4854

4955
There are two galleries of Jupyter notebooks with examples, which you can see
5056
using Jupyter's nbviewer:
5157

52-
http://nbviewer.jupyter.org/github/python-visualization/folium/tree/master/examples/
58+
https://nbviewer.jupyter.org/github/python-visualization/folium/tree/master/examples/
5359

5460
https://nbviewer.jupyter.org/github/python-visualization/folium_contrib/tree/master/notebooks/
5561

62+
Contributing
63+
------------
64+
65+
We love contributions! folium is open source, built on open source,
66+
and we'd love to have you hang out in our community.
67+
68+
See `our complete contributor's guide <https://github.com/python-visualization/folium/blob/master/.github/CONTRIBUTING.md>`_ for more info.
69+
5670

5771
.. |folium| image:: http://python-visualization.github.io/folium/docs-master/_images/folium_logo.jpg

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys, os
14+
import sys
15+
import os
16+
17+
# Use the currently checked out folium of this folder
18+
sys.path.insert(0, os.path.abspath(os.pardir))
1519

1620
# If extensions (or modules to document with autodoc) are in another directory,
1721
# add these directories to sys.path here. If the directory is relative to the

examples/Features.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@
202202
}
203203
],
204204
"source": [
205-
"from altair import Chart, load_dataset\n",
205+
"\n",
206+
"try: \n",
207+
" from altair import Chart, load_dataset\n",
208+
"except TypeError:\n",
209+
" print('Try updating your python version to 3.5.3 or above')\n",
206210
"\n",
207211
"# load built-in dataset as a pandas DataFrame\n",
208212
"cars = load_dataset('cars')\n",

examples/GeoJSON_and_choropleth.ipynb

Lines changed: 101 additions & 31 deletions
Large diffs are not rendered by default.

examples/Geopandas and geo_interface.ipynb

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

examples/HeatMapWithTime.ipynb

Lines changed: 18 additions & 6 deletions
Large diffs are not rendered by default.

examples/Highlight_Function.ipynb

Lines changed: 14 additions & 19 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)