Skip to content

Commit db2607f

Browse files
committed
更新pyproject.toml和uv.lock文件,重构依赖项格式,添加可选依赖项,升级构建系统至hatchling,并修复一些依赖项的元数据。
1 parent 800d695 commit db2607f

File tree

2 files changed

+992
-465
lines changed

2 files changed

+992
-465
lines changed

pyproject.toml

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,48 @@ name = "app"
33
version = "0.6"
44
description = "🎀A simple and practical CMS implememted by flask"
55
requires-python = ">=3.9,<3.14"
6-
author = ["sunlin92 <sun.melodies@gmail.com>"]
6+
authors = [
7+
{name = "sunlin92", email = "sun.melodies@gmail.com"}
8+
]
9+
dependencies = [
10+
"Flask==3.1.0",
11+
"Flask-JWT-Extended==4.7.1",
12+
"Flask-SQLAlchemy==3.1.1",
13+
"WTForms==3.2.1",
14+
"tablib==3.8.0",
15+
"spectree==1.4.5",
16+
"pillow>=11.1.0",
17+
"flask-cors>=5.0.1",
18+
"gunicorn>=23.0.0",
19+
"gevent>=24.1.1",
20+
"flask-socketio>=5.5.1",
21+
"blinker>=1.9.0",
22+
"python-dotenv>=1.0.1",
23+
"gevent-websocket>=0.10.1",
24+
"pydantic[email]>=1.10.21,<2.0.0",
25+
]
726

8-
[tool.poetry.source]
9-
name = "tsinghua"
10-
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
11-
default = true
12-
13-
[tool.poetry.dependencies]
14-
Flask = "3.1.0"
15-
Flask_JWT_Extended = "4.7.1"
16-
Flask_SQLAlchemy = "3.1.1"
17-
WTForms = "3.2.1"
18-
tablib = "3.8.0"
19-
spectree = "1.4.5"
20-
pillow = "^11.1.0"
21-
flask-cors = "^5.0.1"
22-
gunicorn = "^23.0.0"
23-
gevent = "^24.1.1"
24-
flask-socketio = "^5.5.1"
25-
blinker = "^1.9.0"
26-
python-dotenv = "^1.0.1"
27-
gevent-websocket = "^0.10.1"
28-
pydantic = {extras = ["email"], version = "^1.10.21"}
29-
30-
[tool.poetry.group.dev.dependencies]
31-
black = "^25.1.0"
32-
isort = "^6.0.1"
33-
watchdog = "^6.0.0"
34-
coverage = "^7.6.12"
35-
pytest = "^8.3.5"
36-
pre-commit = "^4.1.0"
37-
pytest-order = "^1.3.0"
38-
flake8= "^7.1.2"
39-
mypy = "^1.15.0"
27+
[project.optional-dependencies]
28+
dev = [
29+
"black>=25.1.0",
30+
"isort>=6.0.1",
31+
"watchdog>=6.0.0",
32+
"coverage>=7.6.12",
33+
"pytest>=8.3.5",
34+
"pre-commit>=4.1.0",
35+
"pytest-order>=1.3.0",
36+
"flake8>=7.1.2",
37+
"mypy>=1.15.0",
38+
]
4039

4140
[build-system]
42-
requires = ["poetry-core>=1.0.0"]
43-
build-backend = "poetry.core.masonry.api"
41+
requires = ["hatchling"]
42+
build-backend = "hatchling.build"
43+
44+
[[tool.poetry.source]]
45+
name = "tsinghua"
46+
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
47+
priority = "primary"
4448

4549
[tool.isort]
4650
multi_line_output = 3
@@ -54,7 +58,7 @@ line_length = 120
5458

5559
[tool.mypy]
5660
files = ["starter.py"]
57-
ignore_missing_imports=true
61+
ignore_missing_imports = true
5862

5963
[tool.pytest]
60-
testpaths=["tests"]
64+
testpaths = ["tests"]

0 commit comments

Comments
 (0)