mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-21 11:53:54 +01:00
Changeed version to 2.4.2 in OCaml, Rust Python and CMake. Added version_memo.txt to remember changes ;-)
This commit is contained in:
parent
9113da7185
commit
51afc129ab
@ -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
|
||||
)
|
||||
|
@ -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
|
||||
|
Binary file not shown.
@ -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."
|
||||
|
@ -1 +1 @@
|
||||
__version__ = "2.4.0"
|
||||
__version__ = "2.4.2"
|
||||
|
@ -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))
|
||||
}
|
||||
|
||||
|
||||
|
8
version_memo.txt
Normal file
8
version_memo.txt
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user