annotate musixmatch-master/setup.py @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents 8c29444cb5fd
children
rev   line source
yading@7 1 from setuptools import setup
yading@7 2 import sys
yading@7 3 import os
yading@7 4
yading@7 5 wd = os.path.dirname(os.path.abspath(__file__))
yading@7 6 os.chdir(wd)
yading@7 7 sys.path.insert(1, wd)
yading@7 8
yading@7 9 name = 'musixmatch'
yading@7 10 pkg = __import__(name)
yading@7 11 author, email = pkg.__author__.rsplit(' ', 1)
yading@7 12
yading@7 13 with open(os.path.join(wd, 'README.rst'),'r') as readme:
yading@7 14 long_description = readme.read()
yading@7 15
yading@7 16 url = 'http://projects.monkeython.com/musixmatch',
yading@7 17 egg = {
yading@7 18 'name': name,
yading@7 19 'version': pkg.__version__,
yading@7 20 'author': author,
yading@7 21 'author_email': email.strip('<>'),
yading@7 22 'url': url,
yading@7 23 'description': "Package to interface with the Musixmatch API",
yading@7 24 'long_description': long_description,
yading@7 25 'download_url': '%s/dists' % url,
yading@7 26 'classifiers': pkg.__classifiers__,
yading@7 27 'packages': [name],
yading@7 28 'include_package_data': True,
yading@7 29 'exclude_package_data': {name: ["*.rst", "docs", "tests"]},
yading@7 30 'test_suite': 'tests.suite'}
yading@7 31
yading@7 32 if __name__ == '__main__':
yading@7 33 setup(**egg)