Skip to content

Commit

Permalink
Release 0.1.9 (#44)
Browse files Browse the repository at this point in the history
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 <bdice@bradleydice.com>
  • Loading branch information
jakirkham and bdice authored Jan 16, 2024
1 parent ccf6689 commit 30314b3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
21 changes: 21 additions & 0 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION.

## Usage
# bash update-version.sh <new_version>


# 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
2 changes: 1 addition & 1 deletion pynvjitlink/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.6
0.1.9
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 30314b3

Please sign in to comment.