-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
52 lines (48 loc) · 1.62 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
import setuptools
import sys
with open("README.md", "r") as fh:
long_description = fh.read()
install_requires=['numpy', 'scipy']
python_subversion = int(sys.version.split('.')[1])
if python_subversion > 8:
install_requires = [
'numpy', 'scipy', 'tensorflow', 'tensorflow-probability',
'tensorflow-datasets', 'torch', 'torchvision', 'seaborn',
'matplotlib', 'tensorflow-datasets'
]
else:
install_requires = [
'numpy==1.22.4', 'scipy',
#####
# these ought to be enforced by tensor2tensor, but they're not
'kfac==0.2.0',
'dopamine_rl==2.0.5',
'gym==0.12.4',
'absl-py==0.10.0',
#####
'tensorflow-probability==0.7',
'tensor2tensor==1.15.7',
'tfmpl',
'protobuf==3.20.3',
# 'tensorflow-gpu==1.15.3' the cpu version will also work
]
setuptools.setup(
name="machine_learning",
version="0.7.0",
author="J.G. Makin",
author_email="[email protected]",
description="a collection of packages for ML projects, written in the Python APIs for Tensorflow and Pytorch",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jgmakin/machine_learning",
packages=setuptools.find_packages(),
install_requires=install_requires,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 3",
# "License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)