forked from philipperemy/n-beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (35 loc) · 976 Bytes
/
Copy pathsetup.py
File metadata and controls
41 lines (35 loc) · 976 Bytes
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
import os
from setuptools import setup
BASE_VERSION = '1.3.2' # update regardless whether you update keras or pytorch or both.
FRAMEWORK = os.getenv('FRAMEWORK', 'keras') # keras, pytorch.
# common packages.
INSTALL_REQUIRES = [
'numpy>=1.18.1',
'pandas>=0.25.3',
'matplotlib>=3.0'
]
if FRAMEWORK == 'keras':
LIB_PACKAGE = ['nbeats_keras']
INSTALL_REQUIRES.extend([
'keras',
'tensorflow==2.0'
])
elif FRAMEWORK == 'pytorch':
LIB_PACKAGE = ['nbeats_pytorch']
INSTALL_REQUIRES.extend([
'torch',
'torchvision'
])
else:
raise ValueError('Unknown framework.')
setup(
name=f'nbeats-{FRAMEWORK}',
version=BASE_VERSION,
description='N-Beats',
author='Philippe Remy (Pytorch), Jean Sebastien Dhr (Keras)',
license='MIT',
long_description_content_type='text/markdown',
long_description=open('README.md').read(),
packages=LIB_PACKAGE,
install_requires=INSTALL_REQUIRES
)