浏览代码

Add project table to pyproject.toml template (#690)

Add project table to pyproject.toml template
Otherwise, uv will fail with error message of
error: No `project` table found in: `<project_root>/pyproject.toml`
ZHANG Cheng 1 天之前
父节点
当前提交
dcbd888635
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 5 0
      coderedcms/project_template/basic/pyproject.toml
  2. 5 0
      coderedcms/project_template/pro/pyproject.toml

+ 5 - 0
coderedcms/project_template/basic/pyproject.toml

@@ -1,3 +1,8 @@
+[project]
+name = "{{ project_name }}"
+version = "0.1.0"
+requires-python = ">=3.9"
+
 [tool.black]
 line-length = 80
 extend-exclude = ["migrations"]

+ 5 - 0
coderedcms/project_template/pro/pyproject.toml

@@ -1,3 +1,8 @@
+[project]
+name = "{{ project_name }}"
+version = "0.1.0"
+requires-python = ">=3.9"
+
 [tool.black]
 line-length = 80
 extend-exclude = ["migrations"]