From 7b06a9c266cecfa119b0cd92f12b7d0db0560414 Mon Sep 17 00:00:00 2001
From: Thibault Debatty <t.debatty@cylab.be>
Date: Mon, 23 Jan 2023 12:12:39 +0100
Subject: [PATCH] (try to) fix python package building

---
 .gitlab-ci.yml | 1 +
 pyproject.tmpl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b22b20b..6f48aad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,6 +31,7 @@ build:
   before_script:
     # install envsubst
     # python:3.10 is based on debian bullseye
+    - apt-get update
     - apt-get install -y gettext-base
     - apt-get install -y python3-venv 
     - python3 -m pip install --upgrade build
diff --git a/pyproject.tmpl b/pyproject.tmpl
index d62e118..1188f5d 100644
--- a/pyproject.tmpl
+++ b/pyproject.tmpl
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
 
 [project]
 name = "Dokos"
-version = "0.0.3"
+version = "$CI_COMMIT_TAG"
 authors = [
   { name="Thibault Debatty", email="t.debatty@cylab.be" },
 ]
-- 
GitLab