-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (68 loc) · 2.3 KB
/
setup.py
File metadata and controls
76 lines (68 loc) · 2.3 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
import setuptools
# https://packaging.python.org/guides/single-sourcing-package-version/
import codecs
import os.path
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
version = get_version("src/aleatora/__init__.py")
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# Dependencies for optional features
speech = ["gtts", "streamp3~=0.1.7"]
foxdot = ["FoxDotPatterns~=0.1.0"]
plugins = ["popsicle~=0.0.10"]
soundfont = ["pyFluidSynth==1.3.0"]
stk = ["cppyy~=2.3.1"]
rivalium = ["ffmpeg-python~=0.2.0"]
setuptools.setup(
name="aleatora",
version=version,
author="Ian Clester",
author_email="ijc@ijc8.me",
description="Compose music with streams.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ijc8/aleatora",
project_urls={
"Bug Tracker": "https://github.com/ijc8/aleatora/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Artistic Software",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Sound/Audio :: Editors",
"Topic :: Multimedia :: Sound/Audio :: MIDI",
"Topic :: Multimedia :: Sound/Audio :: Mixers",
"Topic :: Multimedia :: Sound/Audio :: Sound Synthesis",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
python_requires=">=3.6",
install_requires=[
"mido",
"numpy",
"oscpy",
"sounddevice",
],
extras_require={
"speech": speech,
"foxdot": foxdot,
"plugins": plugins,
"soundfont": soundfont,
"stk": stk,
"rivalium": rivalium,
"all": speech + foxdot + plugins + soundfont + stk + rivalium,
}
)