summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIikka Eklund <iikka.eklund@qt.io>2021-03-04 11:44:12 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-15 12:19:05 +0000
commit2ab965b2f7bb9aeaab68f9c721b5676ad2d89057 (patch)
treed143afc1683a394eb22e2ab8dcee5c9a2eb3ee53
parent513b686fe5e3a47632c82c92152266d1f740ce15 (diff)
Add "scm" attribute to conanfile.py
We want to match the commit ID along with the RREV (recipe revision). This way we can pin exact Conan packages to known sha1/tag which makes releasing easier. https://docs.conan.io/en/latest/reference/conanfile/attributes.html#revision-mode Task-number: QTQAINFRA-4325 Change-Id: I49d4e18847301bee439b3fe6a0602165e4d3c316 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Toni Saario <toni.saario@qt.io> (cherry picked from commit f4620d1581b9ccdca6554f11014bcdedd95c50b6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--conanfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py
index 3f522bd..e7090aa 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -48,6 +48,7 @@ class QtScxml(ConanFile):
default_options = {"shared": "default", # default: Use the value of the Qt build
"qt6": None}
exports_sources = "*", "!conan*.*"
+ revision_mode = "scm" # use commit ID as the RREV (recipe revision)
def source(self):
# sources are installed next to recipe, no need to clone etc. sources here