-
Notifications
You must be signed in to change notification settings - Fork 61
/
setup.py
74 lines (67 loc) · 2.36 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
########################################################################
# This is the setup script for the MAterials Simulation Toolkit
# machine-learning module (MAST-ML)
# Creator and Maintainer: UW-Madison MAST-ML Development Team
#
########################################################################
from __future__ import print_function
import sys
from setuptools import setup, find_packages
###Python version check
if sys.version_info[0] < 3:
print('Python Version %d.%d.%d found' % (sys.version_info[0], sys.version_info[1], sys.version_info[2]))
print('Python version >= 3.11 needed!')
sys.exit(0)
if sys.version_info[0] >= 3:
if sys.version_info[1] < 10:
print('Python Version %d.%d.%d found' % (sys.version_info[0], sys.version_info[1], sys.version_info[2]))
print('Python version >= 3.10 needed!')
sys.exit(0)
# One of the techniques from https://packaging.python.org/guides/single-sourcing-package-version/
verstr = "3.2.0"
try:
verstr = open("VERSION", "rt").read().strip()
except EnvironmentError:
pass # Okay, there is no version file.
setup(
name="mastml",
packages=['mastml', 'mastml.magpie', 'mastml.tests.unit_tests', 'mastml.data'],
package_data={'mastml.magpie': ["*.*"], 'mastml.tests.unit_tests': ["*.*"], 'mastml.data': ["*.*"]},
include_package_data = True,
version=verstr,
install_requires=[
"scikit-learn",
"scikit-optimize",
"citrination-client",
"foundry-ml",
#"globus_nexus_client",
#"globus_sdk",
"matminer",
"matplotlib",
"mdf_forge",
"mdf-toolbox",
"numpy",
"openpyxl",
"pandas",
"pathos",
"pykan==0.0.5",
"pymatgen",
"pyyaml",
"scikit-learn-extra",
"scipy",
"shap",
"sphinx-automodapi",
"statsmodels",
"madml",
"udocker",
"transfernet",
"forestci"
],
author="MAST Development Team, University of Wisconsin-Madison Computational Materials Group",
author_email="[email protected]",
url="https://github.com/uw-cmg/MAST-ML",
license="MIT",
description="MAterials Simulation Toolkit - Machine Learning",
long_description="MAterials Simulation Toolkit for Machine Learning (MASTML)",
keywords=["MAST","materials","simulation","MASTML","machine learning"],
)