From 7b4956cf42a86d6ae6190fe82175ff73d21a1d1a Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Tue, 5 Oct 2021 14:41:25 +0200
Subject: [PATCH] [bob-devel] make its version automatic

---
 bob/devtools/data/conda_build_config.yaml |  4 ----
 deps/bob-devel/meta.template.yaml         |  4 +++-
 doc/templates.rst                         | 10 +---------
 3 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/bob/devtools/data/conda_build_config.yaml b/bob/devtools/data/conda_build_config.yaml
index ce955ffa..98710068 100644
--- a/bob/devtools/data/conda_build_config.yaml
+++ b/bob/devtools/data/conda_build_config.yaml
@@ -291,10 +291,6 @@ pin_run_as_build:
 # names here should not contain dots or dashes. You should replace dots and dashes with
 # underlines.
 
-# update this version to the current date when you modify the pins below
-bob_devel_version:
-  - 2021.10.04
-
 # AUTOMATIC PARSING START
 # DO NOT MODIFY THIS COMMENT
 
diff --git a/deps/bob-devel/meta.template.yaml b/deps/bob-devel/meta.template.yaml
index fad8b156..4744ee94 100644
--- a/deps/bob-devel/meta.template.yaml
+++ b/deps/bob-devel/meta.template.yaml
@@ -1,6 +1,8 @@
+{% set version = datetime.datetime.utcnow().strftime('%Y%m%d.%H.%M.%S') %}
+
 package:
   name: bob-devel
-  version: {{ bob_devel_version }}
+  version: {{ version }}
 
 build:
   number: 0
diff --git a/doc/templates.rst b/doc/templates.rst
index 53be9b40..4c543a79 100644
--- a/doc/templates.rst
+++ b/doc/templates.rst
@@ -459,15 +459,7 @@ you should perform some extra steps:
     [your dependecy here]
 
 
-2. In the file ``bob.devtools/bob/devtools/data/conda_buid_config.yaml``,
-   update the version of ``bob-devel`` with the current date, in the format preset.
-
-  .. code-block:: yaml
-
-    bob_devel_version:
-      - 2021.09.14 <-- HERE
-
-3. Submit a merge request with your changes.
+2. Submit a merge request with your changes.
 
 
 Updating a dependency version
-- 
GitLab