Skip to content

Commit a445e0d

Browse files
committed
Merge branch 'release/1.0.1'
2 parents 47b6471 + 02ef4d9 commit a445e0d

31 files changed

+97
-100
lines changed

.github/workflows/pythonapp.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ jobs:
1111
with:
1212
python-version: 3.x
1313
- name: Install dependencies
14-
run: |
15-
python3 -m pip install --upgrade pip virtualenv wheel setuptools
16-
- name: Lint with pycodestyle
17-
run: |
18-
python3 -m pip install flake8
19-
python3 -m flake8 . --count --ignore=E125,E126,E127,E128,E402,E741,E731,W503,F401,W504,F841 --show-source --statistics --max-line-length=80 --exclude=__pycache__,.tox,.git/,doc/
14+
run: python3 -m pip install tox>=2.0
15+
- name: Linting
16+
run: python3 -m tox -e pep8
2017

2118
linux_test:
2219
runs-on: ubuntu-18.04
@@ -58,8 +55,7 @@ jobs:
5855
draft: true
5956
- name: Test with pytest
6057
run: |
61-
flower_name=$(python3 -c "print('$GITHUB_REPOSITORY'.split('/')[-1])")
62-
python3 -m pytest --cov=kivy_garden.$flower_name --cov-report term --cov-branch
58+
python3 -m pytest --cov=kivy_garden.mapview --cov-report term --cov-branch tests/
6359
6460
windows_test:
6561
runs-on: windows-latest
@@ -79,8 +75,7 @@ jobs:
7975
run: python -m pip install -e .[dev,ci] --extra-index-url https://kivy-garden.github.io/simple/
8076
- name: Test with pytest
8177
run: |
82-
$flower_name=(python -c "print('$GITHUB_REPOSITORY'.split('/')[-1])")
83-
python -m pytest --cov=kivy_garden.$flower_name --cov-report term --cov-branch
78+
python -m pytest --cov=kivy_garden.mapview --cov-report term --cov-branch tests/
8479
8580
docs:
8681
runs-on: ubuntu-18.04
@@ -112,7 +107,6 @@ jobs:
112107
env:
113108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114109
run: |
115-
flower_name=$(python3 -c "print('$GITHUB_REPOSITORY'.split('/')[-1])")
116110
cp -r doc/build/html ~/docs_temp
117111
118112
git config --global user.email "[email protected]"
@@ -123,9 +117,9 @@ jobs:
123117
git checkout --orphan gh-pages
124118
cp -r .git ~/docs_git
125119
cd ..
126-
rm -rf $flower_name
127-
mkdir $flower_name
128-
cd $flower_name
120+
rm -rf mapview
121+
mkdir mapview
122+
cd mapview
129123
cp -r ~/docs_git .git
130124
cp -r ~/docs_temp/* .
131125
touch .nojekyll

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@ install:
1111

1212
script:
1313
- docker run -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix mapview-linux /bin/sh -c 'tox'
14+
15+
# Deploy to PyPI using token set in `PYPI_PASSWORD` environment variable
16+
# https://pypi.org/manage/account/token/
17+
# https://travis-ci.com/github/kivy-garden/mapview/settings
18+
deploy:
19+
provider: pypi
20+
distributions: sdist bdist_wheel
21+
user: "__token__"
22+
on:
23+
tags: true
24+
repo: kivy-garden/mapview

CHANGELOG

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
## [1.0.1]
4+
5+
- Migrate to kivy-garden/mapview
6+
7+
## [1.0.0]
8+
9+
- Initial release

LICENSE

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Mapview
22

33
[![Github Build Status](https://github.com/kivy-garden/mapview/workflows/Garden%20flower/badge.svg)](https://github.com/kivy-garden/mapview/actions)
4-
[![Build Status](https://travis-ci.com/kivy-garden/garden.mapview.svg?branch=master)](https://travis-ci.com/kivy-garden/garden.mapview)
4+
[![Build Status](https://travis-ci.com/kivy-garden/mapview.svg?branch=develop)](https://travis-ci.com/kivy-garden/mapview)
55

66
Mapview is a Kivy widget for displaying interactive maps. It has been
77
designed with lot of inspirations of
@@ -42,10 +42,8 @@ otherwise you'll have an issue when importing `urllib3` from `requests`.
4242

4343
# Install
4444

45-
Install the mapview garden module using the `garden` tool:
46-
4745
```
48-
garden install mapview
46+
pip install mapview
4947
```
5048

5149
# Usage
@@ -54,7 +52,7 @@ This widget can be either used within Python or Kv. That's said, not
5452
everything can be done in Kv, to prevent too much computing.
5553

5654
```python
57-
from kivy.garden.mapview import MapView
55+
from kivy_garden.mapview import MapView
5856
from kivy.app import App
5957

6058
class MapViewApp(App):

__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/clustered_geojson.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
from os import path
66
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
77

8-
from mapview import MapView, MapMarker
9-
from mapview.geojson import GeoJsonMapLayer
10-
from mapview.clustered_marker_layer import ClusteredMarkerLayer
11-
from mapview.utils import haversine, get_zoom_for_radius
8+
from kivy_garden.mapview import MapView, MapMarker
9+
from kivy_garden.mapview.geojson import GeoJsonMapLayer
10+
from kivy_garden.mapview.clustered_marker_layer import ClusteredMarkerLayer
11+
from kivy_garden.mapview.utils import haversine, get_zoom_for_radius
1212

1313
source = sys.argv[1]
1414

examples/map_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
77

88
root = Builder.load_string("""
9-
#:import MapSource mapview.MapSource
9+
#:import MapSource kivy_garden.mapview.MapSource
1010
1111
<Toolbar@BoxLayout>:
1212
size_hint_y: None

examples/map_with_marker_popup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
from os import path
77
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
88

9-
import mapview
109

1110
root = Builder.load_string("""
1211
#:import sys sys
13-
#:import MapSource mapview.MapSource
12+
#:import MapSource kivy_garden.mapview.MapSource
1413
MapView:
1514
lat: 50.6394
1615
lon: 3.057

0 commit comments

Comments
 (0)