pyproject.toml 1.76 KB
Newer Older
1
2
3
4
5
6
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "csst_dag"
BO ZHANG's avatar
tweak    
BO ZHANG committed
7
version = "0.0.2"
8
authors = [
9
    { name = "Bo Zhang", email = "bozhang@nao.cas.cn" }
10
11
12
13
]
description = "CSST DAG"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
14
license = "MIT"  # 使用SPDX许可证标识符字符串,替代已弃用的表格式[3,4](@ref)
15
16
17
18
19
keywords = ["astronomy", "scientific", "physics"]
classifiers = [
    "Development Status :: 3 - Alpha",
    "Intended Audience :: Science/Research",
    "Operating System :: OS Independent",
20
    "Programming Language :: Python :: 3",
21
22
23
24
25
26
27
    "Topic :: Scientific/Engineering :: Physics",
    "Topic :: Scientific/Engineering :: Astronomy"
]
dependencies = [
    "astropy",
    "numpy",
    "toml",
28
29
30
    # 注意: 直接使用Git URL依赖在某些构建或安装环境下可能存在兼容性问题。
    # 如果遇到问题,可考虑将其移至 `[project.optional-dependencies]` 或预先打包该依赖。
    "csst-dfs-client @ git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-client.git",
31
32
33
34
35
36
37
]

[project.urls]
homepage = "https://csst-tb.bao.ac.cn/code/csst-cicd/csst-dag"

[tool.setuptools]
# 自动发现 Python 包
38
packages = { find = { where = ["."] } }
39
40
41
42
include-package-data = true

[tool.setuptools.package-data]
csst_dag = [
BO ZHANG's avatar
tweaks    
BO ZHANG committed
43
    "dag_config/*",
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
]

# 可选:如果需要定义测试、文档等可选依赖组,可以添加如下部分[5,8](@ref)
# [project.optional-dependencies]
# test = [
#     "pytest>=6.0",
# ]
# dev = [
#     "black",
#     "flake8",
# ]
# 如果移动Git依赖,可以这样定义(安装时使用 `pip install 'csst_dag[dfs]'`)
# dfs = [
#     "csst-dfs-client @ git+https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-client.git",
# ]