forked from materialsproject/matbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (31 loc) · 1.12 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
import os
from setuptools import find_packages, setup
MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
# source of version is in the constants file
VERSION_FILE = os.path.join(MODULE_DIR, "matbench/constants.py")
token = "VERSION = "
with open(VERSION_FILE) as f:
for line in f.readlines():
if token in line:
version = line.replace(token, "").strip()
# Double quotes are contained in the read line, remove them
version = version.replace('"', "")
setup(
name="matbench",
version=version,
description="a machine learning benchmark for materials science",
long_description="A machine learning benchmark for materials science. "
"https://github.com/materialsproject/matbench",
url="https://github.com/materialsproject/matbench",
author="Alex Dunn, Anubhav Jain",
author_email="[email protected]",
license="modified BSD",
packages=find_packages(include=["matbench*"], exclude=["*tests"]),
package_data={"matbench": ["*.json"]},
install_requires=[
"matminer>=0.7.4",
"scipy>=1.9.0",
"monty>=2022.4.26",
"scikit-learn>=1.0.1",
],
)