Skip to content

Commit 2b6e2ce

Browse files
committed
Added new parameter apt_packages to the copier.yml, applied changes from the code review by @ahms5
1 parent c2ea93e commit 2b6e2ce

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

copier.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,15 @@ dependencies:
9090
type: str
9191
help: |
9292
Enter the dependencies of this project, separate them with commas and do not leave any
93-
spaces between them. These dependencies will be included in the pyproject.toml
94-
and in the .readthedocs.yml files.
95-
default: "numpy,scipy,libsndfile1"
93+
spaces between them. These dependencies will be included in the pyproject.toml file.
94+
default: "numpy,scipy"
95+
96+
apt_packages:
97+
type: str
98+
help: |
99+
Enter the APT packages of this project, separate them with commas and do not leave any
100+
spaces between them.
101+
default: "libsndfile1,"
96102

97103
valid_python_versions:
98104
when: false
@@ -101,7 +107,7 @@ valid_python_versions:
101107
{% set min_index = python_versions.index(minimum_python_version) %}
102108
{{ python_versions[min_index:] }}
103109
104-
default_python_version:
110+
latest_python_version:
105111
when: false
106112
type: yaml
107113
default: >

template/.readthedocs.yml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ version: 2
99
build:
1010
os: ubuntu-24.04
1111
tools:
12-
python: {{ default_python_version }}
13-
{% if 'libsndfile1' in dependencies -%}
12+
python: {{ latest_python_version }}
13+
{% if 'libsndfile1' in apt_packages -%}
1414
apt_packages:
1515
- libsndfile1
1616
{%- endif %}

0 commit comments

Comments
 (0)