forked from RomeoDespres/reapy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·47 lines (40 loc) · 1.38 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
from setuptools import setup, find_packages
from os import path, walk, sep
from typing import Dict, List
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md")) as f:
long_description = f.read()
def find_stubs(package: str) -> Dict[str, List[str]]:
stubs = []
for root, dirs, files in walk(package):
for file in files:
r_path = path.join(root, file).replace(package + sep, '', 1)
stubs.append(r_path)
stubs.append('py.typed')
return {package: stubs}
with open(path.join(here, 'reapy_boost', '__init__.py')) as f:
for line in f.readlines():
line = line.strip()
if line.startswith('__version__'):
version = line.split('"')[1]
setup(
name="reapy-boost",
version=version,
description="A pythonic wrapper for REAPER's ReaScript Python API",
long_description=long_description,
long_description_content_type="text/markdown",
author="Roméo Després, forked by Levitanus",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3"
],
keywords="REAPER DAW ReaScript API wrapper music audio",
packages=find_packages(exclude=["docs"]),
package_data=find_stubs('reapy_boost'),
install_requires=[
'psutil',
],
python_requires=">=3.7"
)