Skip to content

Commit

Permalink
Next version released
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewDaws committed Jan 15, 2021
1 parent a4e5e02 commit 398b96a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
14 changes: 7 additions & 7 deletions README.rst
Expand Up @@ -3,7 +3,7 @@
TileMapBase
===========

Uses OpenStreetMap tiles, or other tile servers, to produce "basemaps"
Uses OpenStreetMap tiles, or other tile servers, to produce basemaps
for use with matplotlib. Uses a SQLite database to cache the tiles, so
you can experiment with map production without re-downloading the same
tiles. Supports Open Data tiles from the UK Ordnance Survey.
Expand All @@ -21,19 +21,19 @@ Install

::

pip install tilemapbase
pip install tilemapbase

or build from source:

::

python setup.py install
python setup.py install

or directly from GitHub:

::

pip install https://github.com/MatthewDaws/TileMapBase/zipball/master
pip install https://github.com/MatthewDaws/TileMapBase/zipball/master

Example
-------
Expand All @@ -49,16 +49,16 @@ Example
OpenStreetMap data
------------------

OpenStreetMap Data is "© OpenStreetMap contributors”, see
OpenStreetMap Data is © OpenStreetMap contributors”, see
http://www.openstreetmap.org/copyright

Please remember that tile set usage is subject to constraints:
https://operations.osmfoundation.org/policies/tiles/

- As of 25/05/2019 `OSM requires a user agent for all
requests <https://operations.osmfoundation.org/policies/tiles/>`__,
with a warning "Faking another app’s User-Agent WILL get you
blocked." We hence default to using "TileMapBase" as a user agent.
with a warning Faking another app’s User-Agent WILL get you
blocked. We hence default to using TileMapBase as a user agent.

Ordnance Survery data
---------------------
Expand Down
14 changes: 12 additions & 2 deletions changes
@@ -1,3 +1,9 @@
# 0.4.7

- Stop noisy logging, see https://github.com/MatthewDaws/TileMapBase/issues/13
- Parse the new geoPandas CRS code, see https://github.com/MatthewDaws/TileMapBase/issues/19
- Some error handling around lon/lat, see https://github.com/MatthewDaws/TileMapBase/issues/23

# 0.4.6

- Stop caching invalid responses from remote server: https://github.com/MatthewDaws/TileMapBase/pull/16
Expand All @@ -19,11 +25,15 @@
- Add Extent static constructors from epsg:3857 coords
- Work to allow uploading to PyPi:
- Download and install `pandoc`
- `pip install pyandoc`
- `pip install pypandoc`
- Delete the `dist` directory
- `python setup.py sdist`
- `pip install twine`
- The following assumes ".pypirc" has been written correctly (see https://packaging.python.org/specifications/pypirc/)
- `twine upload --repository pypitest dist/*`
- Test: `pip install --index-url https://test.pypi.org/simple/ tilemapbase`
- If you get an error, maybe I have already uploaded, and then deleted, the same version. Try changing the version by adding letters.
- Test: ``
- More instructions here: https://packaging.python.org/tutorials/packaging-projects/

# 0.4.2

Expand Down
13 changes: 5 additions & 8 deletions setup.py
Expand Up @@ -10,14 +10,11 @@ def find_version():
return line[start+1:][:end]

try:
import pandoc
doc = pandoc.Document()
with open('readme.md', encoding='utf-8') as f:
doc.markdown = f.read().encode("utf-8")
with open("README.rst", "wb") as f:
f.write(doc.rst)
except:
import pypandoc
pypandoc.convert_file("readme.md", "rst", outputfile="README.rst")
except Exception as ex:
print("NOT REFRESHING README.rst")
print("Exception was", ex)

with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
Expand All @@ -27,7 +24,7 @@ def find_version():
packages = ['tilemapbase'],
version = find_version(),
install_requires = ['requests', 'pillow'],
python_requires = '>=3.5',
python_requires = '>=3.6',
description = 'Use OpenStreetMap tiles as basemaps in python / matplotlib',
long_description = long_description,
author = 'Matt Daws',
Expand Down
2 changes: 1 addition & 1 deletion tilemapbase/__init__.py
@@ -1,4 +1,4 @@
__version__ = "0.4.6"
__version__ = "0.4.7"

from .tiles import init, get_cache
from .mapping import project, to_lonlat, Extent, Plotter, extent_from_frame
Expand Down

0 comments on commit 398b96a

Please sign in to comment.