2008-07-15 18:54:24 +05:30
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2008-08-28 00:16:31 +05:30
|
|
|
__author__ = "Abhinav Sarkar <abhinav@abhinavsarkar.net>"
|
2008-09-02 22:06:16 +05:30
|
|
|
__version__ = "0.2"
|
2008-07-15 18:54:24 +05:30
|
|
|
__license__ = "GNU Lesser General Public License"
|
|
|
|
|
|
|
|
METADATA = dict(
|
|
|
|
name='lastfm',
|
2008-09-03 20:13:32 +05:30
|
|
|
version='0.2',
|
2008-07-15 18:54:24 +05:30
|
|
|
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/ .""",
|
2008-07-15 18:54:24 +05:30
|
|
|
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/",
|
2008-07-15 18:54:24 +05:30
|
|
|
packages=['lastfm'],
|
2009-03-05 16:38:53 +05:30
|
|
|
package_data = {'doc':['*.txt', '*.htm', '*.css', '*.js', '*.png']},
|
2008-07-15 18:54:24 +05:30
|
|
|
license="GNU Lesser General Public License",
|
|
|
|
keywords="audioscrobbler webservice api last.fm",
|
|
|
|
)
|
|
|
|
|
|
|
|
SETUPTOOLS_METADATA = dict(
|
2009-03-24 23:07:42 +05:30
|
|
|
install_requires = ['setuptools', 'decorator'],
|
2008-07-15 18:54:24 +05:30
|
|
|
include_package_data = True,
|
2009-03-05 16:38:53 +05:30
|
|
|
tests_require = ['wsgi_intercept'],
|
2008-07-15 18:54:24 +05:30
|
|
|
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',
|
|
|
|
],
|
2008-09-17 01:47:28 +05:30
|
|
|
test_suite = "test",
|
2008-07-15 18:54:24 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
import sys
|
|
|
|
if sys.version < '2.5':
|
2009-03-24 23:07:42 +05:30
|
|
|
SETUPTOOLS_METADATA['install_requires'].append('ElementTree')
|
|
|
|
SETUPTOOLS_METADATA['install_requires'].append('cElementTree')
|
2008-07-15 18:54:24 +05:30
|
|
|
|
|
|
|
def Main():
|
2009-03-24 23:07:42 +05:30
|
|
|
# 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)
|
2008-07-15 18:54:24 +05:30
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2009-03-24 23:07:42 +05:30
|
|
|
Main()
|