Skip to content

Commit 1d7b3a7

Browse files
committed
updated cookie toml
1 parent 611d2e2 commit 1d7b3a7

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

cookiecutter.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"3.10",
2121
"3.11",
2222
"3.12",
23-
"3.13"
23+
"3.13",
24+
"3.14"
2425
],
2526
"package_manager": [
2627
"uv",
@@ -47,7 +48,7 @@
4748
"https"
4849
],
4950
"__template_repo": "https://github.com/btr1975/cookiecutter-python-fastapi-openapi",
50-
"__template_version": "2.0.2",
51+
"__template_version": "2.0.3",
5152
"_new_lines": "\n",
5253
"_copy_without_render": [
5354
"{{cookiecutter.__app_name}}/templates",
@@ -77,7 +78,8 @@
7778
"3.10": "3.10",
7879
"3.11": "3.11",
7980
"3.12": "3.12",
80-
"3.13": "3.13"
81+
"3.13": "3.13",
82+
"3.14": "3.14"
8183
},
8284
"package_manager": {
8385
"__prompt__": "Which pacakge manager for Python will be supported",

{{cookiecutter.git_repo_name}}/pyproject.toml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ name = "{{ cookiecutter.git_repo_name }}"
1010
{% if cookiecutter.package_manager == 'pip' %}
1111
dynamic = ["version", "readme", "dependencies"]
1212
{% elif cookiecutter.package_manager == 'uv' %}
13-
dynamic = ["version", "readme"]
13+
dynamic = ["readme"]
14+
version = "{{ cookiecutter.app_version }}"
1415
{% endif %}
1516
requires-python = ">={{ cookiecutter.minimum_python_version }}"
1617
description = "{{ cookiecutter.app_description }}"
@@ -41,17 +42,23 @@ classifiers = [
4142
"Programming Language :: Python :: 3.10",
4243
"Programming Language :: Python :: 3.11",
4344
"Programming Language :: Python :: 3.12",
44-
"Programming Language :: Python :: 3.13",{% endif -%}
45+
"Programming Language :: Python :: 3.13",
46+
"Programming Language :: Python :: 3.14",{% endif -%}
4547
{% if cookiecutter.minimum_python_version == '3.10' %}"Programming Language :: Python :: 3.10",
4648
"Programming Language :: Python :: 3.11",
4749
"Programming Language :: Python :: 3.12",
48-
"Programming Language :: Python :: 3.13",{% endif -%}
50+
"Programming Language :: Python :: 3.13",
51+
"Programming Language :: Python :: 3.14",{% endif -%}
4952
{% if cookiecutter.minimum_python_version == '3.11' %}"Programming Language :: Python :: 3.11",
5053
"Programming Language :: Python :: 3.12",
51-
"Programming Language :: Python :: 3.13",{% endif -%}
54+
"Programming Language :: Python :: 3.13",
55+
"Programming Language :: Python :: 3.14",{% endif -%}
5256
{% if cookiecutter.minimum_python_version == '3.12' %}"Programming Language :: Python :: 3.12",
53-
"Programming Language :: Python :: 3.13",{% endif -%}
54-
{% if cookiecutter.minimum_python_version == '3.13' %}"Programming Language :: Python :: 3.13",{% endif -%}
57+
"Programming Language :: Python :: 3.13",
58+
"Programming Language :: Python :: 3.14",{% endif -%}
59+
{% if cookiecutter.minimum_python_version == '3.13' %}"Programming Language :: Python :: 3.13",
60+
"Programming Language :: Python :: 3.14",{% endif -%}
61+
{% if cookiecutter.minimum_python_version == '3.14' %}"Programming Language :: Python :: 3.14",{% endif -%}
5562

5663
]
5764

@@ -67,7 +74,7 @@ dependencies = [
6774
[dependency-groups]
6875
dev = [
6976
"black",
70-
"tomli",
77+
"tomli; python_version < '3.11'",
7178
"pytest-cov",
7279
"sphinx",
7380
"pylint",
@@ -101,9 +108,9 @@ include = [
101108
zip-safe = false
102109

103110
[tool.setuptools.dynamic]
104-
version = {attr = "{{cookiecutter.__app_name}}.version.__version__"}
105111
readme = {file = "README.md", content-type = "text/markdown"}
106112
{% if cookiecutter.package_manager == 'pip' %}
113+
version = {attr = "{{cookiecutter.__app_name}}.version.__version__"}
107114
dependencies = {file = "requirements.txt"}
108115
{% endif %}
109116

{{cookiecutter.git_repo_name}}/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
build
66
pip-audit
77
black
8-
tomli
8+
tomli; python_version < '3.11'
99
pytest-cov
1010
sphinx
1111
pylint

0 commit comments

Comments
 (0)