File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ endif()
3636enable_language (CUDA)
3737
3838# Used when creating special builds
39- set (PROJECT_VERSION_SUFFIX "-beta " )
39+ set (PROJECT_VERSION_SUFFIX "" )
4040
4141# if user didn't set install prefix,
4242if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
Original file line number Diff line number Diff line change 1- # SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+ # SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33#
44# Licensed under the Apache License, Version 2.0 (the 'License');
9191 Extension(name='UnusedEmptyExtension', sources=[]),
9292 ],
9393 classifiers=[
94- 'Development Status :: 4 - Beta',
9594 'Environment :: GPU :: NVIDIA CUDA',
9695 'Environment :: GPU :: NVIDIA CUDA :: ${CUDA_VERSION_MAJOR}',
9796 'Operating System :: POSIX :: Linux',
@@ -100,8 +99,6 @@ setup(
10099 'Programming Language :: Python :: 3.9',
101100 'Programming Language :: Python :: 3.10',
102101 'Programming Language :: Python :: 3.11',
103- 'Programming Language :: Python :: 3.12',
104- 'Programming Language :: Python :: 3.13',
105102 'Programming Language :: Python :: Implementation :: CPython',
106103 ],
107104)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ project(nvcv
2222)
2323
2424# Used when creating special builds
25- set (PROJECT_VERSION_SUFFIX "-beta " )
25+ set (PROJECT_VERSION_SUFFIX "" )
2626
2727include (CMakeDependentOption)
2828
Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+ * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33 * SPDX-License-Identifier: Apache-2.0
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
1919
2020#include < nvcv/Version.h>
2121
22+ #include < string>
23+
2224TEST (VersionTests, version_numeric)
2325{
2426 EXPECT_EQ (NVCV_VERSION, nvcvGetVersion ());
@@ -38,13 +40,16 @@ TEST(VersionTests, get_version_components)
3840
3941TEST (VersionTests, get_version_string)
4042{
41- const char *ver = STR (NVCV_VERSION_MAJOR) " ." STR (NVCV_VERSION_MINOR) " ." STR (NVCV_VERSION_PATCH)
43+ std::string ver = std::string (STR (NVCV_VERSION_MAJOR)) + " ." + STR (NVCV_VERSION_MINOR) + " ."
44+ + STR (NVCV_VERSION_PATCH)
4245#if NVCV_VERSION_TWEAK
43- " ." STR (NVCV_VERSION_TWEAK)
46+ + " ." + STR (NVCV_VERSION_TWEAK)
4447#endif
45- " -" NVCV_VERSION_SUFFIX;
48+ ;
49+ if (!std::string (NVCV_VERSION_SUFFIX).empty ())
50+ ver += std::string (" -" ) + NVCV_VERSION_SUFFIX;
4651
47- EXPECT_STREQ (ver, NVCV_VERSION_STRING);
52+ EXPECT_STREQ (ver. c_str () , NVCV_VERSION_STRING);
4853}
4954
5055TEST (VersionTests, make_version4_macro)
You can’t perform that action at this time.
0 commit comments