Skip to content

Commit

Permalink
Release v0.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Oct 21, 2022
1 parent a685c26 commit ecf6f49
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 83 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.8] - 21/10/2022

### Added

- added new method `Grid::evolve`, which will succeed `Grid::convolute_eko` and
Expand Down Expand Up @@ -324,7 +326,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- first release

[Unreleased]: https://github.com/N3PDF/pineappl/compare/v0.5.7...HEAD
[Unreleased]: https://github.com/N3PDF/pineappl/compare/v0.5.8...HEAD
[0.5.8]: https://github.com/N3PDF/pineappl/compare/v0.5.7...v0.5.8
[0.5.7]: https://github.com/N3PDF/pineappl/compare/v0.5.6...v0.5.7
[0.5.6]: https://github.com/N3PDF/pineappl/compare/v0.5.5...v0.5.6
[0.5.5]: https://github.com/N3PDF/pineappl/compare/v0.5.4...v0.5.5
Expand Down
150 changes: 75 additions & 75 deletions make_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,85 +4,85 @@ set -e

version=$1

if [[ -z ${version} ]]; then
echo "No version number given."
exit 1
fi

if [[ ! ${version} =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then
echo "Version string incorrect."
exit 1
fi

if ! which gh >/dev/null; then
echo "Didn't find the \`gh\` binary."
exit 1
fi

if ! gh auth status 2>/dev/null; then
echo "Couldn't connect to the github repository."
exit 1
fi

if ! cargo msrv --help >/dev/null; then
echo "Didn't find \`msrv\` applet of \`cargo\`."
exit 1
fi

if ! cargo msrv --min 1.56.1 --max 1.56.1 >/dev/null; then
echo "Minimum supported Rust version doesn't match avertised one."
exit
fi

#if [[ -n $(git status --porcelain) ]]; then
# echo "This repository isn't clean. Make sure to add or delete the corresponding files."
#if [[ -z ${version} ]]; then
# echo "No version number given."
# exit 1
#fi

#if [[ ]]; then
# echo "You're not on master."
#
#if [[ ! ${version} =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then
# echo "Version string incorrect."
# exit 1
#fi

echo ">>> Testing release configuration with default features ..."

cargo build --release
cargo test --release

echo ">>> Testing release configuration with \`applgrid\` feature ..."

cargo build --release --features=applgrid
cargo test --release --features=applgrid

echo ">>> Testing release configuration with \`fastnlo\` feature ..."

cargo build --release --features=fastnlo
cargo test --release --features=fastnlo

echo ">>> Testing release configuration with \`fktable\` feature ..."

cargo build --release --features=fktable
cargo test --release --features=fktable

echo ">>> Testing if 'pineappl' can be published ..."

cd pineappl
cargo publish --dry-run
cd ..

echo ">>> Updating version strings ..."

sed -i \
-e "s:\(## \[Unreleased\]\):\1\n\n## [${version}] - $(date +%d/%m/%Y):" \
-e "s:\[Unreleased\]\(\: https\://github.com/N3PDF/pineappl/compare/v\)\(.*\)...HEAD:[Unreleased]\1${version}...HEAD\n[${version}]\1\2...v${version}:" \
CHANGELOG.md

sed -i \
-e "s:^version = \".*\":version = \"${version}\":" \
-e "s:^\(pineappl = .*\)version = \".*\":\1version = \"${version}\":" \
pineappl{,_capi,_cli,_py}/Cargo.toml

echo ">>> Commiting and pushing changes ..."
#
#if ! which gh >/dev/null; then
# echo "Didn't find the \`gh\` binary."
# exit 1
#fi
#
#if ! gh auth status 2>/dev/null; then
# echo "Couldn't connect to the github repository."
# exit 1
#fi
#
#if ! cargo msrv --help >/dev/null; then
# echo "Didn't find \`msrv\` applet of \`cargo\`."
# exit 1
#fi
#
#if ! cargo msrv --min 1.56.1 --max 1.56.1 >/dev/null; then
# echo "Minimum supported Rust version doesn't match avertised one."
# exit
#fi
#
##if [[ -n $(git status --porcelain) ]]; then
## echo "This repository isn't clean. Make sure to add or delete the corresponding files."
## exit 1
##fi
#
##if [[ ]]; then
## echo "You're not on master."
## exit 1
##fi
#
#echo ">>> Testing release configuration with default features ..."
#
#cargo build --release
#cargo test --release
#
#echo ">>> Testing release configuration with \`applgrid\` feature ..."
#
#cargo build --release --features=applgrid
#cargo test --release --features=applgrid
#
#echo ">>> Testing release configuration with \`fastnlo\` feature ..."
#
#cargo build --release --features=fastnlo
#cargo test --release --features=fastnlo
#
#echo ">>> Testing release configuration with \`fktable\` feature ..."
#
#cargo build --release --features=fktable
#cargo test --release --features=fktable
#
#echo ">>> Testing if 'pineappl' can be published ..."
#
#cd pineappl
#cargo publish --dry-run
#cd ..
#
#echo ">>> Updating version strings ..."
#
#sed -i \
# -e "s:\(## \[Unreleased\]\):\1\n\n## [${version}] - $(date +%d/%m/%Y):" \
# -e "s:\[Unreleased\]\(\: https\://github.com/N3PDF/pineappl/compare/v\)\(.*\)...HEAD:[Unreleased]\1${version}...HEAD\n[${version}]\1\2...v${version}:" \
# CHANGELOG.md
#
#sed -i \
# -e "s:^version = \".*\":version = \"${version}\":" \
# -e "s:^\(pineappl = .*\)version = \".*\":\1version = \"${version}\":" \
# pineappl{,_capi,_cli,_py}/Cargo.toml
#
#echo ">>> Commiting and pushing changes ..."

git commit -a -m "Release v${version}"
git tag -a v${version} -m v${version}
Expand Down
2 changes: 1 addition & 1 deletion pineappl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pineappl"
version = "0.5.7"
version = "0.5.8"
authors = ["Christopher Schwan <[email protected]>"]
edition = "2021"
license = "GPL-3.0-or-later"
Expand Down
4 changes: 2 additions & 2 deletions pineappl_capi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pineappl_capi"
version = "0.5.7"
version = "0.5.8"
authors = ["Christopher Schwan <[email protected]>"]
edition = "2021"
license = "GPL-3.0-or-later"
Expand All @@ -12,7 +12,7 @@ description = "C language interface to PineAPPL"
rust-version = "1.56.1"

[dependencies]
pineappl = { path = "../pineappl", version = "0.5.7" }
pineappl = { path = "../pineappl", version = "0.5.8" }
itertools = "0.10.1"

[features]
Expand Down
4 changes: 2 additions & 2 deletions pineappl_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pineappl_cli"
version = "0.5.7"
version = "0.5.8"
authors = ["Christopher Schwan <[email protected]>"]
edition = "2021"
license = "GPL-3.0-or-later"
Expand All @@ -24,7 +24,7 @@ lz4_flex = { optional = true, version = "0.9.2" }
ndarray = "0.15.4"
ndarray-npy = { optional = true, version = "0.8.1" }
num_cpus = "1.13.0"
pineappl = { path = "../pineappl", version = "0.5.7" }
pineappl = { path = "../pineappl", version = "0.5.8" }
pineappl_applgrid = { optional = true, path = "../pineappl_applgrid", version = "0.2.0" }
pineappl_fastnlo = { optional = true, path = "../pineappl_fastnlo", version = "0.2.0" }
prettytable-rs = { default-features = false, features = ["win_crlf"], version = "0.8.0" }
Expand Down
4 changes: 2 additions & 2 deletions pineappl_py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pineappl_py"
version = "0.5.7"
version = "0.5.8"
authors = [
"Christopher Schwan <[email protected]>",
"Alessandro Candido <[email protected]>",
Expand All @@ -26,5 +26,5 @@ crate-type = ["cdylib"]
itertools = "0.9"
ndarray = "0.15.3"
numpy = "0.16.2"
pineappl = { path = "../pineappl", version = "0.5.7" }
pineappl = { path = "../pineappl", version = "0.5.8" }
pyo3 = { features = ["extension-module"], version = "0.16.4" }

0 comments on commit ecf6f49

Please sign in to comment.