diff --git a/.github/workflows/devflow-pr-review.yml b/.github/workflows/devflow-pr-review.yml index 8458cfb6a367..29b09145b5d8 100644 --- a/.github/workflows/devflow-pr-review.yml +++ b/.github/workflows/devflow-pr-review.yml @@ -186,7 +186,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true - name: Install DevFlow dependencies diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 25f709b1fda4..4fa4aa6140da 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -21,7 +21,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-integration-tests.yml b/.github/workflows/python-integration-tests.yml index e29fe50b9a79..f0acc731d615 100644 --- a/.github/workflows/python-integration-tests.yml +++ b/.github/workflows/python-integration-tests.yml @@ -123,7 +123,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" @@ -180,7 +180,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} - name: Install dependencies @@ -221,7 +221,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} - name: Install dependencies @@ -272,7 +272,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" @@ -337,7 +337,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" @@ -395,7 +395,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index f852d7e608f0..2640110b56ec 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -27,7 +27,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-test-coverage.yml b/.github/workflows/python-test-coverage.yml index 78f53d8f0dff..d736f6e4d3fb 100644 --- a/.github/workflows/python-test-coverage.yml +++ b/.github/workflows/python-test-coverage.yml @@ -29,7 +29,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ env.UV_PYTHON }} cache-dependency-glob: "**/uv.lock" diff --git a/.github/workflows/python-unit-tests.yml b/.github/workflows/python-unit-tests.yml index e39b18e7ff16..bbb7ebaa2bdf 100644 --- a/.github/workflows/python-unit-tests.yml +++ b/.github/workflows/python-unit-tests.yml @@ -43,7 +43,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 with: - version: "0.5.x" + version: "0.5.31" enable-cache: true cache-suffix: ${{ runner.os }}-${{ matrix.python-version }} cache-dependency-glob: "**/uv.lock" diff --git a/python/pyproject.toml b/python/pyproject.toml index 6bc95f773a90..0b8734ef2024 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -33,6 +33,8 @@ dependencies = [ "defusedxml ~= 0.7", # azure identity "azure-identity >= 1.13", + # cryptography 50.0.2 has no Python 3.10-compatible distributions. + "cryptography!=50.0.2; python_version < '3.11'", # embeddings "numpy >= 1.25.0; python_version < '3.12'", "numpy >= 1.26.0; python_version >= '3.12'", diff --git a/python/uv.lock b/python/uv.lock index 5b93345b1480..bd0a696b4aca 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -6674,6 +6674,7 @@ dependencies = [ { name = "azure-ai-projects", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "azure-identity", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "cloudevents", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, + { name = "cryptography", marker = "(python_full_version < '3.11' and sys_platform == 'darwin') or (python_full_version < '3.11' and sys_platform == 'linux') or (python_full_version < '3.11' and sys_platform == 'win32')" }, { name = "defusedxml", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "jinja2", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, { name = "mcp", marker = "sys_platform == 'darwin' or sys_platform == 'linux' or sys_platform == 'win32'" }, @@ -6823,6 +6824,7 @@ requires-dist = [ { name = "boto3", marker = "extra == 'aws'", specifier = ">=1.36.4,<1.43.0" }, { name = "chromadb", marker = "extra == 'chroma'", specifier = ">=0.5,<1.6" }, { name = "cloudevents", specifier = ">=1,<3" }, + { name = "cryptography", marker = "python_full_version < '3.11'", specifier = "!=50.0.2" }, { name = "defusedxml", specifier = "~=0.7" }, { name = "faiss-cpu", marker = "extra == 'faiss'", specifier = ">=1.10.0" }, { name = "google-cloud-aiplatform", marker = "extra == 'google'", specifier = ">=1.114,<1.134" },