forked from ryancox/motionless
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (45 loc) · 1.56 KB
/
setup.py
File metadata and controls
50 lines (45 loc) · 1.56 KB
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
#!/usr/bin/python
from metainfo import __version__
# Distutils version
METADATA = dict(
name = "motionless",
version = __version__,
py_modules = ['setup', 'metainfo', 'motionless', 'gpolyencode'],
author = 'Ryan Cox',
author_email = 'ryan.a.cox@gmail.com',
description = 'An easy way to generate Google Static Map URLs with Python.',
license = 'Apache 2.0 License',
url = 'http://github.com/ryancox/motionless',
keywords = 'google static maps url api georss mapping gpx kml geo gis',
test_suite='tests',
tests_require=[],
)
# Setuptools version
SETUPTOOLS_METADATA = dict(
install_requires = ['setuptools', 'six'],
include_package_data = True,
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Multimedia :: Graphics :: Presentation',
'Topic :: Internet',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
]
)
def Main():
try:
import setuptools
METADATA.update(SETUPTOOLS_METADATA)
setuptools.setup(**METADATA)
except ImportError:
import distutils.core
distutils.core.setup(**METADATA)
if __name__ == '__main__':
Main()