forked from cognizant-ai-labs/covid-xprize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (65 loc) · 2.06 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"""
Code to allow this package to be pip-installed
"""
import os
import sys
from setuptools import setup, find_packages
LIBRARY_VERSION = '1.1.1'
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 6)
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write('''
==========================
Unsupported Python version
==========================
This version of esp-sdk requires Python {}.{}, but you're trying to
install it on Python {}.{}.
'''.format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
CUR_DIRECTORY_PATH = os.path.abspath(os.path.dirname(__file__))
# Python doesn't allow hyphens in package names so use underscore instead
PACKAGE_NAME = 'covid_xprize'
LIB_NAME = 'covid-xprize'
def read(fname):
"""
Read file contents into a string
:param fname: File to be read
:return: String containing contents of file
"""
with open(os.path.join(os.path.dirname(__file__), fname)) as file:
return file.read()
setup(
name=LIB_NAME,
version=LIBRARY_VERSION,
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
packages=find_packages(),
package_dir={PACKAGE_NAME: PACKAGE_NAME}, # the one line where all the magic happens
package_data={
PACKAGE_NAME: [
'countries_regions.csv',
'covid_xprize/examples/predictors/lstm/tests/fixtures/*',
'covid_xprize/validation/data',
'examples/predictors/lstm/data/*',
],
'.': [
'LICENSE.md'
]
},
install_requires=[
'keras==2.4.3',
'neat-python==0.92',
'numpy==1.18.5',
'pandas==1.1.2',
'scikit-learn==0.23.2',
'scipy==1.5.2',
'setuptools==41.0.0',
'tensorflow==2.2.2',
'h5py==2.10.0'
],
description='Contains sample code and notebooks '
'for developing and validating entries for the Cognizant COVID X-Prize.',
long_description=read('README.md'),
author='Olivier Francon, Darren Sargent, Elliot Meyerson',
url='https://github.com/leaf-ai/covid-xprize/',
license='See LICENSE.md'
)