feat: 从 pyproject.toml 读取项目版本号并注入到模板中

This commit is contained in:
2025-11-14 22:50:34 +08:00
parent 8479829fce
commit ed845a3d9a
3 changed files with 30 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
[project]
name = "Cloud-Index"
version = "0.1.0"
version = "0.9.0"
description = "A cloud storage index system based on a number of cloud storage platforms"
authors = [{ name = "RhenCloud", email = "i@rhen.cloud" }]
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.11"
dependencies = [
"flask>=3.1.2",
"uvicorn[standard]>=0.38.0",
@@ -28,7 +28,7 @@ dev = ["ruff>=0.1.6"]
# build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 88
line-length = 120
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings