Skip to content

Commit

Permalink
Add: detect package version automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
wwang-chcn committed Aug 25, 2024
1 parent 1528415 commit c9c4445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conda-recipe/build_conda.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

export TAG_VERSION=$(git describe --tags --abbrev=0)

export PYTHON_VERSION=$1
export TORCH_VERSION=$2
export CUDA_VERSION=$3
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: ontrac
version: {{ GIT_DESCRIBE_TAG }}
version: {{ environ.get('TAG_VERSION') }}

source:
path: ../
Expand Down

0 comments on commit c9c4445

Please sign in to comment.