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 19:13:39 +05:30
|
|
|
package_dir = {'lastfm':'src'},
|
2008-07-15 18:54:24 +05:30
|
|
|
packages=['lastfm'],
|
|
|
|
license="GNU Lesser General Public License",
|
|
|
|
keywords="audioscrobbler webservice api last.fm",
|
|
|
|
)
|
|
|
|
|
|
|
|
SETUPTOOLS_METADATA = dict(
|
2008-08-28 12:41:05 +05:30
|
|
|
install_requires = ['setuptools'],
|
2008-07-15 18:54:24 +05:30
|
|
|
include_package_data = True,
|
|
|
|
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',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
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()
|