- 在`formatters/__init__.py`中添加了`Parameter`函数,用于判断对象是否为`Parameter`类型。 - 在`formatters/desc.py`中的`desc`函数里添加了对`Parameter`对象的描述逻辑,包括数据类型和形状的格式化输出。 - 在`handlers/__init__.py`中将`Index`替换为`ExtSlice`,以支持扩展切片的处理。 - 在`handlers/expressions.py`中添加了`ExtSlice`函数,用于处理扩展切片表达式。
37 lines
778 B
TOML
37 lines
778 B
TOML
[build-system]
|
|
requires = ["setuptools>=65.5.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "trace_commentor" # pip install
|
|
version = "2025.7.1"
|
|
description = "..."
|
|
readme = "README.md" # 可选, 如果你有 README.md 文件
|
|
requires-python = ">=3.8"
|
|
license = {text = "Apache-2.0"} # 或者你的许可证
|
|
authors = [
|
|
{name = "Yuyao Huang (Sam)", email = "huangyuyao@outlook.com"},
|
|
]
|
|
dependencies = [
|
|
"astor",
|
|
"rich",
|
|
]
|
|
|
|
[tool.setuptools]
|
|
py-modules = ["trace_commentor"]
|
|
|
|
# 包含非 Python 文件
|
|
# [tool.setuptools.package-data]
|
|
# "package.path" = ["*.json"]
|
|
|
|
# 命令行程序入口
|
|
# [project.scripts]
|
|
# script-name = "module.path:function"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest",
|
|
"pytest-cov",
|
|
"pytest-mock",
|
|
]
|