Removed submodules

This commit is contained in:
2025-06-28 00:44:57 +02:00
parent 1973ab6fb6
commit 72053e195a
7 changed files with 33 additions and 221 deletions

33
conanfile.py Normal file
View File

@@ -0,0 +1,33 @@
import re
from conan import ConanFile
from conan.tools.files import copy
class FoldingConan(ConanFile):
name = "folding"
version = "X.X.X"
description = "K-Fold and stratified K-Fold header-only library"
url = "https://github.com/rmontanana/folding"
license = "MIT"
homepage = "https://github.com/rmontanana/ArffFiles"
topics = ("kfold", "stratified folding")
no_copy_source = True
exports_sources = "folding.hpp"
package_type = "header-library"
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", self.source_folder, self.package_folder)
def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []