summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIikka Eklund <iikka.eklund@qt.io>2021-03-04 11:55:43 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-15 12:19:25 +0000
commit0710b0e91a6facf69826f36287d37438ab48ce16 (patch)
tree9d5f9374439464b2df80d3fd183f18c1788127d3
parent85ce5dfd6f8c3fdf5f6873650060ac60605027c4 (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: I866e9fc20cc82dbf03b818f7f3502e3e0991b440 Reviewed-by: Toni Saario <toni.saario@qt.io> (cherry picked from commit e9abaa440fa7447d12f38a9e1976747ca1804346) 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 41f040a6..8518dbf2 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -48,6 +48,7 @@ class QtDataVisualization(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