-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
64 lines (54 loc) · 1.99 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""see https://setuptools.readthedocs.io/en/latest/setuptools.html."""
from setuptools import setup, find_packages
COPYRIGHT = """
Copyright (c) 2019 Wolfgang Rohdewald <[email protected]>
See LICENSE for details.
"""
def readall(path):
"""explicitly close the file again.
Returns:
The file content
"""
with open(path) as in_file:
return in_file.read()
version_data = readall('gpxity/version.py')
version_line = [x for x in version_data.split('\n') if 'VERSION' in x][0].strip()
version = version_line.split('"')[1]
setup(
name='Gpxity',
version=version,
setup_requires=['setuptools_scm'],
description='A uniform interface to GPX services like mapmytracks or gpsies',
long_description_content_type = 'text/x-rst',
long_description=readall('README.rst') + '\n\n' + readall('CHANGELOG.rst'),
url='https://github.com/wrohdewald/Gpxity',
author='Wolfgang Rohdewald',
author_email='[email protected]',
license='GPLv2',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Communications',
'Topic :: Internet :: WWW/HTTP',
],
packages=find_packages(),
install_requires=['requests', 'gpxpy>=1.2.0', 'lxml', 'geocoder>=1.38'],
scripts=['bin/gpxdo', 'bin/gpxity_server'],
test_suite='gpxity.backends.test',
package_data={
'gpxity.backends.test': ['*.gpx', 'test_auth_cfg'],
},
extras_require={
'WPTrackserver': ['mysqlclient'],
'develop': ['coverage', 'pytest', 'aiosmtpd'],
'doc': ['sphinx', 'sphinx-autodoc-annotation', 'sphinx-argparse']
}
)