2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-10 18:12:30 +00:00

Try a different dev build versioning

Python 3.12 refuses to use the current versioning
This commit is contained in:
Jarrod Johnson
2025-05-21 10:00:47 -04:00
parent 6bebae1d0b
commit 8722e66583
3 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
%define name confluent_client
%define version #VERSION#
%define fversion %{lua:
sv, _ = string.gsub("#VERSION#", "[~+]", "-")
sv, _ = string.gsub("#VERSION#", "[~]", "-")
print(sv)
}
%define release 1

View File

@@ -1,7 +1,7 @@
%define name confluent_server
%define version #VERSION#
%define fversion %{lua:
sv, _ = string.gsub("#VERSION#", "[~+]", "-")
sv, _ = string.gsub("#VERSION#", "[~]", "-")
print(sv)
}
%define release 1

View File

@@ -6,7 +6,7 @@ if [ "$NUMCOMMITS" != "$VERSION" ]; then
LASTNUM=$((LASTNUM+1))
FIRSTPART=$(echo $VERSION|rev|cut -d . -f 2- |rev)
VERSION=${FIRSTPART}.${LASTNUM}
VERSION=$VERSION~dev$NUMCOMMITS+`git describe|cut -d- -f 3`
VERSION=$VERSION.dev$NUMCOMMITS+`git describe|cut -d- -f 3`
fi
echo $VERSION > VERSION
sed -e "s/#VERSION#/$VERSION/" setup.py.tmpl > setup.py