Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add wheel output #369

Merged
merged 82 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
d650fa7
WIP: add wheel output
msarahan Apr 17, 2024
1faa517
reorganize python folder to allow for libkvikio wheel
msarahan Apr 17, 2024
ea1992b
fix matrix_filter in the wrong place
msarahan Apr 17, 2024
3b35c05
fix executability and add missing pyproject.toml
msarahan Apr 17, 2024
3f9e1fe
fix version file location
msarahan Apr 17, 2024
a3e25f1
fix missing lib files
msarahan Apr 22, 2024
f8b55e0
remove load.py (kvikio is header-only)
msarahan Apr 23, 2024
1c7ebd9
renaming workflows for consistency. Fix path for build.sh python
msarahan Apr 30, 2024
f3cfff0
straighten out paths from python deeper nesting
msarahan Apr 30, 2024
3dceb00
linting cmake format
msarahan Apr 30, 2024
4ebecce
add librmm wheel dep from PR, disable cmake find debugging
msarahan May 1, 2024
9206dcd
adapt devcontainer run to account for different python package path
msarahan May 1, 2024
3298a1a
adjust cpm path; add cpm init to libkvikio wheel
msarahan May 1, 2024
5002499
fix relpath to findcufile
msarahan May 1, 2024
0a9b650
rapids cuda init architectures fix
msarahan May 1, 2024
eebdb55
Apply suggestions from code review
msarahan May 3, 2024
7f2a9d7
adjusting dependencies and wheel tagging
msarahan May 3, 2024
e016651
remove build deps from py_wheel_cpp
msarahan May 3, 2024
e056546
remove findCufile in libkvikio wheel cmakelists
msarahan May 3, 2024
55349a0
add wheel-python-tests in pr.yaml
msarahan May 3, 2024
3bc31e2
comment librmm inclusion
msarahan May 3, 2024
1249409
fix dependency on scikit-build for wheel
msarahan May 3, 2024
430ffd2
fix dependency on scikit-build for wheel
msarahan May 3, 2024
977d905
fix dependency on scikit-build for wheel
msarahan May 3, 2024
28f0dbd
add wheel dep
msarahan May 3, 2024
4fd111f
wheel has to be installed in build scripts
msarahan May 3, 2024
e2e73b8
wheel has to be installed in build scripts
msarahan May 3, 2024
550b21d
fix s3 download cpp wheel filename
msarahan May 3, 2024
71ba140
move libkvikio wheel to build reqs for kvikio wheel (header-only!)
msarahan May 3, 2024
33d5b8a
add wheel.py-api to libkvikio wheel
msarahan May 6, 2024
04801ef
fix missing -cuXY version for libkvikio
msarahan May 6, 2024
ff4e2bb
add install_aliased_imported_targets for nvcomp
msarahan May 7, 2024
abef47d
style
msarahan May 7, 2024
4331fd8
try to get CMake install_aliased_imported_targets working
msarahan May 7, 2024
899f249
remove unused get_nvcomp.cmake
msarahan May 7, 2024
ab4deb5
fix wrong WheelHelpers.cmake
msarahan May 7, 2024
a048172
reorganize python kvikio cmake
msarahan May 7, 2024
a58f445
restore get_nvcomp.cmake, move WheelHelpers.cmake
msarahan May 7, 2024
e8d1f22
typo in cmake thirdparty include
msarahan May 7, 2024
891c1ce
set cython lib dir
msarahan May 7, 2024
a8d7377
install nvcomp stuff into _lib subfolder alongside cython .so's
msarahan May 7, 2024
f4fbf11
add simple wheel install/test script
msarahan May 7, 2024
5e1f76b
Merge remote-tracking branch 'upstream/branch-24.06' into wheel-build
msarahan May 7, 2024
a33f3fa
chmod +x test_wheel.sh
msarahan May 7, 2024
efa116e
fix nesting too deep in test folder
msarahan May 7, 2024
5eb6b80
Apply suggestions from code review
msarahan May 7, 2024
798c60b
fix cuda-python not adjusting for cuda version
msarahan May 7, 2024
de87c1c
adjust more copyright dates
msarahan May 7, 2024
2b22c5a
add sed for cupy-cuda11x -> cupy-cuda12x on cuda 12
msarahan May 7, 2024
3d97ce3
add early cmake exit in libkvikio wheel if kvikio is already available
msarahan May 8, 2024
0860a99
add wheel publishing in build.yaml
msarahan May 8, 2024
9b89b29
cmake style fix
msarahan May 8, 2024
0e4beee
Update .github/workflows/build.yaml
msarahan May 8, 2024
649397d
Merge branch 'branch-24.06' into wheel-build
hcho3 May 28, 2024
d04de8b
Merge branch 'branch-24.08' into wheel-build
hcho3 Jun 4, 2024
d82635e
Bump libkvikio version
hcho3 Jun 6, 2024
619b9a1
Merge remote-tracking branch 'origin/branch-24.08' into wheel-build
hcho3 Jun 6, 2024
bbed671
Use latest workflows
hcho3 Jun 6, 2024
3dce076
Address reviewers' comments
hcho3 Jun 6, 2024
ff2182a
Fix formatting
hcho3 Jun 6, 2024
1b415f0
Defer to existing FindcuFile module
hcho3 Jun 6, 2024
3d1ac24
Remove unneeded build.sh
hcho3 Jun 6, 2024
8f058b9
Apply suggestions from code review
hcho3 Jun 7, 2024
ccbfd22
Removed outdated comment
hcho3 Jun 7, 2024
84d9e33
Use a separate build.sh
hcho3 Jun 7, 2024
eb127c4
Merge branch 'branch-24.08' into wheel-build
hcho3 Jun 7, 2024
e5c322b
Merge branch 'branch-24.08' of github.com:rapidsai/kvikio into wheel-…
msarahan Jun 17, 2024
5b9da4a
rapids-build-backend for python extension-only wheel
msarahan Jun 17, 2024
7c83f47
fix dependencies-file relative path
msarahan Jun 17, 2024
e2e46fe
always set cython_lib_dir
msarahan Jun 17, 2024
cbfd5f5
attempt to cut out sed stuff that RBB obviates
msarahan Jun 17, 2024
a32ad58
add RBB for libkvikio
msarahan Jun 17, 2024
df85d25
install RBB in build_wheel_*scripts
msarahan Jun 18, 2024
db0ce3b
rbb in build deps for libkvikio
msarahan Jun 18, 2024
bf7dc54
tweak build-backend in libkvikio pyproject.toml
msarahan Jun 18, 2024
f461ab2
libkvikio dynamic dep for pyproject
msarahan Jun 18, 2024
5e2560b
allow alpha specs
msarahan Jun 18, 2024
dd2d246
clean up some unnecessary changes
msarahan Jun 18, 2024
5706ee3
revert WheelHelpers removal and add note about install_aliased_import…
msarahan Jun 18, 2024
b728c93
Apply suggestions from code review
msarahan Jun 18, 2024
5a8ab66
clean up extraneous skbuild stuff (from review)
msarahan Jun 18, 2024
3cf7f82
Apply suggestions from code review
vyasr Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- conda-python-tests
- docs-build
- devcontainer
- wheel-cpp-build
- wheel-python-build
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
checks:
Expand Down Expand Up @@ -64,7 +66,33 @@ jobs:
with:
arch: '["amd64"]'
cuda: '["12.2"]'
# HACK: the yq and rapids-generate-script here is a stopgap until both of these PRs are merged:
# - https://github.com/rapidsai/kvikio/pull/369
# - https://github.com/rapidsai/devcontainers/pull/283
hcho3 marked this conversation as resolved.
Show resolved Hide resolved
build_command: |
sudo yq -i '.repos[2].python[0].sub_dir = "python/kvikio"' /opt/rapids-build-utils/manifest.yaml;
rapids-generate-scripts;
msarahan marked this conversation as resolved.
Show resolved Hide resolved
sccache -z;
build-all --verbose;
sccache -s;
wheel-cpp-build:
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
with:
matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber)))
build_type: pull-request
script: ci/build_wheel_cpp.sh
wheel-python-build:
msarahan marked this conversation as resolved.
Show resolved Hide resolved
needs: wheel-cpp-build
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
with:
build_type: pull-request
script: ci/build_wheel_python.sh
wheel-python-tests:
needs: wheel-python-build
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
with:
build_type: pull-request
script: ci/run_pytests.sh
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
hooks:
- id: black
files: python/.*
args: ["--config", "python/pyproject.toml"]
args: ["--config", "python/kvikio/pyproject.toml"]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
Expand All @@ -37,11 +37,11 @@ repos:
hooks:
- id: mypy
additional_dependencies: [types-cachetools]
args: ["--config-file=python/pyproject.toml",
"python/kvikio",
"python/tests",
"python/examples",
"python/benchmarks"]
args: ["--config-file=python/kvikio/pyproject.toml",
"python/kvikio/kvikio",
"python/kvikio/tests",
"python/kvikio/examples",
"python/kvikio/benchmarks"]
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fi
# Build and install the kvikio Python package
if (( NUMARGS == 0 )) || hasArg kvikio; then
echo "building kvikio..."
cd ${REPODIR}/python
cd ${REPODIR}/python/kvikio
SKBUILD_CMAKE_ARGS="-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX};-DCMAKE_LIBRARY_PATH=${LIBKVIKIO_BUILD_DIR};${EXTRA_CMAKE_ARGS}" \
python -m pip install --no-build-isolation --no-deps .
fi
38 changes: 38 additions & 0 deletions ci/build_wheel_cpp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash
# Copyright (c) 2023-2024, NVIDIA CORPORATION.

