-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (26 loc) · 803 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
#!/usr/bin/python3
import os
from warnings import warn
from distutils.core import setup
REQ_FILE = 'requirements.txt'
if not os.path.exists(REQ_FILE):
warn("No requirements file found. Using defaults deps")
deps = [
'numpy',
'scipy',
'pandas',
'pytest',
'soundfile',
'db-sqlite3',
'tensorflow==2.5.0']
warn(', '.join(deps))
else:
with open(REQ_FILE, 'r') as f:
deps = f.read().splitlines()
setup(name='tf_dataset',
version='1.2',
description='Create a tensorflow dataset (tf.data.Dataset) object from metadata for use with ML pipelines',
author='Jason St George',
author_email='[email protected]',
packages=['tf_dataset'],
install_requires=deps)