-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
59 lines (47 loc) · 1.64 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from setuptools import setup, find_packages
import codecs
import os.path
import re
def readme():
with open('README.rst') as f:
return f.read()
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return codecs.open(fpath(fname), encoding='utf-8').read()
def grep(attrname):
pattern = r"{0}\W*=\W*'([^']+)'".format(attrname)
strval, = re.findall(pattern, file_text)
return strval
file_text = read(fpath('src/chordparser/__init__.py'))
setup(name='chordparser',
version=grep('__version__'),
description='Parse and analyse chords',
long_description=readme(),
long_description_content_type='text/x-rst',
classifiers=[
"Development Status :: 4 - Beta",
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
"Natural Language :: English",
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Text Processing',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords=(
'chords music parse notation analysis '
'sheet notes scales keys transpose'
),
url='http://github.com/titus-ong/chordparser',
author=grep('__author__'),
author_email=grep('__email__'),
license='MIT',
packages=find_packages(where='src'),
package_dir={'': 'src'},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=[],
include_package_data=True,
zip_safe=False)