Skip to content

Commit 3560a91

Browse files
authored
Merge pull request #57 from robust-python/develop
Various Fixes
2 parents ba9f605 + b36862f commit 3560a91

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

hooks/pre_gen_project.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
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
"""
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.cookiecutter.json
2+
.cruft.json

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313

1414
nox.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
1718
MIN_PYTHON_VERSION_SLUG: int = int("{{cookiecutter.min_python_version}}".lstrip("3."))

0 commit comments

Comments
 (0)