-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·80 lines (66 loc) · 2.19 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
73
74
75
76
77
78
79
80
#!/usr/bin/env python
"""
Setup script for gpsdio-xz
"""
import os
from setuptools import setup
with open('README.rst') as f:
readme = f.read().strip()
with open('LICENSE.txt') as f:
license = f.read().strip()
version = None
author = None
email = None
source = None
with open(os.path.join('gpsdio_xz', '__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_args = dict(
author=author,
author_email=email,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'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 :: Communications',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Utilities',
],
description="A compression driver plugin for gpsdio that reads and writes messages compressed with xz / lzma.",
entry_points='''
[gpsdio.gpsdio_plugins]
csv=gpsdio_xz.core:gpsdio_xz
''',
extras_require={
'test': ['pytest', 'pytest-cov']
},
include_package_data=True,
install_requires=[
'gpsdio>=0.0.2',
'pyliblzma>=0.5.3'
],
keywords='AIS GIS remote sensing xz lzma',
license=license,
long_description=readme,
name='gpsdio-xz',
packages=['gpsdio_xz'],
url=source,
version=version,
zip_safe=True
)
setup(**setup_args)