From dfe7c014fe774caf2b0d09e4fbd87e0307c2b2bc Mon Sep 17 00:00:00 2001 From: Alexander Hampel Date: Tue, 26 Sep 2023 15:24:08 -0400 Subject: [PATCH] [build] automatically set version in packaging --- packaging/CMakeLists.txt | 7 +++++++ ....2.0-foss-2021b.eb => TRIQS-app4triqs-foss-2021b.eb.in} | 2 +- packaging/conda/{meta.yaml => meta.yaml.in} | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 packaging/CMakeLists.txt rename packaging/{TRIQS-app4triqs-3.2.0-foss-2021b.eb => TRIQS-app4triqs-foss-2021b.eb.in} (97%) rename packaging/conda/{meta.yaml => meta.yaml.in} (96%) diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt new file mode 100644 index 0000000..748dc4a --- /dev/null +++ b/packaging/CMakeLists.txt @@ -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) + + diff --git a/packaging/TRIQS-app4triqs-3.2.0-foss-2021b.eb b/packaging/TRIQS-app4triqs-foss-2021b.eb.in similarity index 97% rename from packaging/TRIQS-app4triqs-3.2.0-foss-2021b.eb rename to packaging/TRIQS-app4triqs-foss-2021b.eb.in index 113872b..c5c96f2 100644 --- a/packaging/TRIQS-app4triqs-3.2.0-foss-2021b.eb +++ b/packaging/TRIQS-app4triqs-foss-2021b.eb.in @@ -1,7 +1,7 @@ easyblock = 'CMakeMake' name = 'TRIQS-app4triqs' -version = '3.2.0' +version = '@PROJECT_VERSION@' homepage = 'https://triqs.github.io/app4triqs/' description = """ diff --git a/packaging/conda/meta.yaml b/packaging/conda/meta.yaml.in similarity index 96% rename from packaging/conda/meta.yaml rename to packaging/conda/meta.yaml.in index 7345f85..bad6e1c 100644 --- a/packaging/conda/meta.yaml +++ b/packaging/conda/meta.yaml.in @@ -1,4 +1,4 @@ -{% set version = "3.2.0" %} +{% set version = "@PROJECT_VERSION@" %} package: name: app4triqs