From d4192f8cef31d9b2c0c1f91311d28d0177d05d06 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 12 Sep 2024 17:02:36 +0200 Subject: [PATCH] Set version in conandata.yml as expected by subsequent scripts --- conandata.yml | 1 + conanfile.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 conandata.yml diff --git a/conandata.yml b/conandata.yml new file mode 100644 index 0000000..2705447 --- /dev/null +++ b/conandata.yml @@ -0,0 +1 @@ +version: 5.4.0-alpha diff --git a/conanfile.py b/conanfile.py index 1e7fa10..2f2a38d 100644 --- a/conanfile.py +++ b/conanfile.py @@ -38,8 +38,8 @@ class SavitarConan(ConanFile): } def set_version(self): - if self.version is None: - self.version = "5.4.0-alpha" + if not self.version: + self.version = self.conan_data["version"] @property def _min_cppstd(self):