set -euo pipefail

package_name="libkvikio"
package_dir="python/libkvikio"

source rapids-configure-sccache
source rapids-date-string

version=$(rapids-generate-version)
commit=$(git rev-parse HEAD)

RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"

# This is the version of the suffix with a preceding hyphen. It's used
# everywhere except in the final wheel name.
PACKAGE_CUDA_SUFFIX="-${RAPIDS_PY_CUDA_SUFFIX}"

pyproject_file="${package_dir}/pyproject.toml"
msarahan marked this conversation as resolved.
Show resolved Hide resolved

sed -i "s/name = \"${package_name}\"/name = \"${package_name}${PACKAGE_CUDA_SUFFIX}\"/g" ${pyproject_file}
echo "${version}" > VERSION
sed -i "/^__git_commit__/ s/= .*/= \"${commit}\"/g" "${package_dir}/${package_name}/_version.py"

if [[ $PACKAGE_CUDA_SUFFIX == "-cu12" ]]; then
sed -i "s/cuda-python[<=>\.,0-9a]*/cuda-python>=12.0,<13.0a0/g" ${pyproject_file}
fi

hcho3 marked this conversation as resolved.
Show resolved Hide resolved
librmm_wheelhouse=$(RAPIDS_PY_WHEEL_NAME="${RAPIDS_PY_CUDA_SUFFIX}" rapids-get-pr-wheel-artifact rmm 1529 cpp)
msarahan marked this conversation as resolved.
Show resolved Hide resolved

