Python 后端提交
Python 后端(FastAPI + FastMCP + ...)的初始版本号设定为 0.1.0,这是 uv 在 pypriject.toml 里给我自动设置的,我觉得有道理。
This commit is contained in:
6
router/__version__.py
Normal file
6
router/__version__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from importlib.metadata import PackageNotFoundError, version
|
||||
|
||||
try:
|
||||
__version__ = version("njupt-suan-api")
|
||||
except PackageNotFoundError:
|
||||
__version__ = "dev"
|
||||
Reference in New Issue
Block a user