Skip to content

Commit

Permalink
Make conda generation handle tags like release-X.Y.Z
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Jun 8, 2022
1 parent 7b24012 commit a577ed6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conda/cmake_recipe_template/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package:
{% raw %} name: {{ name }} {% endraw %}
version: "{{ version.replace("v","") }}"
version: "{{ version.replace("v","").replace("release-","") }}"

source:
git_url: https://github.com/{{ github_repo }}.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:
requirements:
# We use run as installing robotology-distro-all should install all robotology packages
run: {# List all packages and the version dependency. #}
{% for pkg in robotology_all_packages %} - {{ pkg.name }}={{ pkg.version.replace("v","") }}
{% for pkg in robotology_all_packages %} - {{ pkg.name }}={{ pkg.version.replace("v","").replace("release-","") }}
{% endfor %}

about:
Expand Down
2 changes: 1 addition & 1 deletion conda/metapackages_recipes_template/robotology-distro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requirements:
# the specified package is used if the package is installed, but
# we do not depend explicitly on the packages
run_constrained: {# List all packages and the version dependency. #}
{% for pkg in robotology_all_packages %} - {{ pkg.name }}={{ pkg.version.replace("v","") }}
{% for pkg in robotology_all_packages %} - {{ pkg.name }}={{ pkg.version.replace("v","").replace("release-","") }}
{% endfor %}

about:
Expand Down

0 comments on commit a577ed6

Please sign in to comment.