cd "${package_dir}"

python -m pip wheel . -w dist -vvv --no-deps --disable-pip-version-check --find-links "${librmm_wheelhouse}"
python -m wheel tags --platform any dist/* --remove

RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" rapids-upload-wheels-to-s3 cpp dist
40 changes: 40 additions & 0 deletions ci/build_wheel_python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
# Copyright (c) 2023-2024, NVIDIA CORPORATION.

set -euo pipefail

package_name="kvikio"
package_dir="python/kvikio"

source rapids-configure-sccache
source rapids-date-string

version=$(rapids-generate-version)
commit=$(git rev-parse HEAD)
msarahan marked this conversation as resolved.
Show resolved Hide resolved

RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"

vyasr marked this conversation as resolved.
Show resolved Hide resolved
# This is the version of the suffix with a preceding hyphen. It's used
# everywhere except in the final wheel name.
PACKAGE_CUDA_SUFFIX="-${RAPIDS_PY_CUDA_SUFFIX}"

pyproject_file="${package_dir}/pyproject.toml"
msarahan marked this conversation as resolved.
Show resolved Hide resolved

sed -i "s/name = \"${package_name}\"/name = \"${package_name}${PACKAGE_CUDA_SUFFIX}\"/g" ${pyproject_file}
echo "${version}" > VERSION
sed -i "/^__git_commit__/ s/= .*/= \"${commit}\"/g" "${package_dir}/${package_name}/_version.py"

