diff --git a/CMakeLists.txt b/CMakeLists.txt index 06881a39..4c9f7fb9 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.12 + VERSION ${SKBUILD_PROJECT_VERSION} LANGUAGES CXX CUDA ) diff --git a/ci/release/update-version.sh b/ci/release/update-version.sh index d3813cfa..7b071644 100755 --- a/ci/release/update-version.sh +++ b/ci/release/update-version.sh @@ -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 diff --git a/conda/recipes/pynvjitlink/meta.yaml b/conda/recipes/pynvjitlink/meta.yaml index ef53cbc4..094cd32c 100644 --- a/conda/recipes/pynvjitlink/meta.yaml +++ b/conda/recipes/pynvjitlink/meta.yaml @@ -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.*)" +)[0] %} {% set project_data = data.get("project") %} {% set project_urls = project_data["urls"] %} package: name: pynvjitlink - version: {{ project_data["version"] }} + version: {{ version }} source: path: ../../.. diff --git a/pynvjitlink/VERSION b/pynvjitlink/VERSION index 0e24a92f..7ac4e5e3 100644 --- a/pynvjitlink/VERSION +++ b/pynvjitlink/VERSION @@ -1 +1 @@ -0.1.12 +0.1.13 diff --git a/pyproject.toml b/pyproject.toml index 50459174..424c7749 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [ @@ -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.*)"