Skip to content

Commit

Permalink
Release 0.1.13 & use VERSION file only (#58)
Browse files Browse the repository at this point in the history
* Update to 0.1.13
* Use `VERSION` file to set version dynamically

xref: rapidsai/build-planning#15
  • Loading branch information
jakirkham authored Feb 20, 2024
1 parent 19c14cb commit be6b0f3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 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.12
VERSION ${SKBUILD_PROJECT_VERSION}
LANGUAGES CXX CUDA
)

Expand Down
2 changes: 0 additions & 2 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ function sed_runner() {

# 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
6 changes: 5 additions & 1 deletion conda/recipes/pynvjitlink/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Copyright (c) 2018-2024, NVIDIA CORPORATION.

{% set data = load_file_data("pyproject.toml") %}
{% set version = load_file_regex(
load_file="pynvjitlink/VERSION",
regex_pattern="(?P<value>.*)"
)[0] %}
{% set project_data = data.get("project") %}
{% set project_urls = project_data["urls"] %}

package:
name: pynvjitlink
version: {{ project_data["version"] }}
version: {{ version }}

source:
path: ../../..
Expand Down
2 changes: 1 addition & 1 deletion pynvjitlink/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.12
0.1.13
8 changes: 5 additions & 3 deletions 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.12"
dynamic = ["version"]
description = "nvJitLink Python binding"
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
Expand All @@ -29,5 +29,7 @@ License = "https://github.com/rapidsai/pynvjitlink/blob/main/LICENSE"
[tool.setuptools]
license-files = ["LICENSE"]

[tool.setuptools.dynamic]
version = {file = "pynvjitlink/VERSION"}
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "pynvjitlink/VERSION"
regex = "(?P<value>.*)"

0 comments on commit be6b0f3

Please sign in to comment.