From 9fc8dbdefe1af5e8b4cf225394ab8543a1cb2f38 Mon Sep 17 00:00:00 2001 From: Valentin Haenel Date: Thu, 30 Sep 2021 10:45:58 +0200 Subject: [PATCH] exclude dev tags for clifford As title --- switchboard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/switchboard.py b/switchboard.py index 8546f3b..646e942 100755 --- a/switchboard.py +++ b/switchboard.py @@ -96,7 +96,10 @@ def clone_url(self): @property def git_ref(self): - return(git_ls_remote_tags(self.clone_url)[-1]) + # clifford has dev tags, we ignore those by assuming they contain the + # string 'dev'. + return([t for t in git_ls_remote_tags(self.clone_url) + if 'dev' not in t][-1]) @property def conda_dependencies(self):