diff --git a/CMakeLists.txt b/CMakeLists.txt index d680079..dbbbb6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16) # Initialize the CMake project. project(Trexio - VERSION 2.4.0 + VERSION 2.4.2 DESCRIPTION "TREX I/O library" LANGUAGES C Fortran ) diff --git a/ocaml/trexio/Makefile b/ocaml/trexio/Makefile index 8783f1a..f01743b 100644 --- a/ocaml/trexio/Makefile +++ b/ocaml/trexio/Makefile @@ -10,6 +10,7 @@ lib/trexio.h: sources: lib/trexio.ml lib/trexio.h clean: + rm lib/trexio.h lib/trexio.ml lib/trexio.mli lib/trexio_stubs.c dune clean .PHONY: sources default diff --git a/ocaml/trexio/trexio-2.3.2.tar.gz b/ocaml/trexio/trexio-2.3.2.tar.gz deleted file mode 100644 index 8fa17bb..0000000 Binary files a/ocaml/trexio/trexio-2.3.2.tar.gz and /dev/null differ diff --git a/ocaml/trexio/trexio.opam b/ocaml/trexio/trexio.opam index f38dc69..5d41dca 100644 --- a/ocaml/trexio/trexio.opam +++ b/ocaml/trexio/trexio.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "2.4.0" +version: "2.4.2" synopsis: "Binding for the TREXIO Input/Output library" description: "TREXIO is a file format and library for storing wave functions and integrals for quantum chemistry." diff --git a/python/pytrexio/_version.py b/python/pytrexio/_version.py index 3d67cd6..60be088 100644 --- a/python/pytrexio/_version.py +++ b/python/pytrexio/_version.py @@ -1 +1 @@ -__version__ = "2.4.0" +__version__ = "2.4.2" diff --git a/rust/trexio/build.rs b/rust/trexio/build.rs index 05b6ad8..7625038 100644 --- a/rust/trexio/build.rs +++ b/rust/trexio/build.rs @@ -2,7 +2,6 @@ extern crate reqwest; extern crate tar; extern crate flate2; -const VERSION: &str = "2.4.2"; const WRAPPER_H: &str = "wrapper.h"; const GENERATED_RS: &str = "generated.rs"; @@ -18,8 +17,11 @@ use tar::Archive; fn download_trexio() -> PathBuf { + let version = env::var("CARGO_PKG_VERSION").unwrap(); + println!("Version : {}", version); + let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); - let trexio_url = format!("https://github.com/TREX-CoE/trexio/releases/download/v{VERSION}/trexio-{VERSION}.tar.gz"); + let trexio_url = format!("https://github.com/TREX-CoE/trexio/releases/download/v{version}/trexio-{version}.tar.gz"); // Download the .tar.gz archive let tar_gz = out_path.join("trexio.tar.gz"); @@ -35,7 +37,7 @@ fn download_trexio() -> PathBuf { archive.unpack(trexio_dir.clone()).expect("Failed to unpack"); // Assume that the archive extracts to a directory named 'trexio-0.1.0' - trexio_dir.join(format!("trexio-{}", VERSION)) + trexio_dir.join(format!("trexio-{}", version)) } diff --git a/version_memo.txt b/version_memo.txt new file mode 100644 index 0000000..67fcce7 --- /dev/null +++ b/version_memo.txt @@ -0,0 +1,8 @@ +To update the version, change: + +- configure.ac +- CMakeLists.txt +- ocaml/trexio/trexio.opam +- python/pytrexio/_version.py +- rust/trexio/Cargo.toml +