-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (68 loc) · 2.16 KB
/
Copy pathsetup.py
File metadata and controls
77 lines (68 loc) · 2.16 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
70
71
72
73
74
75
76
77
from setuptools import setup, find_packages
import os
# 读取 README 文件作为长描述(可选)
def read_readme():
readme_path = os.path.join(os.path.dirname(__file__), 'README.md')
if os.path.exists(readme_path):
with open(readme_path, 'r', encoding='utf-8') as f:
return f.read()
return "WADEN: Wave Differentiable propagator Engine"
setup(
name="waden",
version="0.1.0",
description="Wave Differentiable propagator Engine - A PyTorch-based wave propagation model",
long_description=read_readme(),
long_description_content_type="text/markdown",
author="Gary Yang",
author_email="yanggy25@mail2.sysu.edu.cn", # 替换为你的邮箱
url="https://github.com/GaryYang77/waden", # 替换为你的 GitHub 地址
# 自动找到所有包
packages=find_packages(),
# Python 版本要求
python_requires=">=3.8",
# 依赖包
install_requires=[
"torch>=1.9.0",
"numpy>=1.19.0",
"netCDF4>=1.5.0",
"omegaconf>=2.1.0",
"pyyaml>=5.4.0",
"matplotlib>=3.3.0",
"xarray>=0.19.0",
"scipy>=1.7.0",
],
# 可选依赖
extras_require={
"dev": [
"pytest>=6.0",
"pytest-cov>=2.0",
"black>=21.0",
"flake8>=3.8",
],
"viz": [
"cartopy>=0.20.0",
"seaborn>=0.11.0",
]
},
# 分类器
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
# 包含非 Python 文件
include_package_data=True,
# 命令行入口点(可选)
entry_points={
"console_scripts": [
"waden-validate=validation.validate:main",
],
},
)