version number automated for python build

This commit is contained in:
mazzol_a
2025-04-22 14:00:45 +02:00
parent 7c8639b8ae
commit da760b2b93
5 changed files with 43 additions and 15 deletions

8
conda-recipes/build_conda.sh Executable file
View File

@ -0,0 +1,8 @@
SCRIPTDIR=$(cd "$(dirname "$0")" && pwd)
VERSION=$(cat $SCRIPTDIR/../VERSION)
export VERSION
echo "building conda package version: $VERSION"
conda build .

View File

@ -1,8 +1,8 @@
#{% set version = load_file('VERSION').strip %}
package:
name: sls_detector_software
version: 2025.3.19
version: {{ environ.get('VERSION') }} #2025.3.19
source:
path: ../..

View File

@ -1,7 +1,7 @@
package:
name: slsdet
version: 2025.3.19 #TODO! how to not duplicate this?
version: 0.0.0
source:
path: ../..