Skip to content

Commit 6652c4b

Browse files
committed
feat: use the specified python version
1 parent 82e2ebc commit 6652c4b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

template/py/{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@ build-backend = "hatchling.build"
66
name = "{{cookiecutter.project_slug}}"
77
version = "0.0.1"
88
description = "{{cookiecutter.project_desc}}"
9-
requires-python = ">=3.11"
9+
requires-python = ">={{cookiecutter.python_version}}"
1010
license = "MIT"
1111
authors = [
1212
{ name = "{{cookiecutter.full_name}}" },
1313
]
1414
classifiers = [
1515
"Development Status :: 4 - Beta",
16-
"Programming Language :: Python",
17-
"Programming Language :: Python :: 3.11",
18-
"Programming Language :: Python :: 3.12",
19-
"Programming Language :: Python :: Implementation :: CPython",
20-
"Programming Language :: Python :: Implementation :: PyPy",
16+
"Programming Language :: Python :: {{cookiecutter.python_version}}",
2117
]
2218
dependencies = [
2319
"pytest>=8.0",

template/py/{{cookiecutter.project_slug}}/ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target-version = "py311"
1+
target-version = "py{{cookiecutter.python_version | replace('.', '')}}"
22
line-length = 120
33

44
[lint]

0 commit comments

Comments
 (0)