python-lastfm/setup.py

58 lines
1.8 KiB
Python
Raw Permalink Normal View History

#!/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",
2008-08-28 13:09:18 +05:30
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",
2008-08-28 12:41:05 +05:30
url="http://python-lastfm.googlecode.com/svn/trunk/dist/",
packages=['lastfm'],
2009-03-05 16:38:53 +05:30
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,
2009-03-05 16:38:53 +05:30
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()