From a43901095cea86d9c7a66f4523469780481231c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Sat, 28 Jun 2025 19:54:03 +0200 Subject: [PATCH] Fix conan package version --- CMakeUserPresets.json | 3 ++- conanfile.py | 12 +----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/CMakeUserPresets.json b/CMakeUserPresets.json index c39f928..4b6b288 100644 --- a/CMakeUserPresets.json +++ b/CMakeUserPresets.json @@ -4,6 +4,7 @@ "conan": {} }, "include": [ - "build_Debug/build/Debug/generators/CMakePresets.json" + "build_Debug/build/Debug/generators/CMakePresets.json", + "build/Release/generators/CMakePresets.json" ] } \ No newline at end of file diff --git a/conanfile.py b/conanfile.py index f2278e0..6207be2 100644 --- a/conanfile.py +++ b/conanfile.py @@ -6,7 +6,7 @@ from conan.tools.cmake import cmake_layout class FoldingConan(ConanFile): name = "folding" - version = "X.X.X" + version = "1.1.1" description = "K-Fold and stratified K-Fold header-only library" url = "https://github.com/rmontanana/folding" license = "MIT" @@ -30,16 +30,6 @@ class FoldingConan(ConanFile): def layout(self): cmake_layout(self) - def init(self): - # Read the CMakeLists.txt file to get the version - with open("folding.hpp", "r") as f: - content = f.read() - match = re.search( - r'const std::string FOLDING_VERSION = "([^"]+)";', content - ) - if match: - self.version = match.group(1) - def package(self): copy(self, "*.hpp", src=self.source_folder, dst=self.package_folder)