Skip to content

Commit ba9f605

Browse files
authored
Merge pull request #56 from robust-python/develop
Add Pypi Classifiers
2 parents 6893752 + 534838c commit ba9f605

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

hooks/post_gen_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
"""Cookiecutter hook that runs after template generation."""
23
import json
34
import shutil
45
import stat

hooks/pre_gen_project.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
"""

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ keywords = [
1313
"{{cookiecutter.project_name.replace('_', '-')}}",
1414
]
1515
classifiers = [
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
]
1924
dependencies = [
2025
"loguru>=0.7.3",

0 commit comments

Comments
 (0)