acoustic-carpenter-78188
05/27/2026, 6:03 PMdist/ folder, the default image previously installed unpinned flyte from PyPI, which could resolve to a pre-release matching the in-progress dev line.
• Use packaging.version.Version(__version__).base_version to derive the upcoming release (e.g. 2.3.7 from 2.3.7.dev6+gabc...) and constrain pip to flyte<{base}. That makes pip pick the latest already-released version below the current dev line, with no network call from our code.
• Adds a unit test covering the dev-mode/no-dist branch in src/flyte/_image.py::Image._get_default_image_for.
Test plan
• pytest tests/flyte/test_image.py — all 70 tests pass, including the new test_default_image_dev_mode_pypi_fallback.
• Sanity-check: build a default image on a dev tip and confirm the PyPI fallback resolves to the latest released version below the current dev base.
flyteorg/flyte-sdkacoustic-carpenter-78188
05/27/2026, 10:22 PM