-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (60 loc) · 1.98 KB
/
setup.py
File metadata and controls
69 lines (60 loc) · 1.98 KB
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
import numpy as np
import setuptools
from Cython.Build import cythonize
from setuptools import Extension
"""
Setup configuration
"""
extensions = [
Extension(
"ppmat.models.mattersim.threebody_indices",
["ppmat/models/mattersim/threebody_indices.pyx"],
include_dirs=[np.get_include()],
)
]
def get_readme() -> str:
"""get README"""
with open("README.md", encoding="utf-8") as f:
return f.read()
def get_requirements() -> list:
"""get requirements from PaddleMaterials/requirements.txt"""
req_list = []
with open("requirements.txt", "r") as f:
req_list = f.read().splitlines()
return req_list
if __name__ == "__main__":
setuptools.setup(
name="ppmat",
author="PaddlePaddle",
url="https://github.com/PaddlePaddle/PaddleMaterials",
description=(
"PaddleMaterials is a data-driven deep learning toolkit based on "
"PaddlePaddle for material science."
),
long_description=get_readme(),
long_description_content_type="text/markdown",
packages=setuptools.find_packages(
exclude=(
"docs",
"examples",
"jointContribution",
"test",
"interatomic_potentials",
"property_prediction",
"structure_generation",
)
),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
install_requires=get_requirements(),
use_scm_version=True,
setup_requires=["setuptools_scm"],
ext_modules=cythonize(extensions),
)