Skip to content

Commit 5fa64ba

Browse files
feat: remove beta suffix to avoid pre-release flagging in PyPi (#234)
1 parent d271c1c commit 5fa64ba

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ endif()
3636
enable_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,
4242
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

python/setup.py.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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');
@@ -91,7 +91,6 @@ setup(
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
)

src/nvcv/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2727
include(CMakeDependentOption)
2828

tests/nvcv_types/system/TestVersion.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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");
@@ -19,6 +19,8 @@
1919

2020
#include <nvcv/Version.h>
2121

22+
#include <string>
23+
2224
TEST(VersionTests, version_numeric)
2325
{
2426
EXPECT_EQ(NVCV_VERSION, nvcvGetVersion());
@@ -38,13 +40,16 @@ TEST(VersionTests, get_version_components)
3840

3941
TEST(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

5055
TEST(VersionTests, make_version4_macro)

0 commit comments

Comments
 (0)