From a577ed6775599131fe8ec75c0011ef05a54afa4c Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 8 Jun 2022 09:28:23 +0200 Subject: [PATCH] Make conda generation handle tags like release-X.Y.Z --- conda/cmake_recipe_template/meta.yaml | 2 +- conda/metapackages_recipes_template/robotology-distro-all.yaml | 2 +- conda/metapackages_recipes_template/robotology-distro.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conda/cmake_recipe_template/meta.yaml b/conda/cmake_recipe_template/meta.yaml index 8301fdedd..f34c90ece 100644 --- a/conda/cmake_recipe_template/meta.yaml +++ b/conda/cmake_recipe_template/meta.yaml @@ -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 diff --git a/conda/metapackages_recipes_template/robotology-distro-all.yaml b/conda/metapackages_recipes_template/robotology-distro-all.yaml index 0070e1e13..c4b49eeaa 100644 --- a/conda/metapackages_recipes_template/robotology-distro-all.yaml +++ b/conda/metapackages_recipes_template/robotology-distro-all.yaml @@ -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: diff --git a/conda/metapackages_recipes_template/robotology-distro.yaml b/conda/metapackages_recipes_template/robotology-distro.yaml index 877f2d301..bc63d2463 100644 --- a/conda/metapackages_recipes_template/robotology-distro.yaml +++ b/conda/metapackages_recipes_template/robotology-distro.yaml @@ -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: