Skip to content

Commit 71872f8

Browse files
committed
Bump to v0.8.3
Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 4f24069 commit 71872f8

File tree

8 files changed

+17
-12
lines changed

8 files changed

+17
-12
lines changed

container-images/scripts/build_llama_and_whisper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ python_version() {
55
# $2 is empty when no Python is installed, so just install python3
66
if [ -n "$pyversion" ]; then
77
string="$pyversion
8-
Python 3.11"
8+
Python 3.10"
99
if [ "$string" == "$(sort --version-sort <<< "$string")" ]; then
1010
echo "python3.11"
1111
return

container-images/scripts/build_rag.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ python_version() {
1010
# $2 is empty when no Python is installed, so just install python3
1111
if [ -n "$pyversion" ]; then
1212
string="$pyversion
13-
Python 3.11"
13+
Python 3.10"
1414
if [ "$string" == "$(sort --version-sort <<< "$string")" ]; then
1515
echo "python3.11"
1616
return
@@ -39,10 +39,12 @@ if [[ "$ID" = "fedora" && "$VERSION_ID" -ge 42 ]] ; then
3939
fi
4040

4141
update_python() {
42-
eval dnf install -y "${PYTHON}" "${PYTHON}-pip" "${PYTHON}-devel" "${packages}"
42+
dnf update -y
43+
dnf install -y "${PYTHON}" "${PYTHON}-pip" "${PYTHON}-devel" "${packages}"
4344
if [[ "${PYTHON}" == "python3.11" ]]; then
4445
ln -sf /usr/bin/python3.11 /usr/bin/python3
4546
fi
47+
rm -rf /usr/local/python3.10
4648
}
4749

4850
docling() {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ramalama"
7-
version = "0.8.2"
7+
version = "0.8.3"
88
description = "RamaLama is a command line tool for working with AI LLM models."
99
readme = "README.md"
1010
requires-python = ">=3.8"

ramalama/version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33

44
def version():
5-
version = "0.8.2"
6-
return version
5+
return "0.8.3"
76

87

98
def print_version(args):

rpm/python-ramalama.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%global pypi_name ramalama
22
%global forgeurl https://github.com/containers/%{pypi_name}
33
# see ramalama/version.py
4-
%global version0 0.8.2
4+
%global version0 0.8.3
55
%forgemeta
66

77
%global summary RamaLama is a command line tool for working with AI LLM models

scripts/newver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ if [[ "$#" != 2 ]]; then
55
fi
66
curversion=$1
77
newversion=$2
8-
sed "s/${curversion}/${newversion}/g" -i pyproject.toml setup.py ramalama/version.py rpm/python-ramalama.spec scripts/release.sh scripts/release-image.sh
8+
sed "s/${curversion}/${newversion}/g" -i pyproject.toml ramalama/version.py rpm/python-ramalama.spec

scripts/release-image.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ release-arm() {
3131
}
3232

3333
release-ramalama() {
34+
version=$(bin/ramalama -q version)
35+
minor_version=${version%.*}
3436
digest=$(podman image inspect "${REPO}/$1" --format '{{ .Digest }}' | cut -f2 -d':')
3537
podman push "${REPO}/$1" "${REPO}/$1:${digest}"
36-
podman push "${REPO}/$1" "${REPO}/$1":0.8.2
37-
podman push "${REPO}/$1" "${REPO}/$1":0.8
38+
podman push "${REPO}/$1" "${REPO}/$1:${version}"
39+
podman push "${REPO}/$1" "${REPO}/$1:${minor_version}"
3840
podman push "${REPO}/$1"
3941
}
4042

scripts/release.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export ARMREPO=${ARMREPO:-"quay.io/rhatdan"}
1818
export REPO=${REPO:-"quay.io/ramalama"}
1919

2020
release() {
21+
version=$(bin/ramalama -q version)
22+
minor_version=${version%.*}
2123
DEST=${REPO}/"$1"
2224
podman manifest rm "$1" 2>/dev/null|| true
2325
podman manifest create "$1"
@@ -28,8 +30,8 @@ release() {
2830
podman manifest inspect "$1"
2931
digest=$(podman image inspect "${DEST}" --format '{{ .Digest }}' | cut -f2 -d':')
3032
podman manifest push --all "$1" "${DEST}:${digest}"
31-
podman manifest push --all "$1" "${DEST}":0.8.2
32-
podman manifest push --all "$1" "${DEST}":0.8
33+
podman manifest push --all "$1" "${DEST}:${version}"
34+
podman manifest push --all "$1" "${DEST}:${minor_version}"
3335
podman manifest push --all "$1" "${DEST}"
3436
podman manifest rm "$1"
3537
}

0 commit comments

Comments
 (0)