File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
{{cookiecutter.project_name}} Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
2+ """Cookiecutter hook that runs after template generation."""
23import json
34import shutil
45import stat
Original file line number Diff line number Diff line change 1+ """Cookiecutter hook that runs before template generation."""
2+
3+
4+ ESCAPED_JINJA_SETUP : str = """
5+ {%- set min_minor = cookiecutter.min_python_version.split('.')[1] | int %}
6+ {%- set max_minor = cookiecutter.max_python_version.split('.')[1] | int %}
7+
8+ {{ cookiecutter.update({
9+ "_min_python_version_minor_int": min_minor,
10+ "_max_python_version_minor_int": max_minor,
11+ "python_versions": ["3." + (i|string) for i in range(min_minor, max_minor + 1)]
12+ }) }}
13+ """
Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ keywords = [
1313 " {{cookiecutter.project_name.replace('_', '-')}}" ,
1414]
1515classifiers = [
16- " Programming Language :: Python :: {{cookiecutter.min_python_version}}" ,
16+ " Operating System :: OS Independent" ,
17+ " Programming Language :: Python :: 3" ,
1718 " Programming Language :: Python :: 3 :: Only" ,
19+ {%- for version in cookiecutter.python_versions %}
20+ "Programming Language :: Python :: {{ version }}",
21+ {%- endfor %}
22+ "{{ cookiecutter.development_status }}"
1823]
1924dependencies = [
2025 " loguru>=0.7.3" ,
You can’t perform that action at this time.
0 commit comments