Skip to content

Commit 242b814

Browse files
romanlutzCopilot
andcommitted
Add Python 3.14 support
- Bump requires-python upper bound from <3.14 to <3.15 - Add Python 3.14 classifier - Add Python 3.14 to CI test matrix - Add python_version < 3.14 marker for gradio (blocked by pydantic-core) - Bump actions/checkout v3->v5, actions/setup-python v3->v6, actions/cache v3->v4 Blockers resolved since PR microsoft#1130 was opened: - datasets/PyArrow: supported since PyArrow 22+ - pyodbc: supported since v5.3.0 - spacy: supported since v3.8.10 - torch: supported since PyTorch 2.10 - semantic-kernel: removed from dependencies Remaining blocker (optional extra only): - gradio: blocked by pydantic-core missing 3.14 wheels Relates to microsoft#1130 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 07fd38b commit 242b814

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
permissions:
3232
contents: read
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v5
3535

36-
- uses: actions/setup-python@v3
36+
- uses: actions/setup-python@v6
3737
with:
3838
python-version: ${{ env.PRE_COMMIT_PYTHON_VERSION }}
3939

4040
- name: Cache pre-commit environments
41-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4242
with:
4343
path: ~/.cache/pre-commit
4444
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
@@ -83,7 +83,7 @@ jobs:
8383
fail-fast: true
8484
matrix:
8585
os: [ubuntu-latest, windows-latest, macos-latest]
86-
python: ["3.10", "3.11", "3.12", "3.13"]
86+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
8787
package_name: ["pyrit"]
8888
package_extras: ["dev", "dev_all"]
8989
runs-on: ${{ matrix.os }}
@@ -94,10 +94,10 @@ jobs:
9494
checks: write
9595
pull-requests: write
9696
steps:
97-
- uses: actions/checkout@v3
97+
- uses: actions/checkout@v5
9898

9999
# Set up Python
100-
- uses: actions/setup-python@v3
100+
- uses: actions/setup-python@v6
101101
with:
102102
python-version: ${{ matrix.python }}
103103

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ classifiers = [
2323
"Programming Language :: Python :: 3.11",
2424
"Programming Language :: Python :: 3.12",
2525
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3.14",
2627
]
27-
requires-python = ">=3.10, <3.14"
28+
requires-python = ">=3.10, <3.15"
2829
dependencies = [
2930
"aiofiles>=24,<25",
3031
"appdirs>=1.4.0",
@@ -117,7 +118,7 @@ playwright = [
117118
"playwright>=1.49.0",
118119
]
119120
gradio = [
120-
"gradio>=5.32.0",
121+
"gradio>=5.32.0; python_version < '3.14'", # https://github.com/gradio-app/gradio/issues/12118
121122
"rpyc>=6.0.1",
122123
"pywebview>=5.4"
123124
]
@@ -141,7 +142,7 @@ all = [
141142
"flask>=3.1.3",
142143
"ipykernel>=6.29.5",
143144
"jupyter>=1.1.1",
144-
"gradio>=5.32.0",
145+
"gradio>=5.32.0; python_version < '3.14'", # https://github.com/gradio-app/gradio/issues/12118
145146
"mlflow>=2.22.0",
146147
"ml-collections>=1.1.0",
147148
"ollama>=0.5.1",

0 commit comments

Comments
 (0)