Skip to content

Commit

Permalink
[build] automatically set version in packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Sep 26, 2023
1 parent 0ca04d2 commit dfe7c01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)


Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
easyblock = 'CMakeMake'

name = 'TRIQS-app4triqs'
version = '3.2.0'
version = '@PROJECT_VERSION@'

homepage = 'https://triqs.github.io/app4triqs/'
description = """
Expand Down
2 changes: 1 addition & 1 deletion packaging/conda/meta.yaml → packaging/conda/meta.yaml.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "3.2.0" %}
{% set version = "@PROJECT_VERSION@" %}

package:
name: app4triqs
Expand Down

0 comments on commit dfe7c01

Please sign in to comment.