if [[ $PACKAGE_CUDA_SUFFIX == "-cu12" ]]; then
sed -i "s/cuda-python[<=>\.,0-9a]*/cuda-python>=12.0,<13.0a0/g" ${pyproject_file}
fi

CPP_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 cpp /tmp/libkvikio_dist)

cd "${package_dir}"

python -m pip wheel . -w dist -vvv --no-deps --disable-pip-version-check --find-links ${CPP_WHEELHOUSE}

mkdir -p final_dist
python -m auditwheel repair -w final_dist dist/*

RAPIDS_PY_WHEEL_NAME="${package_name}_${RAPIDS_PY_CUDA_SUFFIX}" rapids-upload-wheels-to-s3 final_dist
2 changes: 1 addition & 1 deletion conda/recipes/kvikio/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ build:
- SCCACHE_S3_USE_SSL
- SCCACHE_S3_NO_CREDENTIALS
script:
- cd python
- cd python/kvikio
- python -m pip install . -vv
hcho3 marked this conversation as resolved.
Show resolved Hide resolved
ignore_run_exports_from:
{% if cuda_major == "11" %}
Expand Down
26 changes: 23 additions & 3 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,37 @@ files:
- py_version
py_build:
output: pyproject
pyproject_dir: python
pyproject_dir: python/kvikio
extras:
table: build-system
includes:
- build
py_run:
output: pyproject
pyproject_dir: python
pyproject_dir: python/kvikio
extras:
table: project
includes:
- depends_on_cupy
- run
py_wheel_cpp:
output: pyproject
pyproject_dir: python/libkvikio
extras:
table: project
includes:
- build
py_wheel_python:
output: pyproject
pyproject_dir: python/kvikio
extras:
table: project
includes:
- build
msarahan marked this conversation as resolved.
Show resolved Hide resolved
- wheel_lib_dep
py_optional_test:
output: pyproject
pyproject_dir: python
pyproject_dir: python/kvikio
extras:
table: project.optional-dependencies
key: test
Expand Down Expand Up @@ -208,6 +223,11 @@ dependencies:
packages: &cupy_packages_cu11
- cupy-cuda11x>=12.0.0
- {matrix: null, packages: *cupy_packages_cu11}
wheel_lib_dep:
common:
- output_types: pyproject
packages:
- libkvikio==24.6.*
msarahan marked this conversation as resolved.
Show resolved Hide resolved
docs:
common:
- output_types: [conda, requirements]
Expand Down
1 change: 0 additions & 1 deletion python/.gitattributes
msarahan marked this conversation as resolved.
Show resolved Hide resolved

This file was deleted.

1 change: 0 additions & 1 deletion python/README.md

This file was deleted.

File renamed without changes.
15 changes: 2 additions & 13 deletions python/CMakeLists.txt → python/kvikio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

cmake_minimum_required(VERSION 3.26.4 FATAL_ERROR)

include(../cpp/cmake/rapids_config.cmake)
include(../../cpp/cmake/rapids_config.cmake)
include(rapids-cpm)
rapids_cpm_init()
include(rapids-cuda)
Expand All @@ -26,18 +26,7 @@ project(
LANGUAGES CXX CUDA
)

option(FIND_KVIKIO_CPP
"Search for existing KVIKIO C++ installations before defaulting to local files" OFF
)

# TODO: Should we symlink FindcuFile.cmake into python/cmake? find cuFile
include(../cpp/cmake/Modules/FindcuFile.cmake)

if(FIND_KVIKIO_CPP)
find_package(KvikIO "${RAPIDS_VERSION}")
else()
set(KvikIO_FOUND OFF)
endif()
find_package(KvikIO "${RAPIDS_VERSION}" REQUIRED)

find_package(CUDAToolkit REQUIRED)

Expand Down
1 change: 1 addition & 0 deletions python/kvikio/README.md
1 change: 0 additions & 1 deletion python/kvikio/VERSION

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions python/kvikio/kvikio/VERSION
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions python/pyproject.toml → python/kvikio/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ requires = [
"cython>=3.0.0",
"ninja",
"scikit-build-core[pyproject]>=0.7.0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../dependencies.yaml and run `rapids-dependency-file-generator`.
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.

[project]
name = "kvikio"
name = "kvikio-cu11"
msarahan marked this conversation as resolved.
Show resolved Hide resolved
dynamic = ["version"]
description = "KvikIO - GPUDirect Storage"
readme = { file = "README.md", content-type = "text/markdown" }
Expand All @@ -21,12 +21,12 @@ authors = [
license = { text = "Apache 2.0" }
requires-python = ">=3.9"
dependencies = [
"cupy-cuda11x>=12.0.0",
"numcodecs <0.12.0",
"numpy>=1.23,<2.0a0",
"packaging",
"zarr",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../dependencies.yaml and run `rapids-dependency-file-generator`.
"cmake>=3.26.4",
msarahan marked this conversation as resolved.
Show resolved Hide resolved
"cython>=3.0.0",
"libkvikio==24.6.*",
"ninja",
"scikit-build-core[pyproject]>=0.7.0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
classifiers = [
"Intended Audience :: Developers",
"Topic :: Database",
Expand All @@ -44,7 +44,7 @@ test = [
"dask>=2022.05.2",
"pytest",
"pytest-cov",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../dependencies.yaml and run `rapids-dependency-file-generator`.
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.

[project.urls]
Homepage = "https://github.com/rapidsai/kvikio"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions python/libkvikio/CMakeLists.txt
msarahan marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# =============================================================================
# Copyright (c) 2022-2024, NVIDIA CORPORATION.
msarahan marked this conversation as resolved.
Show resolved Hide resolved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# =============================================================================

cmake_minimum_required(VERSION 3.26.4 FATAL_ERROR)

include(../../cpp/cmake/rapids_config.cmake)
include(rapids-cpm)
rapids_cpm_init()
include(rapids-cuda)
rapids_cuda_init_architectures(libkvikio-python)
vyasr marked this conversation as resolved.
Show resolved Hide resolved

# TODO: Should we symlink FindcuFile.cmake into python/cmake? find cuFile
include(../../cpp/cmake/Modules/FindcuFile.cmake)
msarahan marked this conversation as resolved.
Show resolved Hide resolved

project(
libkvikio-python
VERSION "${RAPIDS_VERSION}"
LANGUAGES CXX
)

set(KvikIO_BUILD_EXAMPLES OFF)
set(KvikIO_BUILD_TESTS OFF)
set(CUDA_STATIC_RUNTIME ON)
hcho3 marked this conversation as resolved.
Show resolved Hide resolved

add_subdirectory(../../cpp kvikio-cpp)
1 change: 1 addition & 0 deletions python/libkvikio/LICENSE
1 change: 1 addition & 0 deletions python/libkvikio/README.md
1 change: 1 addition & 0 deletions python/libkvikio/libkvikio/VERSION
15 changes: 15 additions & 0 deletions python/libkvikio/libkvikio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from libkvikio._version import __git_commit__, __version__ # noqa: F401
msarahan marked this conversation as resolved.
Show resolved Hide resolved
20 changes: 20 additions & 0 deletions python/libkvikio/libkvikio/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import importlib.resources

__version__ = (
importlib.resources.files("libkvikio").joinpath("VERSION").read_text().strip()
)
__git_commit__ = ""
msarahan marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading