"""Regression coverage for production deploy.sh UV_EXTRAS propagation.""" from __future__ import annotations import os import re import shlex import shutil import subprocess import sys from pathlib import Path import pytest from support.shell import find_script_bash REPO_ROOT = Path(__file__).resolve().parents[2] # Every test here shells out to sh/bash; on Windows that must be Git Bash — # the WSL launcher and Store alias stubs cannot run the repo scripts. BASH = find_script_bash() pytestmark = pytest.mark.skipif(BASH is None, reason="repo shell-script tests need Git Bash on Windows") def _backend_dockerfile_uv_sync_script() -> str: dockerfile = (REPO_ROOT / "backend" / "Dockerfile").read_text(encoding="utf-8") match = re.search(r"""sh -c (?P["'])(?P