Skip to content

Commit 7cb5e4e

Browse files
committed
fix
1 parent 90867ec commit 7cb5e4e

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

copier.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@ project_slug:
1616
type: str
1717
help: What is your project slug (i.e. pypi package name)?
1818
placeholder: "{{ extension_type }}-<your_extension_name>"
19-
validator: >-
20-
{% if '_' in project_slug or ' ' in project_slug or '.' in project_slug %}
21-
The project slug should not contain underscores, spaces or dots.
22-
{% endif %}
23-
{% if extension_type == 'panel' and not project_slug.startswith('panel-') %}
24-
The project slug should start with `panel-`.
25-
{% endif %}
26-
{% if extension_type == 'lumen' and not project_slug.startswith('lumen-') %}
27-
The project slug should start with `lumen-`.
28-
{% endif %}
19+
validator: "{% if '_' in project_slug or ' ' in project_slug or '.' in project_slug %}The project slug should not contain underscores, spaces or dots.{% endif %}{% if extension_type == 'panel' and not project_slug.startswith('panel-') %}The project slug should start with `panel-`.{% endif %}{% if extension_type == 'lumen' and not project_slug.startswith('lumen-') %}The project slug should start with `lumen-`.{% endif %}"
2920

3021
project_slug_snake_case:
3122
type: str
@@ -54,10 +45,7 @@ github_url:
5445
type: str
5546
help: What is the GitHub url of this project?
5647
default: https://github.com/{{ github_user }}/{{ project_slug }}
57-
validator: >-
58-
{% if not github_url.startswith('https://github.com/') or github_url.endswith('.git') %}
59-
The GitHub URL should start with `https://github.com/` and not end with `.git`, for example `https://github.com/LandoCalrissian/python-project`.
60-
{% endif %}
48+
validator: "{% if not github_url.startswith('https://github.com/') or github_url.endswith('.git') %}The GitHub URL should start with `https://github.com/` and not end with `.git`, for example `https://github.com/LandoCalrissian/python-project`.{% endif %}"
6149

6250
docs_url:
6351
type: str
@@ -68,13 +56,12 @@ minimal_python_version:
6856
type: str
6957
help: What is the minimal Python version you want to support?
7058
choices:
71-
{%- if extension_type == 'panel' %}
7259
- py310
73-
{%- endif %}
7460
- py311
7561
- py312
7662
- py313
7763
default: "{{ 'py311' if extension_type == 'lumen' else 'py310' }}"
64+
validator: "{% if extension_type == 'lumen' and minimal_python_version == 'py310' %}Lumen requires Python >= 3.11. Please select py311 or higher.{% endif %}"
7865

7966
minimal_python_version_sortable:
8067
type: str

0 commit comments

Comments
 (0)