-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
setup.py
78 lines (70 loc) · 2.21 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
"""Setup script."""
from pathlib import Path
from setuptools import find_packages, setup
def _get_long_description():
with open(str(Path(__file__).parent / "README.md"), "r") as f:
return f.read()
def _get_version():
with open(str(Path(__file__).parent / "muspy/version.py"), "r") as f:
for line in f:
if line.startswith("__version__"):
delimeter = '"' if '"' in line else "'"
return line.split(delimeter)[1]
raise RuntimeError("Cannot read version string.")
VERSION = _get_version()
setup(
name="muspy",
version=VERSION,
author="Hao-Wen Dong",
author_email="[email protected]",
description="A toolkit for symbolic music generation",
long_description=_get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/salu133445/muspy",
download_url=(
f"https://github.com/salu133445/muspy/archive/v{VERSION}.tar.gz"
),
project_urls={"Documentation": "https://salu133445.github.io/muspy/"},
license="MIT",
keywords=[
"music",
"audio",
"music-generation",
"music-information-retrieval",
],
packages=find_packages(include=["muspy", "muspy.*"], exclude=["tests"]),
install_requires=[
"PyYAML>=3.0",
"bidict>=0.21",
"joblib>=0.15",
"matplotlib>=1.5",
"miditoolkit>=0.1",
"mido>=1.0",
"music21>=6.0",
"pretty-midi>=0.2",
"pypianoroll>=1.0",
"requests>=2.0",
"tqdm>=4.0",
],
extras_require={
"dev": [
"black>=19.0",
"flake8-docstrings>=1.5",
"flake8>=3.8",
"mypy>=0.900",
"pylint>=2.5",
"sphinx-rtd-theme>=0.5",
"sphinx>=3.0",
],
"optional": ["tensorflow>=2.0", "torch>=1.0"],
"schema": ["jsonschema>=3.0", "xmlschema>=1.0", "yamale>=2.0"],
"test": ["pytest>=6.0", "pytest-cov>=2.0"],
},
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Multimedia :: Sound/Audio",
],
python_requires=">=3.6",
)