From 3bd1bb5dabe433ccc529ea33b3f64fb86ba282c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fukan=20=C3=87a=C4=9Fatay?= Date: Thu, 7 Mar 2024 09:52:56 +0100 Subject: [PATCH] Update version string to a PEP-440 compatible one setuptools > 66 requires PEP-440 compatible version strings. The version string is converted from *git describe* format (`--`) to `.dev+` format. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7847081..af6da91 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ generated = aiven_db_migrate/migrate/version.py all: $(generated) aiven_db_migrate/migrate/version.py: - echo "__version__ = \"$(shell git describe)\"" > $@ + echo "__version__ = \"$(shell git describe | awk -F- '{ printf "%s",$$1 } length($$2) != 0 {printf ".dev%s",$$2} length($$3) != 0 { printf "+%s",$$3 }')\"" > $@ build-dep-fedora: sudo dnf -y install --best --allowerasing \