musixmatch-master/setup.py
Go to the documentation of this file.
1 from setuptools import setup
2 import sys
3 import os
4 
5 wd = os.path.dirname(os.path.abspath(__file__))
6 os.chdir(wd)
7 sys.path.insert(1, wd)
8 
9 name = 'musixmatch'
10 pkg = __import__(name)
11 author, email = pkg.__author__.rsplit(' ', 1)
12 
13 with open(os.path.join(wd, 'README.rst'),'r') as readme:
14  long_description = readme.read()
15 
16 url = 'http://projects.monkeython.com/musixmatch',
17 egg = {
18  'name': name,
19  'version': pkg.__version__,
20  'author': author,
21  'author_email': email.strip('<>'),
22  'url': url,
23  'description': "Package to interface with the Musixmatch API",
24  'long_description': long_description,
25  'download_url': '%s/dists' % url,
26  'classifiers': pkg.__classifiers__,
27  'packages': [name],
28  'include_package_data': True,
29  'exclude_package_data': {name: ["*.rst", "docs", "tests"]},
30  'test_suite': 'tests.suite'}
31 
32 if __name__ == '__main__':
33  setup(**egg)