forked from supriya-project/supriya
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
96 lines (82 loc) · 2.46 KB
/
setup.py
File metadata and controls
96 lines (82 loc) · 2.46 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/usr/bin/env python
import pathlib
import sys
from distutils.version import LooseVersion
import setuptools
package_name = "supriya"
def read_version():
root_path = pathlib.Path(__file__).parent
version_path = root_path / package_name / "_version.py"
with version_path.open() as file_pointer:
file_contents = file_pointer.read()
local_dict = {}
exec(file_contents, None, local_dict)
return local_dict["__version__"]
version = read_version()
install_requires = ["PyYAML", "appdirs", "sly", "tqdm", "uqbar >= 0.4.5"]
if LooseVersion(sys.version.split()[0]) < LooseVersion("3.7.0"):
install_requires.append("dataclasses")
extras_require = {
"cython": ["cython"],
"ipython": [
"jupyter",
"jupyter_contrib_nbextensions",
"jupyter_nbextensions_configurator",
"rise",
],
"wavefile": ["wavefile"],
"test": [
"black",
"flake8",
"isort",
"mypy >= 0.720",
"pytest >= 5.4.0",
"pytest-asyncio >= 0.14.0",
"pytest-cov >= 2.10.0",
"pytest-helpers-namespace >= 2019.1.8",
"pytest-mock",
"pytest-rerunfailures >= 9.0",
"pytest-timeout >= 1.4.0",
],
}
with open("README.rst", "r") as file_pointer:
long_description = file_pointer.read()
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Artistic Software",
"Topic :: Multimedia :: Sound/Audio :: Sound Synthesis",
]
keywords = [
"audio",
"dsp",
"music composition",
"scsynth",
"supercollider",
"synthesis",
]
if __name__ == "__main__":
setuptools.setup(
author="Josiah Wolf Oberholtzer",
author_email="josiah.oberholtzer@gmail.com",
classifiers=classifiers,
description="A Python API for SuperCollider",
extras_require=extras_require,
include_package_data=True,
install_requires=install_requires,
keywords=keywords,
license="MIT",
long_description=long_description,
name=package_name,
packages=[package_name],
url=f"https://github.com/josiah-wolf-oberholtzer/{package_name}",
version=version,
zip_safe=False,
)