forked from uw-cmg/MAST-ML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (59 loc) · 2.31 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
########################################################################
# This is the setup script for the MAterials Simulation Toolkit
# machine-learning module (MASTML)
# Maintainer: Tam Mayeshiba
# Last updated: 2017-05-23
########################################################################
from setuptools.command.install import install
from setuptools import setup, find_packages
import sys
import os
import re
###Python version check
#print "Python version detected: %s" % sys.version_info
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 needed!"
sys.exit(0)
###Version load, adapted from http://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package/3619714#3619714
PKG = "MAST"
VERSIONFILE = os.path.join(PKG, "_version.py")
verstr = "unknown"
try:
verstrline = open(VERSIONFILE, "rt").read()
except EnvironmentError:
pass # Okay, there is no version file.
else:
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
print "unable to find version in %s" % (VERSIONFILE,)
raise RuntimeError("if %s.py exists, it is required to be well-formed" % (VERSIONFILE,))
setup(
name="MASTML",
packages=find_packages(),
version=verstr,
install_requires=["numpy>=1.11.2",
"scipy>=0.18.1",
"pandas>=0.19.2",
"matplotlib>=1.5.3",
"configobj>=5.0.6",
#"validator",
#"matminer>=0.0.9",
"scikit-learn>=0.18.1",
"pymongo>=3.4.0",
"pymatgen>=4.6.0",
"PeakUtils>=1.0.3",
"citrination-client",
"mlxtend",
],
author="MAST Development Team, University of Wisconsin-Madison Computational Materials Group",
author_email="[email protected]",
url="",
license="Private",
description="MAterials Simulation Toolkit - Machine Learning",
long_description="MAterials Simulation Toolkit for Machine Learning (MASTML)",
keywords=["MAST","materials","simulation","MASTML","machine learning"],
)