Skip to content

Commit a62b021

Browse files
add setup (#280)
* 1. add utils.run_check 2. add setup files including setup.py and pyproject.toml * update frontpage in docs * remove rank in set_random_seed * update setup.py * update issue hyper-link * change batch size from 150 to 100 for viv.py
1 parent 10518a3 commit a62b021

File tree

5 files changed

+77
-7
lines changed

5 files changed

+77
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ PaddleScience 是一个基于深度学习框架 PaddlePaddle 开发的科学计
6666

6767
## 支持
6868

69-
如使用过程中遇到问题或想提出开发建议,欢迎在 [**Issue**](https://github.com/PaddlePaddle/PaddleScience/issues/new) 页面新建 issue。
69+
如使用过程中遇到问题或想提出开发建议,欢迎在 [**Issue**](https://github.com/PaddlePaddle/PaddleScience/issues/new/choose) 页面新建 issue。
7070

7171
## 贡献代码
7272

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PaddleScience 是一个基于深度学习框架 PaddlePaddle 开发的科学计
1717

1818
## 支持
1919

20-
- 如使用过程中遇到问题或想提出开发建议,欢迎在 [**Issue**](https://github.com/PaddlePaddle/PaddleScience/issues/new) 页面新建 issue。
20+
- 如使用过程中遇到问题或想提出开发建议,欢迎在 [**Issue**](https://github.com/PaddlePaddle/PaddleScience/issues/new/choose) 页面新建 issue。
2121

2222
## 贡献代码
2323

examples/fsi/viv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"label_keys": ("eta", "f"),
4242
"weight_dict": {"eta": 100},
4343
},
44-
"batch_size": 150,
44+
"batch_size": 100,
4545
"sampler": {
4646
"name": "BatchSampler",
4747
"drop_last": False,

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "paddlesci"
7-
version = "1.0.1"
7+
version = "1.0.0"
88
description = "A library for scientific machine learning"
99
readme = "README.md"
1010
license = {text = "Apache-2.0"}
@@ -13,6 +13,7 @@ authors = [
1313
]
1414
requires-python = ">=3.7"
1515
keywords = [
16+
"Machine learning",
1617
"Deep learning",
1718
"Differential equations",
1819
"AI4Science",
@@ -33,7 +34,7 @@ classifiers = [
3334
"Topic :: Scientific/Engineering :: Mathematics",
3435
]
3536
dependencies = [
36-
"numpy",
37+
"numpy>=1.20.0",
3738
"scipy",
3839
"sympy",
3940
"matplotlib",
@@ -43,10 +44,12 @@ dependencies = [
4344
"scipy",
4445
"visualdl",
4546
"pyvista==0.37.0",
46-
"pysdf",
4747
"pyyaml",
4848
"scikit-optimize",
4949
"h5py",
50+
"meshio==5.3.4",
51+
"tqdm",
52+
"imageio",
5053
]
5154

5255
[project.urls]
@@ -57,4 +60,4 @@ Documentation = "https://paddlescience-docs.readthedocs.io/zh/latest/"
5760

5861
[tool.setuptools.packages.find]
5962
where = ["."]
60-
exclude = ["docs*", "examples*", "jointContribution*", "paddlescience*", "test_tipc*", "tests*", "tools*"]
63+
exclude = ["docs*", "examples*", "jointContribution*", "test_tipc*", "tests*", "tools*"]

setup.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
"""
2+
Setup configuration
3+
"""
4+
5+
import setuptools
6+
7+
8+
def readme():
9+
"""README"""
10+
with open("README.md") as f:
11+
return f.read()
12+
13+
14+
if __name__ == "__main__":
15+
setuptools.setup(
16+
name="paddlesci",
17+
version="1.0.0",
18+
author="PaddlePaddle",
19+
url="https://github.com/PaddlePaddle/PaddleScience",
20+
description=(
21+
"PaddleScience is SDK and library for developing AI-driven scientific computing"
22+
" applications based on PaddlePaddle."
23+
),
24+
long_description=readme(),
25+
long_description_content_type="text/markdown",
26+
packages=setuptools.find_packages(
27+
exclude=(
28+
"docs",
29+
"examples",
30+
"jointContribution",
31+
"test_tipc",
32+
"tests",
33+
"tools",
34+
)
35+
),
36+
classifiers=[
37+
"Development Status :: 5 - Production/Stable",
38+
"Intended Audience :: Science/Research",
39+
"License :: OSI Approved :: Apache Software License",
40+
"Programming Language :: Python :: 3 :: Only",
41+
"Programming Language :: Python :: 3.7",
42+
"Programming Language :: Python :: 3.8",
43+
"Programming Language :: Python :: 3.9",
44+
"Programming Language :: Python :: 3.10",
45+
"Topic :: Scientific/Engineering",
46+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
47+
"Topic :: Scientific/Engineering :: Mathematics",
48+
],
49+
install_requires=[
50+
"numpy>=1.20.0",
51+
"scipy",
52+
"sympy",
53+
"matplotlib",
54+
"vtk",
55+
"pyevtk",
56+
"wget",
57+
"scipy",
58+
"visualdl",
59+
"pyvista==0.37.0",
60+
"pyyaml",
61+
"scikit-optimize",
62+
"h5py",
63+
"meshio==5.3.4",
64+
"tqdm",
65+
"imageio",
66+
],
67+
)

0 commit comments

Comments
 (0)