|
1 | 1 | [build-system] |
2 | 2 | {%- if cookiecutter.backend == "pdm" %} |
3 | | -requires = ["pdm-backend"] |
| 3 | +requires = ["pdm-backend>=2.4"] |
4 | 4 | build-backend = "pdm.backend" |
5 | 5 | {%- elif cookiecutter.backend == "maturin" %} |
6 | 6 | requires = ["maturin>=0.15,<2"] |
7 | 7 | build-backend = "maturin" |
8 | 8 | {%- elif cookiecutter.backend == "hatch" %} |
9 | 9 | {%- if cookiecutter.vcs %} |
10 | | -requires = ["hatchling", "hatch-vcs"] |
| 10 | +requires = ["hatchling>=1.26", "hatch-vcs"] |
11 | 11 | {%- else %} |
12 | | -requires = ["hatchling"] |
| 12 | +requires = ["hatchling>=1.26"] |
13 | 13 | {%- endif %} |
14 | 14 | build-backend = "hatchling.build" |
15 | 15 | {%- elif cookiecutter.backend == "setuptools" %} |
16 | 16 | {%- if cookiecutter.vcs %} |
17 | | -requires = ["setuptools>=61", "setuptools_scm[toml]>=7"] |
| 17 | +requires = ["setuptools>=77", "setuptools_scm[toml]>=7"] |
18 | 18 | {%- else %} |
19 | | -requires = ["setuptools>=61"] |
| 19 | +requires = ["setuptools>=77"] |
20 | 20 | {%- endif %} |
21 | 21 | build-backend = "setuptools.build_meta" |
22 | 22 | {%- elif cookiecutter.backend == "flit" %} |
23 | 23 | {%- if cookiecutter.vcs %} |
24 | | -requires = ["flit_scm"] |
| 24 | +requires = ["flit_scm", "flit_core>=3.11"] |
25 | 25 | build-backend = "flit_scm:buildapi" |
26 | 26 | {%- else %} |
27 | | -requires = ["flit_core>=3.4"] |
| 27 | +requires = ["flit_core>=3.11"] |
28 | 28 | build-backend = "flit_core.buildapi" |
29 | 29 | {%- endif %} |
30 | 30 | {%- elif cookiecutter.backend == "pybind11" %} |
31 | 31 | {%- if cookiecutter.vcs %} |
32 | | -requires = ["setuptools>=61", "setuptools_scm[toml]>=7", "pybind11"] |
| 32 | +requires = ["setuptools>=77", "setuptools_scm[toml]>=7", "pybind11"] |
33 | 33 | {%- else %} |
34 | | -requires = ["setuptools>=61", "pybind11"] |
| 34 | +requires = ["setuptools>=77", "pybind11"] |
35 | 35 | {%- endif %} |
36 | 36 | build-backend = "setuptools.build_meta" |
37 | 37 | {%- elif cookiecutter.backend == "skbuild" %} |
38 | | -requires = ["pybind11", "scikit-build-core>=0.10"] |
| 38 | +requires = ["pybind11", "scikit-build-core>=0.11"] |
39 | 39 | build-backend = "scikit_build_core.build" |
40 | 40 | {%- elif cookiecutter.backend == "mesonpy" %} |
41 | 41 | requires = ["meson-python", "pybind11"] |
@@ -66,20 +66,31 @@ maintainers = [ |
66 | 66 | {%- endif %} |
67 | 67 | description = "{{ cookiecutter.project_short_description }}" |
68 | 68 | readme = "README.md" |
69 | | -{%- if cookiecutter.backend in ['flit', 'mesonpy'] %} |
| 69 | +{%- if cookiecutter.backend not in ['poetry', 'mesonpy', 'maturin'] %} |
| 70 | +{%- if cookiecutter.license == "BSD" %} |
| 71 | +license = "BSD-3-Clause" |
| 72 | +{%- elif cookiecutter.license == "Apache" %} |
| 73 | +license = "Apache-2.0" |
| 74 | +{%- elif cookiecutter.license == "MIT" %} |
| 75 | +license = "MIT" |
| 76 | +{%- endif %} |
| 77 | +{%- endif %} |
| 78 | +{%- if cookiecutter.backend in ['mesonpy'] %} |
70 | 79 | license.file = "LICENSE" |
71 | 80 | {%- endif %} |
72 | 81 | requires-python = ">=3.9" |
73 | 82 | classifiers = [ |
74 | 83 | "Development Status :: 1 - Planning", |
75 | 84 | "Intended Audience :: Science/Research", |
76 | 85 | "Intended Audience :: Developers", |
| 86 | +{%- if cookiecutter.backend in ['poetry', 'mesonpy', 'maturin'] %} |
77 | 87 | {%- if cookiecutter.license == "BSD" %} |
78 | 88 | "License :: OSI Approved :: BSD License", |
79 | 89 | {%- elif cookiecutter.license == "Apache" %} |
80 | 90 | "License :: OSI Approved :: Apache Software License", |
81 | 91 | {%- elif cookiecutter.license == "MIT" %} |
82 | 92 | "License :: OSI Approved :: MIT License", |
| 93 | +{%- endif %} |
83 | 94 | {%- endif %} |
84 | 95 | "Operating System :: OS Independent", |
85 | 96 | "Programming Language :: Python", |
|
0 commit comments