Skip to content

Commit 5910b07

Browse files
authored
Merge branch 'master' into logger_ourlogs
2 parents 7599bd0 + 6f49bfb commit 5910b07

File tree

7 files changed

+42
-43
lines changed

7 files changed

+42
-43
lines changed

.github/workflows/test-integrations-web-2.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.11","3.12","3.13"]
32+
python-version: ["3.8","3.9","3.12","3.13"]
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969
"launchdarkly": {
7070
"package": "launchdarkly-server-sdk",
7171
},
72+
"litestar": {
73+
"package": "litestar",
74+
"deps": {
75+
"*": ["pytest-asyncio", "python-multipart", "requests", "cryptography"],
76+
"<2.7": ["httpx<0.28"],
77+
},
78+
},
7279
"loguru": {
7380
"package": "loguru",
7481
},

scripts/populate_tox/populate_tox.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,26 @@
4949
# suites over to this script. Some entries will probably stay forever
5050
# as they don't fit the mold (e.g. common, asgi, which don't have a 3rd party
5151
# pypi package to install in different versions).
52+
#
53+
# Test suites that will have to remain hardcoded since they don't fit the
54+
# toxgen usecase
55+
"asgi",
56+
"aws_lambda",
57+
"cloud_resource_context",
5258
"common",
5359
"gevent",
5460
"opentelemetry",
5561
"potel",
62+
# Integrations that can be migrated -- we should eventually remove all
63+
# of these from the IGNORE list
5664
"aiohttp",
5765
"anthropic",
5866
"arq",
59-
"asgi",
6067
"asyncpg",
61-
"aws_lambda",
6268
"beam",
6369
"boto3",
6470
"chalice",
6571
"cohere",
66-
"cloud_resource_context",
67-
"cohere",
6872
"django",
6973
"fastapi",
7074
"gcp",
@@ -73,7 +77,6 @@
7377
"huggingface_hub",
7478
"langchain",
7579
"langchain_notiktoken",
76-
"litestar",
7780
"openai",
7881
"openai_notiktoken",
7982
"pure_eval",

scripts/populate_tox/tox.jinja

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ envlist =
115115
{py3.9,py3.11,py3.12}-langchain-latest
116116
{py3.9,py3.11,py3.12}-langchain-notiktoken
117117

118-
# Litestar
119-
{py3.8,py3.11}-litestar-v{2.0}
120-
{py3.8,py3.11,py3.12}-litestar-v{2.6}
121-
{py3.8,py3.11,py3.12}-litestar-v{2.12}
122-
{py3.8,py3.11,py3.12}-litestar-latest
123-
124118
# OpenAI
125119
{py3.9,py3.11,py3.12}-openai-v1.0
126120
{py3.9,py3.11,py3.12}-openai-v1.22
@@ -347,17 +341,6 @@ deps =
347341
langchain-{latest,notiktoken}: openai>=1.6.1
348342
langchain-latest: tiktoken~=0.6.0
349343
350-
# Litestar
351-
litestar: pytest-asyncio
352-
litestar: python-multipart
353-
litestar: requests
354-
litestar: cryptography
355-
litestar-v{2.0,2.6}: httpx<0.28
356-
litestar-v2.0: litestar~=2.0.0
357-
litestar-v2.6: litestar~=2.6.0
358-
litestar-v2.12: litestar~=2.12.0
359-
litestar-latest: litestar
360-
361344
# OpenAI
362345
openai: pytest-asyncio
363346
openai-v1.0: openai~=1.0.0

sentry_sdk/scope.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,11 @@ def set_transaction_name(self, name, source=None):
794794
def user(self, value):
795795
# type: (Optional[Dict[str, Any]]) -> None
796796
"""When set a specific user is bound to the scope. Deprecated in favor of set_user."""
797+
warnings.warn(
798+
"The `Scope.user` setter is deprecated in favor of `Scope.set_user()`.",
799+
DeprecationWarning,
800+
stacklevel=2,
801+
)
797802
self.set_user(value)
798803

799804
def set_user(self, value):

tests/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88

