Skip to content

Commit 89ffc82

Browse files
authored
Merge pull request #199 from KhiopsML/fix_versioning_for_conda
Fix Conda package version extraction from Git tag
2 parents 08fac72 + e5bc7e5 commit 89ffc82

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packaging/conda/meta.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{% set metadata = load_setup_py_data(setup_file='../../setup.py', from_recipe_dir=True) %}
22
package:
33
name: {{ metadata.get('name') }}
4-
version: {{ metadata.get('version') }}
4+
# The Conda version cannot contain the '-' character, so we eliminate it
5+
version: {{ metadata.get('version') | replace('-', '') }}
56

67
source:
78
path: ../../

0 commit comments

Comments
 (0)