Skip to content

Commit

Permalink
Pin arcus version
Browse files Browse the repository at this point in the history
Contributes to CURA-10951 and CURA-10475
  • Loading branch information
jellespijker committed Sep 11, 2023
1 parent 4b6c420 commit b0be375
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake, cmake_layout
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import copy, AutoPackager
from conan.tools.files import copy
from conan.tools.microsoft import check_min_vs, is_msvc, is_msvc_static_runtime
from conan.tools.scm import Version

required_conan_version = ">=1.55.0"
required_conan_version = ">=1.58.0"


class ArcusConan(ConanFile):
Expand Down Expand Up @@ -40,6 +40,10 @@ class ArcusConan(ConanFile):
"py_build_backend": "sipbuild.api",
}

def set_version(self):
if not self.version:
self.version = "5.4.0-alpha"

def _min_cppstd(self):
return 17

Expand All @@ -61,7 +65,7 @@ def export_sources(self):

def requirements(self):
self.requires("protobuf/3.21.9", transitive_headers=True)
self.requires("arcus/(latest)@ultimaker/cura_10475") # TODO: point to `testing` once the CURA-10475 from libArcus is main
self.requires("arcus/5.3.0")
self.requires("cpython/3.10.4") # Maybe place this in build_requirements as well
self.requires("zlib/1.2.12")

Expand Down Expand Up @@ -146,7 +150,7 @@ def package(self):
copy(self, "*.h", self.source_path.joinpath("include"), self.package_path.joinpath("include"))

def package_info(self):
self.cpp_info.libdirs = [ path.join(self.package_folder, "lib")]
self.cpp_info.libdirs = [ path.join(self.package_folder, "lib") ]
if self.in_local_cache:
self.runenv_info.append_path("PYTHONPATH", path.join(self.package_folder, "lib"))
else:
Expand Down

0 comments on commit b0be375

Please sign in to comment.