diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 3645e30378b95..6cb4918de54b2 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -47,7 +47,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Install Python dependencies run: | diff --git a/.github/workflows/gguf-publish.yml b/.github/workflows/gguf-publish.yml index 3ca4d30581074..a6ce14662eae3 100644 --- a/.github/workflows/gguf-publish.yml +++ b/.github/workflows/gguf-publish.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9.x' + python-version: '3.12' - name: Install dependencies run: | cd gguf-py diff --git a/.github/workflows/python-check-requirements.yml b/.github/workflows/python-check-requirements.yml index 46e80aecd0a0c..0d65c48990179 100644 --- a/.github/workflows/python-check-requirements.yml +++ b/.github/workflows/python-check-requirements.yml @@ -28,6 +28,6 @@ jobs: - name: Set up Python environment uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Run check-requirements.sh script run: bash scripts/check-requirements.sh diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 1ea1300c2e4c3..943bd08d38ce6 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -69,7 +69,7 @@ jobs: id: setup_python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Tests dependencies id: test_dependencies @@ -255,7 +255,7 @@ jobs: id: setup_python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Tests dependencies id: test_dependencies @@ -361,7 +361,7 @@ jobs: id: setup_python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Tests dependencies id: test_dependencies diff --git a/.github/workflows/snyk-security-scan.yml b/.github/workflows/snyk-security-scan.yml index 350c26613befe..0e3f153e7407a 100644 --- a/.github/workflows/snyk-security-scan.yml +++ b/.github/workflows/snyk-security-scan.yml @@ -34,7 +34,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.12' - name: Install dependencies run: | diff --git a/.github/workflows/update-ops-docs.yml b/.github/workflows/update-ops-docs.yml index d5e264b34f496..6214acd154f06 100644 --- a/.github/workflows/update-ops-docs.yml +++ b/.github/workflows/update-ops-docs.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: '3.12' - name: Generate operations documentation to temporary file run: | diff --git a/pyproject.toml b/pyproject.toml index 3d71b055a8dbf..8ee220fee3b14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ ] [tool.poetry.dependencies] -python = ">=3.9" +python = ">=3.12" numpy = "^1.25.0" sentencepiece = ">=0.1.98,<=0.2.0" transformers = ">=4.35.2,<5.0.0" diff --git a/tests/test-json-schema-to-grammar.cpp b/tests/test-json-schema-to-grammar.cpp index 67df240c6fef3..4a2b4076989ad 100755 --- a/tests/test-json-schema-to-grammar.cpp +++ b/tests/test-json-schema-to-grammar.cpp @@ -1320,7 +1320,7 @@ int main() { if (getenv("LLAMA_SKIP_TESTS_SLOW_ON_EMULATOR")) { fprintf(stderr, "\033[33mWARNING: Skipping slow tests on emulator.\n\033[0m"); } else { - if (getenv("LLAMA_PYTHON_AVAILABLE") || (std::system("python -c \"import sys; exit(1) if sys.version_info < (3, 8) else print('Python version is sufficient')\"") == 0)) { + if (getenv("LLAMA_PYTHON_AVAILABLE") || (std::system("python -c \"import sys; exit(1) if sys.version_info < (3, 12) else print('Python version is sufficient')\"") == 0)) { test_all("Python", [](const TestCase & tc) { write("test-json-schema-input.tmp", tc.schema); tc.verify_status(std::system( @@ -1328,7 +1328,7 @@ int main() { tc.verify(read("test-grammar-output.tmp")); }); } else { - fprintf(stderr, "\033[33mWARNING: Python not found (min version required is 3.8), skipping Python JSON schema -> grammar tests.\n\033[0m"); + fprintf(stderr, "\033[33mWARNING: Python not found (min version required is 3.12), skipping Python JSON schema -> grammar tests.\n\033[0m"); } if (getenv("LLAMA_NODE_AVAILABLE") || (std::system("node --version") == 0)) {