Default Version to 0.2-dev (#690)

This commit is contained in:
Yuhong Sun
2023-11-03 18:37:01 -07:00
committed by GitHub
parent 551705ad62
commit 602f9c4a0a
10 changed files with 61 additions and 66 deletions

View File

@ -1,12 +1,9 @@
FROM python:3.11.4-slim-bookworm
# Default DANSWER_VERSION build argument set here.
# This can be overridden by passing in a build arg, typically from GitHub Actions.
ARG DANSWER_VERSION=0.1.0
# Then passed to the container environment.
# Default DANSWER_VERSION, typically overriden during builds by GitHub Actions.
ARG DANSWER_VERSION=0.2-dev
ENV DANSWER_VERSION=${DANSWER_VERSION}
# Install system dependencies
RUN apt-get update && \
apt-get install -y git cmake pkg-config libprotobuf-c-dev protobuf-compiler \

View File

@ -1,4 +1,3 @@
import os
# Pulls the version from the environment variable DANSWER_VERSION, or defaults to 0.1.0dev.
__version__ = os.environ.get("DANSWER_VERSION", "") or "0.1.0dev"
__version__ = os.environ.get("DANSWER_VERSION", "") or "0.2-dev"