From 83818f5088e13ea49e0d106f5ceaec02f6f211d7 Mon Sep 17 00:00:00 2001 From: Dulaj Disanayaka Date: Thu, 12 Mar 2026 12:41:30 +0100 Subject: [PATCH 1/2] fix(jig): honor uv default groups in autogenerated dockerfile --- src/together/lib/cli/api/beta/jig/jig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/together/lib/cli/api/beta/jig/jig.py b/src/together/lib/cli/api/beta/jig/jig.py index 11d3a951..cf066df6 100644 --- a/src/together/lib/cli/api/beta/jig/jig.py +++ b/src/together/lib/cli/api/beta/jig/jig.py @@ -358,7 +358,7 @@ def _generate_dockerfile(config: Config) -> str: if Path("pyproject.toml").exists(): pip = """COPY pyproject.toml . RUN --mount=type=cache,target=/root/.cache/uv \\ - uv pip install --system --compile-bytecode . && \\ + uv export | uv pip install --system --compile-bytecode --requirement=- && \\ (python -c "import sprocket" 2>/dev/null || (echo "sprocket not found in pyproject.toml, installing from pypi.together.ai..." && uv pip install --system --extra-index-url https://pypi.together.ai/ sprocket)) """ From 72a00e4bb3bd0ed608eee12f8d349d18c2639a66 Mon Sep 17 00:00:00 2001 From: Dulaj Disanayaka Date: Wed, 15 Apr 2026 17:45:02 +0200 Subject: [PATCH 2/2] fix(jig): use uv sync to install req --- src/together/lib/cli/api/beta/jig/jig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/together/lib/cli/api/beta/jig/jig.py b/src/together/lib/cli/api/beta/jig/jig.py index cf066df6..11da5208 100644 --- a/src/together/lib/cli/api/beta/jig/jig.py +++ b/src/together/lib/cli/api/beta/jig/jig.py @@ -357,8 +357,9 @@ def _generate_dockerfile(config: Config) -> str: pip = "" if Path("pyproject.toml").exists(): pip = """COPY pyproject.toml . +ENV UV_PROJECT_ENVIRONMENT=/usr/local RUN --mount=type=cache,target=/root/.cache/uv \\ - uv export | uv pip install --system --compile-bytecode --requirement=- && \\ + uv sync --inexact --no-dev --no-install-project --compile-bytecode && \\ (python -c "import sprocket" 2>/dev/null || (echo "sprocket not found in pyproject.toml, installing from pypi.together.ai..." && uv pip install --system --extra-index-url https://pypi.together.ai/ sprocket)) """