Explorar el Código

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 hace 1 día
padre
commit
dcbd888635

+ 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"]