/
setup.py
57 lines (51 loc) · 1.83 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
#!/usr/bin/env python
__author__ = "Abhinav Sarkar <abhinav@abhinavsarkar.net>"
__version__ = "0.2"
__license__ = "GNU Lesser General Public License"
METADATA = dict(
name='lastfm',
version='0.2',
description="a pure python interface to the Last.fm Webservices API",
long_description="""a pure python interface to the Last.fm Webservices API version 2.0,
located at http://ws.audioscrobbler.com/2.0/ .""",
author="Abhinav Sarkar",
author_email="abhinav.sarkar@gmail.com",
maintainer="Abhinav Sarkar",
maintainer_email="abhinav.sarkar@gmail.com",
url="http://python-lastfm.googlecode.com/svn/trunk/dist/",
packages=['lastfm'],
package_data = {'doc':['*.txt', '*.htm', '*.css', '*.js', '*.png']},
license="GNU Lesser General Public License",
keywords="audioscrobbler webservice api last.fm",
)
SETUPTOOLS_METADATA = dict(
install_requires = ['setuptools', 'decorator'],
include_package_data = True,
tests_require = ['wsgi_intercept'],
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Internet',
],
test_suite = "test",
)
import sys
if sys.version < '2.5':
SETUPTOOLS_METADATA['install_requires'].append('ElementTree')
SETUPTOOLS_METADATA['install_requires'].append('cElementTree')
def Main():
# Use setuptools if available, otherwise fallback and use distutils
try:
import setuptools
METADATA.update(SETUPTOOLS_METADATA)
setuptools.setup(**METADATA)
except ImportError:
import distutils.core
distutils.core.setup(**METADATA)
if __name__ == '__main__':
Main()