-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·72 lines (62 loc) · 1.98 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
"""
Setup script for fio-buffer
"""
import os
from setuptools import setup
from setuptools import find_packages
with open('README.rst') as f:
readme = f.read().strip()
version = None
author = None
email = None
source = None
with open(os.path.join('fio_buffer', '__init__.py')) as f:
for line in f:
if line.strip().startswith('__version__'):
version = line.split('=')[1].strip().replace('"', '').replace("'", '')
elif line.strip().startswith('__author__'):
author = line.split('=')[1].strip().replace('"', '').replace("'", '')
elif line.strip().startswith('__email__'):
email = line.split('=')[1].strip().replace('"', '').replace("'", '')
elif line.strip().startswith('__source__'):
source = line.split('=')[1].strip().replace('"', '').replace("'", '')
elif None not in (version, author, email, source):
break
setup(
author=author,
author_email=email,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering :: GIS'
],
description="A Fiona CLI plugin for buffering geometries.",
entry_points="""
[fiona.fio_plugins]
buffer=fio_buffer.core:buffer
""",
extras_require={
'dev': ['pytest', 'pytest-cov']
},
include_package_data=True,
install_requires=[
'click>=0.3',
'shapely',
'fiona>=1.6'
],
keywords='Fiona fio GIS vector buffer plugin',
license="New BSD",
long_description=readme,
name='fio-buffer',
packages=find_packages(),
url=source,
version=version,
zip_safe=True
)