File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,19 @@ ENV PATH "/root/.local/bin:$PATH"
5151COPY pyproject.toml poetry.lock README.md /package/
5252COPY --from=python_test_base /package/src /package/src
5353
54+ ARG CONDUCTOR_PYTHON_VERSION
55+ ENV CONDUCTOR_PYTHON_VERSION=${CONDUCTOR_PYTHON_VERSION}
56+ RUN if [ -z "$CONDUCTOR_PYTHON_VERSION" ]; then \
57+ echo "CONDUCTOR_PYTHON_VERSION build arg is required." >&2; exit 1; \
58+ fi && \
59+ poetry version "$CONDUCTOR_PYTHON_VERSION"
60+
5461RUN poetry config virtualenvs.create false && \
5562 poetry install --only main --no-root --no-interaction --no-ansi && \
5663 poetry install --no-root --no-interaction --no-ansi
5764
5865ENV PYTHONPATH /package/src
5966
60- ARG CONDUCTOR_PYTHON_VERSION
61- ENV CONDUCTOR_PYTHON_VERSION ${CONDUCTOR_PYTHON_VERSION}
6267RUN poetry build
6368ARG PYPI_USER
6469ARG PYPI_PASS
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44
55[tool .poetry ]
66name = " conductor-python"
7- version = " 1.2.3 " # TODO: Make version number derived from GitHub release number
7+ version = " 0.0.0 " # Do not change! Placeholder. Real version injected during build (edited)
88description = " Python SDK for working with https://github.com/conductor-oss/conductor"
99authors = [" Orkes <developers@orkes.io>" ]
1010license = " Apache-2.0"
You can’t perform that action at this time.
0 commit comments