From 30314b3e5e0cd1cafc2d46d23840f3793782f02d Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 16 Jan 2024 06:47:08 -0800 Subject: [PATCH] Release 0.1.9 (#44) Fixes for previous botched releases * Had tagged `0.1.8`, but missed these changes. Fixing by bumping past it * Also missed that `pynvjitlink/VERSION` has a hard-coded version in `0.1.7`. So updating it now Would recommend we simplify/automate this release process --------- Co-authored-by: Bradley Dice --- CMakeLists.txt | 2 +- ci/release/update-version.sh | 21 +++++++++++++++++++++ pynvjitlink/VERSION | 2 +- pyproject.toml | 2 +- 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100755 ci/release/update-version.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index acbd4691..a00a9839 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.26.4 FATAL_ERROR) project( pynvjitlink - VERSION 0.1.7 + VERSION 0.1.9 LANGUAGES CXX CUDA ) diff --git a/ci/release/update-version.sh b/ci/release/update-version.sh new file mode 100755 index 00000000..d3813cfa --- /dev/null +++ b/ci/release/update-version.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Copyright (c) 2024, NVIDIA CORPORATION. + +## Usage +# bash update-version.sh + + +# Format is MAJOR.MINOR.PATCH - no leading 'v' or trailing 'a' +NEXT_FULL_TAG=$1 + +echo "Preparing release $CURRENT_TAG => $NEXT_FULL_TAG" + +# Inplace sed replace; workaround for Linux and Mac +function sed_runner() { + sed -i.bak ''"$1"'' $2 && rm -f ${2}.bak +} + +# Centralized version file update +echo "${NEXT_FULL_TAG}" > pynvjitlink/VERSION +sed_runner 's/'"^ VERSION [0-9\.]*"'/'" VERSION ${NEXT_FULL_TAG}"'/g' CMakeLists.txt +sed_runner 's/^version = "[0-9\.]*"/version = "'${NEXT_FULL_TAG}'"/g' pyproject.toml diff --git a/pynvjitlink/VERSION b/pynvjitlink/VERSION index c946ee61..1a030947 100644 --- a/pynvjitlink/VERSION +++ b/pynvjitlink/VERSION @@ -1 +1 @@ -0.1.6 +0.1.9 diff --git a/pyproject.toml b/pyproject.toml index 1589d05b..2b3d1774 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build" [project] name = "pynvjitlink" -version = "0.1.7" +version = "0.1.9" description = "nvJitLink Python binding" readme = { file = "README.md", content-type = "text/markdown" } authors = [