File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
{{cookiecutter.project_name}} Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1- """Cookiecutter hook that runs before template generation."""
1+ """Cookiecutter hook that runs before template generation.
22
3-
4- ESCAPED_JINJA_SETUP : str = """
53{%- set min_minor = cookiecutter.min_python_version.split('.')[1] | int %}
64{%- set max_minor = cookiecutter.max_python_version.split('.')[1] | int %}
5+ {%- set versions = [] %}
6+ {%- for i in range(min_minor, max_minor + 1) %}
7+ {%- set _ = versions.append("3." + (i|string)) %}
8+ {%- endfor %}
79
810{{ cookiecutter.update({
911 "_min_python_version_minor_int": min_minor,
1012 "_max_python_version_minor_int": max_minor,
11- "python_versions": ["3." + (i|string) for i in range(min_minor, max_minor + 1)]
13+ "python_versions": versions
1214}) }}
1315"""
Original file line number Diff line number Diff line change 1+ .cookiecutter.json
2+ .cruft.json
Original file line number Diff line number Diff line change 1212
1313
1414nox .options .default_venv_backend = "uv"
15+ os .environ .setdefault ("PYO3_USE_ABI3_FORWARD_COMPATIBILITY" , "1" )
1516
1617# Logic that helps avoid metaprogramming in cookiecutter-robust-python
1718MIN_PYTHON_VERSION_SLUG : int = int ("{{cookiecutter.min_python_version}}" .lstrip ("3." ))
You can’t perform that action at this time.
0 commit comments