-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
77 lines (68 loc) · 2.7 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from setuptools import setup
import io
import logging
import os
import mung
here = os.path.abspath(os.path.dirname(__file__))
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
def get_long_description():
readme = os.path.join(here, 'README.md')
changes = os.path.join(here, 'CHANGES.md')
if os.path.isfile(readme) and os.path.isfile(changes):
long_description = read(readme, changes)
else:
logging.warning(
'Could not find README.md and CHANGES.md file'
' in directory {0}. Contents:'
' {1}'.format(here, os.listdir(here))
)
long_description = 'Tools for the Music Notation Graph representation of' \
' music notation, used primarily for optical music' \
' recognition. The MUSCIMA++ dataset uses this data' \
' model. Supports export to MIDI. [README.md and' \
' CHANGES.md not found]'
return long_description
setup(
name='mung',
version=mung.__version__,
url='https://mung.readthedocs.io',
license='MIT Software License',
author='Jan Hajič jr. and Alexander Pacha',
install_requires=['numpy', 'lxml', 'scikit-image'],
author_email='alexander.pacha@tuwien.ac.at',
description='Tools for the Music Notation Graph representation of music notation, used primarily for optical '
'music recognition.',
long_description=get_long_description(),
long_description_content_type="text/markdown",
packages=['mung', 'mung2midi'],
include_package_data=True,
scripts=['scripts/add_staff_relationships.py',
'scripts/add_staffline_symbols.py',
'scripts/analyze_agreement.py',
'scripts/analyze_annotations.py',
'scripts/analyze_tracking_log.py',
'scripts/baseline_process_symbols.py',
'scripts/get_images_from_muscima.py',
'scripts/infer_pitches.py',
'scripts/strip_staffline_symbols.py',
],
platforms='any',
test_suite='test.test_mung',
classifiers=[
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Environment :: Web Environment',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
],
)