-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (30 loc) · 937 Bytes
/
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
import os.path as osp
from setuptools import setup
def get_requirements():
with open("requirements.txt", "r") as fp:
return [line.strip() for line in fp.readlines() if line]
def get_long_description():
try:
with open("README.md", "r") as fp:
return fp.read()
except FileNotFoundError:
return None
about = {}
with open(
osp.join(osp.dirname(__file__), "pyaudioservice", "__version__.py"), "r"
) as fp:
exec(fp.read(), about)
setup(
name=about["__title__"],
description=about["__description__"],
url=about["__url__"],
author=about["__author__"],
author_email=about["__author_email__"],
packages=["pyaudioservice"],
python_requires=">=3.8",
install_requires=get_requirements(),
version=about["__version__"],
license=about["__license__"],
long_description=get_long_description(),
long_description_content_type="text/markdown",
)