|
1 | 1 | [project] |
2 | | -name = "{{ cookiecutter.package_name }}" |
| 2 | +name = "{{cookiecutter.package_name}}" |
3 | 3 | version = "0.1.0" |
4 | | -description = "{{ cookiecutter.package_name }}" |
| 4 | +description = "{{cookiecutter.package_name}}" |
5 | 5 | authors = [ |
6 | | - { name = "{{ cookiecutter.author }}", email = "{{ cookiecutter.email }}" }, |
| 6 | + { name = "{{cookiecutter.author}}", email = "{{cookiecutter.email}}" }, |
7 | 7 | ] |
8 | | -license = { text = "{{ cookiecutter.license }}" } |
| 8 | +license = { text = "{{cookiecutter.license}}" } |
9 | 9 | readme = "README.md" |
10 | | -requires-python = ">={{ cookiecutter.min_python_version}},<4.0" |
| 10 | +requires-python = ">={{cookiecutter.min_python_version}},<4.0" |
11 | 11 |
|
12 | 12 | keywords = [ |
13 | | - "{{ cookiecutter.project_name.replace('_', '-') }}", |
| 13 | + "{{cookiecutter.project_name.replace('_', '-')}}", |
14 | 14 | ] |
15 | 15 |
|
16 | 16 | classifiers = [ |
17 | | - "Programming Language :: Python :: {{ cookiecutter.min_python_version }}", |
| 17 | + "Programming Language :: Python :: {{cookiecutter.min_python_version}}", |
18 | 18 | "Programming Language :: Python :: 3 :: Only", |
19 | | - "License :: OSI Approved :: {{ cookiecutter.license }}", |
| 19 | + "License :: OSI Approved :: {{cookiecutter.license}}", |
20 | 20 | ] |
21 | 21 |
|
22 | 22 | dependencies = [ |
23 | 23 | "loguru", |
24 | 24 | "platformdirs>=4.3.8", |
25 | 25 | ] |
26 | 26 |
|
27 | | -[project.optional-dependencies] |
| 27 | +[dependency-groups] |
28 | 28 | dev = [ |
29 | | - "nox>=2024.3.2", |
30 | | - "commitizen>=3.11.1", |
31 | | - "pre-commit>=3.7.0", |
| 29 | + "commitizen>=4.7.0", |
| 30 | + "nox>={{cookiecutter.copyright_year}}.5.1", |
| 31 | + "pre-commit>=4.2.0", |
32 | 32 | ] |
33 | | - |
34 | | -test = [ |
35 | | - "pytest>=8.1.1", |
36 | | - "pytest-cov>=5.0.0", |
37 | | -] |
38 | | - |
39 | | -typecheck = [ |
40 | | - "pyright>=1.1.356" |
| 33 | +docs = [ |
| 34 | + "furo>=2024.8.6", |
| 35 | + "myst-parser>=3.0.1", |
| 36 | + "sphinx>=7.4.7", |
| 37 | + "sphinx-autodoc-typehints>=2.3.0", |
| 38 | + "sphinx-copybutton>=0.5.2", |
| 39 | + "sphinx-tabs>=3.4.7", |
41 | 40 | ] |
42 | | - |
43 | 41 | lint = [ |
44 | | - "ruff>=0.3.5", |
45 | 42 | "pydocstyle>=6.3.0", |
| 43 | + "ruff>=0.11.9", |
46 | 44 | ] |
47 | | - |
48 | 45 | security = [ |
49 | | - "pip-audit>=2.8.4", |
50 | | - "bandit>=1.7.7", |
| 46 | + "bandit>=1.8.3", |
| 47 | + "pip-audit>=2.9.0", |
51 | 48 | ] |
52 | | - |
53 | | -docs = [ |
54 | | - "sphinx>=7.3.7", |
55 | | - "myst-parser>=2.0.0", |
56 | | - "furo>=2024.3.4", |
57 | | - "sphinx-copybutton>=0.5", |
58 | | - "sphinx-autodoc-typehints>=1.24.0", |
| 49 | +test = [ |
| 50 | + "pytest>=8.3.5", |
| 51 | + "pytest-cov>=6.1.1", |
| 52 | +] |
| 53 | +typecheck = [ |
| 54 | + "pyright>=1.1.400", |
59 | 55 | ] |
60 | 56 |
|
61 | 57 | [project.urls] |
62 | 58 | Homepage = "https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}" |
63 | 59 | Repository = "https://github.com/{{ cookiecutter.github_user | lower | replace(' ', '-') }}/{{ cookiecutter.project_name.replace('_', '-') }}" |
64 | 60 |
|
65 | 61 | [build-system] |
66 | | -requires = [ |
67 | | - "setuptools>=61.0" |
68 | | - {% if cookiecutter.add_rust_extension == 'y' -%} |
69 | | - ,"maturin>=1.3.0" |
70 | | - {% endif -%} |
71 | | -] |
| 62 | +requires = [{% if cookiecutter.add_rust_extension == 'y' -%} "maturin>=1.3.0,<2.0" {% else -%} "setuptools>=61.0" {% endif %}] |
72 | 63 | build-backend = {% if cookiecutter.add_rust_extension == 'y' -%} "maturin" {% else -%} "setuptools.build_meta" {% endif %} |
73 | 64 |
|
74 | 65 |
|
|
0 commit comments