-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·81 lines (67 loc) · 2.37 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
81
#!/usr/bin/env python
"""
Setup script for gpsdio-bigquery-schema
"""
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_bigquery_schema', '__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 CLI plugin for `gpsdio` that produces a schema file for BigQuery to be used together with CSV output from gpsdio-csv for exporting data into Google's BigQuery.",
entry_points='''
[gpsdio.gpsdio_plugins]
bigquery_schema=gpsdio_bigquery_schema.core:gpsdio_bigquery_schema
''',
extras_require={
'test': ['pytest', 'pytest-cov']
},
include_package_data=True,
install_requires=[
'click>=3.0',
'gpsdio>=0.0.2',
'msgpack-python>=0.4.6'
],
keywords='AIS GIS remote sensing BigQuery',
license=license,
long_description=readme,
name='gpsdio-bigquery-schema',
packages=['gpsdio_bigquery_schema'],
url=source,
version=version,
zip_safe=True
)
setup(**setup_args)