Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,19 @@ ENV PATH "/root/.local/bin:$PATH"
COPY pyproject.toml poetry.lock README.md /package/
COPY --from=python_test_base /package/src /package/src

ARG CONDUCTOR_PYTHON_VERSION
ENV CONDUCTOR_PYTHON_VERSION=${CONDUCTOR_PYTHON_VERSION}
RUN if [ -z "$CONDUCTOR_PYTHON_VERSION" ]; then \
echo "CONDUCTOR_PYTHON_VERSION build arg is required." >&2; exit 1; \
fi && \
poetry version "$CONDUCTOR_PYTHON_VERSION"

RUN poetry config virtualenvs.create false && \
poetry install --only main --no-root --no-interaction --no-ansi && \
poetry install --no-root --no-interaction --no-ansi

ENV PYTHONPATH /package/src

ARG CONDUCTOR_PYTHON_VERSION
ENV CONDUCTOR_PYTHON_VERSION ${CONDUCTOR_PYTHON_VERSION}
RUN poetry build
ARG PYPI_USER
ARG PYPI_PASS
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "conductor-python"
version = "1.2.3" # TODO: Make version number derived from GitHub release number
version = "0.0.0" # Do not change! Placeholder. Real version injected during build (edited)
description = "Python SDK for working with https://github.com/conductor-oss/conductor"
authors = ["Orkes <developers@orkes.io>"]
license = "Apache-2.0"
Expand Down
Loading