Fix getting version in docker
This commit is contained in:
@@ -33,6 +33,7 @@ RUN apk add --no-cache --virtual .build-deps \
|
|||||||
python3-dev \
|
python3-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
build-base \
|
build-base \
|
||||||
|
git \
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
py3-virtualenv \
|
py3-virtualenv \
|
||||||
py3-pillow \
|
py3-pillow \
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ if git_tag and __version__ == git_tag[1:].replace("-", ""):
|
|||||||
else:
|
else:
|
||||||
if not __version__.endswith("+dev"):
|
if not __version__.endswith("+dev"):
|
||||||
__version__ += "+dev"
|
__version__ += "+dev"
|
||||||
version = f"{__version__}@{git_revision}"
|
version = f"{__version__}.{git_revision}"
|
||||||
if git_revision_url:
|
if git_revision_url:
|
||||||
linkified_version = f"{__version__}[@{git_revision}]({git_revision_url})"
|
linkified_version = f"{__version__}.[{git_revision}]({git_revision_url})"
|
||||||
else:
|
else:
|
||||||
linkified_version = version
|
linkified_version = version
|
||||||
|
|||||||
Reference in New Issue
Block a user