forked from pygeobuf/pygeobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (42 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from codecs import open as codecs_open
import distutils.log
import os.path
import shutil
from setuptools import setup, find_packages
import subprocess
# Try to convert README markdown to restructured text using pandoc.
try:
subprocess.call(
'pandoc --from=markdown --to=rst --output=README README.md',
shell=True)
assert os.path.exists('README')
except:
distutils.log.warn(
"Conversion of README.md to restructured text was not successful.")
shutil.copy('README.md', 'README')
# Get the long description from the relevant file
with codecs_open('README', encoding='utf-8') as f:
long_description = f.read()
setup(name='geobuf',
version='1.1.0',
description=(
u"Geobuf is a compact binary geospatial format for lossless "
u"compression of GeoJSON and TopoJSON data."),
long_description=long_description,
classifiers=[],
keywords='data gis geojson topojson protobuf',
author=u"Vladimir Agafonkin",
author_email='[email protected]',
url='https://github.com/mapbox/pygeobuf',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=['click', 'protobuf', 'six'],
extras_require={
'test': ['pytest'],
},
entry_points="""
[console_scripts]
geobuf=geobuf.scripts.cli:cli
""")