Skip to content

Commit

Permalink
Merge branch 'main' into no-mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
Bela Stoyan authored Jan 28, 2024
2 parents aa98061 + 50971ee commit 0bcb086
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ entry:
{% if entry == '' %}
Please provide an entry
{% endif %}
conda_package:
type: str
help: What is the conda package name?
default: '{{ tool }}'
validator: >-
{% if conda_package == '' %}
Please provide a conda package name
{% endif %}
description:
type: str
help: What is the description of the tool?
default: This hook runs {{ tool }}.

_tasks:
- sed -i "s/TOOL_VERSION/$(micromamba search -c conda-forge {{ tool }} --json | jq -r '.result.pkgs[0].version')/g" environment.yml
- sed -i "s/TOOL_VERSION/$(micromamba search -c conda-forge {{ conda_package }} --json | jq -r '.result.pkgs[0].version')/g" environment.yml
- git init
- git branch -M main
2 changes: 1 addition & 1 deletion template/environment.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ channels:
- conda-forge
- nodefaults
dependencies:
- {{ tool }}=TOOL_VERSION
- {{ conda_package }}=TOOL_VERSION

0 comments on commit 0bcb086

Please sign in to comment.