File tree Expand file tree Collapse file tree 8 files changed +17
-12
lines changed Expand file tree Collapse file tree 8 files changed +17
-12
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
3939fi
4040
4141update_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
4850docling () {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " ramalama"
7- version = " 0.8.2 "
7+ version = " 0.8.3 "
88description = " RamaLama is a command line tool for working with AI LLM models."
99readme = " README.md"
1010requires-python = " >=3.8"
Original file line number Diff line number Diff line change 22
33
44def version ():
5- version = "0.8.2"
6- return version
5+ return "0.8.3"
76
87
98def print_version (args ):
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ if [[ "$#" != 2 ]]; then
55fi
66curversion=$1
77newversion=$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
Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ release-arm() {
3131}
3232
3333release-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
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export ARMREPO=${ARMREPO:-"quay.io/rhatdan"}
1818export REPO=${REPO:- " quay.io/ramalama" }
1919
2020release () {
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}
You can’t perform that action at this time.
0 commit comments