-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·40 lines (36 loc) · 1.42 KB
/
setup.py
File metadata and controls
executable file
·40 lines (36 loc) · 1.42 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
from setuptools import find_packages
from setuptools import setup
def get_requirements() -> list:
"""get requirements from PaddleCFD/requirements.txt"""
req_list = []
with open("requirements.txt", "r") as f:
req_list = f.read().splitlines()
return req_list
if __name__ == "__main__":
setup(
name="ppcfd",
version="0.3.0",
packages=find_packages(
exclude=(
"doc",
"examples",
)
),
include_package_data=True,
description="PaddleCFD is a deep learning toolkit for surrogate modeling, equation discovery, shape optimization and flow-control strategy discovery in the field of fluid mechanics.",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
author="AI4S@PaddlePaddle",
author_email="paddlescience@baidu.com",
url="https://github.com/PaddlePaddle/PaddleCFD",
install_requires=get_requirements(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
license_file="LICENSE",
python_requires=">=3.10",
)
print("PaddleCFD has been installed successfully.")
print("Please check https://github.com/PaddlePaddle/PaddleCFD for more information.")