99
import sentry_sdk
10+
from sentry_sdk._compat import PY38
1011
from sentry_sdk.integrations import Integration
1112
from sentry_sdk._queue import Queue
1213
from sentry_sdk.utils import (
@@ -901,6 +902,7 @@ def target():
901902
assert (main_thread.ident, main_thread.name) == results.get(timeout=1)
902903

903904

905+
@pytest.mark.skipif(PY38, reason="Flakes a lot on 3.8 in CI.")
904906
def test_get_current_thread_meta_failed_to_get_main_thread():
905907
results = Queue(maxsize=1)
906908

tox.ini

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# The file (and all resulting CI YAMLs) then need to be regenerated via
1111
# "scripts/generate-test-files.sh".
1212
#
13-
# Last generated: 2025-03-18T10:29:17.585636+00:00
13+
# Last generated: 2025-03-25T13:14:20.133361+00:00
1414

1515
[tox]
1616
requires =
@@ -115,12 +115,6 @@ envlist =
115115
{py3.9,py3.11,py3.12}-langchain-latest
116116
{py3.9,py3.11,py3.12}-langchain-notiktoken
117117

118-
# Litestar
119-
{py3.8,py3.11}-litestar-v{2.0}
120-
{py3.8,py3.11,py3.12}-litestar-v{2.6}
121-
{py3.8,py3.11,py3.12}-litestar-v{2.12}
122-
{py3.8,py3.11,py3.12}-litestar-latest
123-
124118
# OpenAI
125119
{py3.9,py3.11,py3.12}-openai-v1.0
126120
{py3.9,py3.11,py3.12}-openai-v1.22
@@ -178,7 +172,7 @@ envlist =
178172
{py3.6}-pymongo-v3.5.1
179173
{py3.6,py3.10,py3.11}-pymongo-v3.13.0
180174
{py3.6,py3.9,py3.10}-pymongo-v4.0.2
181-
{py3.9,py3.12,py3.13}-pymongo-v4.11.2
175+
{py3.9,py3.12,py3.13}-pymongo-v4.11.3
182176

183177
{py3.6}-redis_py_cluster_legacy-v1.3.6
184178
{py3.6,py3.7}-redis_py_cluster_legacy-v2.0.0
@@ -271,6 +265,11 @@ envlist =
271265
{py3.6,py3.11,py3.12}-falcon-v3.1.3
272266
{py3.8,py3.11,py3.12}-falcon-v4.0.2
273267

268+
{py3.8,py3.10,py3.11}-litestar-v2.0.1
269+
{py3.8,py3.11,py3.12}-litestar-v2.5.5
270+
{py3.8,py3.11,py3.12}-litestar-v2.10.0
271+
{py3.8,py3.12,py3.13}-litestar-v2.15.1
272+
274273
{py3.6}-pyramid-v1.8.6
275274
{py3.6,py3.8,py3.9}-pyramid-v1.10.8
276275
{py3.6,py3.10,py3.11}-pyramid-v2.0.2
@@ -464,17 +463,6 @@ deps =
464463
langchain-{latest,notiktoken}: openai>=1.6.1
465464
langchain-latest: tiktoken~=0.6.0
466465

467-
# Litestar
468-
litestar: pytest-asyncio
469-
litestar: python-multipart
470-
litestar: requests
471-
litestar: cryptography
472-
litestar-v{2.0,2.6}: httpx<0.28
473-
litestar-v2.0: litestar~=2.0.0
474-
litestar-v2.6: litestar~=2.6.0
475-
litestar-v2.12: litestar~=2.12.0
476-
litestar-latest: litestar
477-
478466
# OpenAI
479467
openai: pytest-asyncio
480468
openai-v1.0: openai~=1.0.0
@@ -568,7 +556,7 @@ deps =
568556
pymongo-v3.5.1: pymongo==3.5.1
569557
pymongo-v3.13.0: pymongo==3.13.0
570558
pymongo-v4.0.2: pymongo==4.0.2
571-
pymongo-v4.11.2: pymongo==4.11.2
559+
pymongo-v4.11.3: pymongo==4.11.3
572560
pymongo: mockupdb
573561

574562
redis_py_cluster_legacy-v1.3.6: redis-py-cluster==1.3.6
@@ -694,6 +682,17 @@ deps =
694682
falcon-v3.1.3: falcon==3.1.3
695683
falcon-v4.0.2: falcon==4.0.2
696684

685+
litestar-v2.0.1: litestar==2.0.1
686+
litestar-v2.5.5: litestar==2.5.5
687+
litestar-v2.10.0: litestar==2.10.0
688+
litestar-v2.15.1: litestar==2.15.1
689+
litestar: pytest-asyncio
690+
litestar: python-multipart
691+
litestar: requests
692+
litestar: cryptography
693+
litestar-v2.0.1: httpx<0.28
694+
litestar-v2.5.5: httpx<0.28
695+
697696
pyramid-v1.8.6: pyramid==1.8.6
698697
pyramid-v1.10.8: pyramid==1.10.8
699698
pyramid-v2.0.2: pyramid==2.0.2

0 commit comments

Comments
 (0)