[build] automatically set version in packaging

This commit is contained in:
Alexander Hampel 2023-09-26 15:24:08 -04:00
parent 0ca04d26a7
commit dfe7c014fe
3 changed files with 9 additions and 2 deletions

7
packaging/CMakeLists.txt Normal file
View File

@ -0,0 +1,7 @@
# Configure the version of packaging files
configure_file(conda/meta.yaml.in conda/meta.yaml)
configure_file(conda/build.sh conda/build.sh COPYONLY)
configure_file(conda/conda_build_config.yaml conda/conda_build_config.yaml COPYONLY)
configure_file(TRIQS-app4triqs-foss-2021b.eb.in TRIQS-app4triqs-foss-2021b.eb)

View File

@ -1,7 +1,7 @@
easyblock = 'CMakeMake'
name = 'TRIQS-app4triqs'
version = '3.2.0'
version = '@PROJECT_VERSION@'
homepage = 'https://triqs.github.io/app4triqs/'
description = """

View File

@ -1,4 +1,4 @@
{% set version = "3.2.0" %}
{% set version = "@PROJECT_VERSION@" %}
package:
name: app4triqs