forked from apacha/OMR-Datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
81 lines (67 loc) · 2.99 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
78
79
80
81
from distutils.core import setup
import io
import logging
import os
from setuptools import find_packages
import omrdatasettools
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_omrdatasettools.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='omrdatasettools',
packages=find_packages('.'),
version=omrdatasettools.__version__,
description='A collection of tools that simplify the downloading and handling of datasets used for Optical Music Recognition (OMR).',
long_description=get_long_description(),
long_description_content_type="text/markdown",
author='Alexander Pacha',
author_email='[email protected]',
license='MIT',
url='https://github.com/apacha/omr-datasets', # use the URL to the github repo
download_url='https://github.com/apacha/OMR-Datasets/archive/{0}.tar.gz'.format(
omrdatasettools.__version__),
keywords=['optical music recognition', 'downloading', 'extracting', 'omr', 'generating',
'dataset', 'preprocessing'],
install_requires=['Pillow', 'muscima', "mung", "numpy", "tqdm", "scikit-image"],
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Multimedia :: Graphics',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
)