Skip to content

Commit

Permalink
Prepared for publishing into PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
Zverik committed Jun 8, 2017
1 parent 0484157 commit 21cbd9e
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build/
__pycache__/
*.pyc
dist/
*.egg*
12 changes: 0 additions & 12 deletions README.md

This file was deleted.

21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
PolyTiles
=========

A script to get tiles from mapnik. Area can be defined by bbox, polygon
or an OSM polygon; tiles can be served in image files or mbtiles. Run
the script without parameters to see command line help.

Requirements
------------

Mapnik and ``python-shapely`` package. Optional dependencies are
``python-psycopg2`` and ``sqlite3``.

Author and license
------------------

Written by Ilya Zverev, based on `generate\_tiles\_multiprocess.py`_,
licensed WTFPL.

.. _generate\_tiles\_multiprocess.py: http://svn.openstreetmap.org/applications/rendering/mapnik/generate_tiles_multiprocess.py

1 change: 1 addition & 0 deletions polytiles/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .polytiles import main
File renamed without changes.
38 changes: 38 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
from setuptools import setup
from os import path

try:
import mapnik
except ImportError:
raise ImportError('Mapnik library and its python bindings are required to install Polytiles.')

here = path.abspath(path.dirname(__file__))

setup(
name='polytiles',
version='1.0.0',
author='Ilya Zverev',
author_email='ilya@zverev.info',
packages=['polytiles'],
install_requires=[
'mapnik',
'shapely',
],
url='https://github.com/zverik/polytiles',
license='WTFPL',
description='A script to render tiles for an area with mapnik',
long_description=open(path.join(here, 'README.rst')).read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Utilities',
'License :: Public Domain',
'Programming Language :: Python :: 2',
],
entry_points={
'console_scripts': ['polytiles = polytiles:main']
},
)

0 comments on commit 21cbd9e

Please sign in to comment.