Skip to content

Commit 68bdbda

Browse files
sentrivanashellmayr
authored andcommitted
feat: Officially support 3.14 & run integration tests on 3.14 (#4974)
### Description Added 3.14 support to package meta and reran toxgen so that it detects we support 3.14 now and updates the test matrix. #### Issues - Closes #4911 - Closes #4910 #### Reminders - Please add tests to validate your changes, and lint your code using `tox -e linters`. - Add GH Issue ID _&_ Linear ID (if applicable) - PR title should use [conventional commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type) style (`feat:`, `fix:`, `ref:`, `meta:`) - For external contributors: [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md), [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord community](https://discord.gg/Ww9hbqr)
1 parent 75d0cfe commit 68bdbda

File tree

11 files changed

+80
-70
lines changed

11 files changed

+80
-70
lines changed

.github/workflows/test-integrations-ai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
32+
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

.github/workflows/test-integrations-cloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
32+
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

.github/workflows/test-integrations-flags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.7","3.8","3.9","3.12","3.13"]
32+
python-version: ["3.7","3.8","3.9","3.12","3.13","3.14"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

.github/workflows/test-integrations-graphql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.6","3.8","3.9","3.10","3.11","3.12","3.13"]
32+
python-version: ["3.6","3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

.github/workflows/test-integrations-network.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
32+
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

.github/workflows/test-integrations-web-1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
32+
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

scripts/populate_tox/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@
204204
">=0.3": ["langchain-community"],
205205
},
206206
"include": "<1.0",
207+
"python": {
208+
"<1.0": "<3.14", # https://github.com/langchain-ai/langchain/issues/33449#issuecomment-3408876631
209+
},
207210
},
208211
"langchain-notiktoken": {
209212
"package": "langchain",
@@ -214,6 +217,9 @@
214217
">=0.3": ["langchain-community"],
215218
},
216219
"include": "<1.0",
220+
"python": {
221+
"<1.0": "<3.14", # https://github.com/langchain-ai/langchain/issues/33449#issuecomment-3408876631
222+
},
217223
},
218224
"langgraph": {
219225
"package": "langgraph",

scripts/populate_tox/releases.jsonl

Lines changed: 19 additions & 19 deletions
Large diffs are not rendered by default.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def get_file_text(file_name):
107107
"Programming Language :: Python :: 3.11",
108108
"Programming Language :: Python :: 3.12",
109109
"Programming Language :: Python :: 3.13",
110+
"Programming Language :: Python :: 3.14",
110111
"Topic :: Software Development :: Libraries :: Python Modules",
111112
],
112113
options={"bdist_wheel": {"universal": "1"}},

tests/integrations/quart/test_quart.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import importlib
22
import json
3+
import sys
34
import threading
45
from unittest import mock
56

@@ -78,6 +79,10 @@ def integration_enabled_params(request):
7879
not importlib.util.find_spec("quart_flask_patch"),
7980
reason="requires quart_flask_patch",
8081
)
82+
@pytest.mark.skipif(
83+
sys.version_info >= (3, 14),
84+
reason="quart_flask_patch not working on 3.14 (yet?)",
85+
)
8186
async def test_quart_flask_patch(sentry_init, capture_events, reset_integrations):
8287
# This testcase is forked because `import quart_flask_patch` needs to run
8388
# before anything else Quart-related is imported (since it monkeypatches

0 commit comments

Comments
 (0)