mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Consolidate version numbers (#2201)
* update version number * print version number at startup * move version number into ldm/invoke/_version.py * bump version to 2.2.6+a0 * handle whitespace better * resolve issues raised by mauwii during PR review
This commit is contained in:
parent
4dd74cdc68
commit
c855d2a350
9
installer/create_installer.sh
Executable file → Normal file
9
installer/create_installer.sh
Executable file → Normal file
@ -2,24 +2,23 @@
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
VERSION=$(grep ^VERSION ../setup.py | awk '{ print $3 }' | sed "s/'//g" )
|
VERSION=$(cd ..; python -c "from ldm.invoke import __version__ as version; print(version)")
|
||||||
PATCH=""
|
PATCH=""
|
||||||
VERSION="v${VERSION}${PATCH}"
|
VERSION="v${VERSION}${PATCH}"
|
||||||
|
|
||||||
|
echo Building installer for version $VERSION
|
||||||
echo "Be certain that you're in the 'installer' directory before continuing."
|
echo "Be certain that you're in the 'installer' directory before continuing."
|
||||||
read -p "Press any key to continue, or CTRL-C to exit..."
|
read -p "Press any key to continue, or CTRL-C to exit..."
|
||||||
|
|
||||||
read -e -p "Commit and tag this repo with ${VERSION} and 'latest'? [n]: " input
|
read -e -p "Commit and tag this repo with ${VERSION} and 'latest'? [n]: " input
|
||||||
RESPONSE=${input:='n'}
|
RESPONSE=${input:='n'}
|
||||||
if [ "$RESPONSE" == 'y' ]; then
|
if [ "$RESPONSE" == 'y' ]; then
|
||||||
|
|
||||||
git commit -a
|
git commit -a
|
||||||
|
|
||||||
if ! git tag $VERSION ; then
|
if ! git tag $VERSION ; then
|
||||||
echo "Existing/invalid tag"
|
echo "Existing/invalid tag"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git push origin :refs/tags/latest
|
git push origin :refs/tags/latest
|
||||||
git tag -fa latest
|
git tag -fa latest
|
||||||
fi
|
fi
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
from ._version import __version__
|
||||||
|
|
||||||
__app_id__= 'invoke-ai/InvokeAI'
|
__app_id__= 'invoke-ai/InvokeAI'
|
||||||
__app_name__= 'InvokeAI'
|
__app_name__= 'InvokeAI'
|
||||||
__version__='2.2.5'
|
|
1
ldm/invoke/_version.py
Normal file
1
ldm/invoke/_version.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
__version__='2.2.6+a0'
|
8
setup.py
8
setup.py
@ -1,3 +1,4 @@
|
|||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
@ -9,7 +10,12 @@ def list_files(directory):
|
|||||||
listing.append(pair)
|
listing.append(pair)
|
||||||
return listing
|
return listing
|
||||||
|
|
||||||
VERSION = '2.2.5'
|
def get_version()->str:
|
||||||
|
from ldm.invoke import __version__ as version
|
||||||
|
return version
|
||||||
|
|
||||||
|
# The canonical version number is stored in the file ldm/invoke/_version.py
|
||||||
|
VERSION = get_version()
|
||||||
DESCRIPTION = ('An implementation of Stable Diffusion which provides various new features'
|
DESCRIPTION = ('An implementation of Stable Diffusion which provides various new features'
|
||||||
' and options to aid the image generation process')
|
' and options to aid the image generation process')
|
||||||
LONG_DESCRIPTION = ('This version of Stable Diffusion features a slick WebGUI, an'
|
LONG_DESCRIPTION = ('This version of Stable Diffusion features a slick WebGUI, an'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user