-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (32 loc) · 1010 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
39
40
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import sys
import os.path
import setuptools
version = "0.0.1"
here = os.path.dirname(__file__)
project_dir = os.path.abspath(here)
def read_requirements():
requirements_txt = os.path.join(project_dir, 'requirements.txt')
with open(requirements_txt, encoding='utf-8') as f:
contents = f.read()
specifiers = [s for s in contents.split('\n') if s]
return specifiers
def read_readme():
readme = os.path.join(project_dir, 'README.md')
with open(readme, encoding='utf-8') as f:
long_description = f.read()
return long_description
setup(
name='yamnet-hear',
version=version,
long_description=read_readme(),
long_description_content_type="text/markdown",
packages=['yamnet_hear', 'yamnet'],
install_requires=read_requirements(),
include_package_data=True,
package_data = {
'': ['*.h5', '*.csv', '*.json'],
},
zip_safe=False,
)