forked from ryancox/motionless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (40 loc) · 1.21 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
#!/usr/bin/python
import sys, os
__author__ = 'Ryan Cox <[email protected]>'
__version__ = '1.1'
# Distutils version
METADATA = dict(
name = "motionless",
version = __version__,
py_modules = ['setup', 'motionless'],
author = 'Ryan Cox',
author_email = '[email protected]',
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',
)
# Setuptools version
SETUPTOOLS_METADATA = dict(
install_requires = ['setuptools'],
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',
]
)
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()