Update libraries versions
This commit is contained in:
22
conanfile.py
22
conanfile.py
@@ -17,7 +17,6 @@ class PlatformConan(ConanFile):
|
|||||||
"enable_testing": False,
|
"enable_testing": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Sources are located in the same place as this recipe, copy them to the recipe
|
# Sources are located in the same place as this recipe, copy them to the recipe
|
||||||
exports_sources = "CMakeLists.txt", "pyclfs/*", "tests/*", "LICENSE"
|
exports_sources = "CMakeLists.txt", "pyclfs/*", "tests/*", "LICENSE"
|
||||||
|
|
||||||
@@ -27,7 +26,8 @@ class PlatformConan(ConanFile):
|
|||||||
|
|
||||||
match = re.search(
|
match = re.search(
|
||||||
r"""project\s*\([^\)]*VERSION\s+([0-9]+\.[0-9]+\.[0-9]+)""",
|
r"""project\s*\([^\)]*VERSION\s+([0-9]+\.[0-9]+\.[0-9]+)""",
|
||||||
text, re.IGNORECASE | re.VERBOSE
|
text,
|
||||||
|
re.IGNORECASE | re.VERBOSE,
|
||||||
)
|
)
|
||||||
if match:
|
if match:
|
||||||
self.version = match.group(1)
|
self.version = match.group(1)
|
||||||
@@ -35,18 +35,17 @@ class PlatformConan(ConanFile):
|
|||||||
raise Exception("Version not found in CMakeLists.txt")
|
raise Exception("Version not found in CMakeLists.txt")
|
||||||
self.version = match.group(1)
|
self.version = match.group(1)
|
||||||
|
|
||||||
|
|
||||||
def requirements(self):
|
def requirements(self):
|
||||||
self.requires("libtorch/2.7.0")
|
self.requires("libtorch/2.7.1")
|
||||||
self.requires("nlohmann_json/3.11.3")
|
self.requires("nlohmann_json/3.11.3")
|
||||||
self.requires("folding/1.1.1")
|
self.requires("folding/1.1.2")
|
||||||
self.requires("fimdlp/2.1.0")
|
self.requires("fimdlp/2.1.1")
|
||||||
self.requires("bayesnet/1.2.0")
|
self.requires("bayesnet/1.2.1")
|
||||||
|
|
||||||
def build_requirements(self):
|
def build_requirements(self):
|
||||||
self.tool_requires("cmake/[>=3.30]")
|
self.tool_requires("cmake/[>=3.30]")
|
||||||
self.test_requires("catch2/3.8.1")
|
self.test_requires("catch2/3.8.1")
|
||||||
self.test_requires("arff-files/1.2.0")
|
self.test_requires("arff-files/1.2.1")
|
||||||
|
|
||||||
def layout(self):
|
def layout(self):
|
||||||
cmake_layout(self)
|
cmake_layout(self)
|
||||||
@@ -67,7 +66,12 @@ class PlatformConan(ConanFile):
|
|||||||
self.run("ctest --output-on-failure", cwd=self.build_folder)
|
self.run("ctest --output-on-failure", cwd=self.build_folder)
|
||||||
|
|
||||||
def package(self):
|
def package(self):
|
||||||
copy(self, "LICENSE", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
|
copy(
|
||||||
|
self,
|
||||||
|
"LICENSE",
|
||||||
|
src=self.source_folder,
|
||||||
|
dst=os.path.join(self.package_folder, "licenses"),
|
||||||
|
)
|
||||||
cmake = CMake(self)
|
cmake = CMake(self)
|
||||||
cmake.install()
|
cmake.install()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user