Skip to content

Commit 957d7bb

Browse files
committed
does it work in django 3.0?
1 parent 890640f commit 957d7bb

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

sentry_sdk/integrations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def iter_default_integrations(with_auto_enabling_integrations):
131131
"celery": (4, 4, 7),
132132
"chalice": (1, 16, 0),
133133
"clickhouse_driver": (0, 2, 0),
134-
"django": (1, 8),
134+
"django": (3, 0),
135135
"dramatiq": (1, 9),
136136
"falcon": (1, 4),
137137
"fastapi": (0, 79, 0),

sentry_sdk/integrations/threading.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,8 @@ def sentry_start(self, *a, **kw):
5757
return old_start(self, *a, **kw)
5858

5959
if integration.propagate_scope:
60-
isolation_scope = sentry_sdk.get_isolation_scope()
61-
current_scope = sentry_sdk.get_current_scope()
62-
# isolation_scope = sentry_sdk.get_isolation_scope().fork()
63-
# current_scope = sentry_sdk.get_current_scope().fork()
60+
isolation_scope = sentry_sdk.get_isolation_scope().fork()
61+
current_scope = sentry_sdk.get_current_scope().fork()
6462
else:
6563
isolation_scope = None
6664
current_scope = None

tox.ini

Lines changed: 9 additions & 18 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-04-14T10:33:01.506897+00:00
13+
# Last generated: 2025-04-14T10:46:11.205400+00:00
1414

1515
[tox]
1616
requires =
@@ -230,9 +230,7 @@ envlist =
230230

231231

232232
# ~~~ Web 1 ~~~
233-
{py3.6}-django-v1.11.9
234-
{py3.6,py3.7}-django-v1.11.29
235-
{py3.6,py3.8,py3.9}-django-v2.2.28
233+
{py3.6,py3.7,py3.8}-django-v3.0.9
236234
{py3.6,py3.9,py3.10}-django-v3.2.25
237235
{py3.8,py3.11,py3.12}-django-v4.2.20
238236
{py3.10,py3.11,py3.12}-django-v5.0.9
@@ -614,9 +612,7 @@ deps =
614612

615613

616614
# ~~~ Web 1 ~~~
617-
django-v1.11.9: django==1.11.9
618-
django-v1.11.29: django==1.11.29
619-
django-v2.2.28: django==2.2.28
615+
django-v3.0.9: django==3.0.9
620616
django-v3.2.25: django==3.2.25
621617
django-v4.2.20: django==4.2.20
622618
django-v5.0.9: django==5.0.9
@@ -625,23 +621,18 @@ deps =
625621
django: djangorestframework
626622
django: pytest-django
627623
django: Werkzeug
624+
django-v3.0.9: pytest-asyncio
628625
django-v3.2.25: pytest-asyncio
629626
django-v4.2.20: pytest-asyncio
630627
django-v5.0.9: pytest-asyncio
631628
django-v5.2: pytest-asyncio
632-
django-v2.2.28: six
633-
django-v1.11.9: djangorestframework>=3.0,<4.0
634-
django-v1.11.9: Werkzeug<2.1.0
635-
django-v1.11.29: djangorestframework>=3.0,<4.0
636-
django-v1.11.29: Werkzeug<2.1.0
637-
django-v2.2.28: djangorestframework>=3.0,<4.0
638-
django-v2.2.28: Werkzeug<2.1.0
629+
django-v3.0.9: six
630+
django-v3.0.9: djangorestframework>=3.0,<4.0
631+
django-v3.0.9: Werkzeug<2.1.0
639632
django-v3.2.25: djangorestframework>=3.0,<4.0
640633
django-v3.2.25: Werkzeug<2.1.0
641-
django-v1.11.9: pytest-django<4.0
642-
django-v1.11.29: pytest-django<4.0
643-
django-v2.2.28: pytest-django<4.0
644-
django-v2.2.28: channels[daphne]
634+
django-v3.0.9: pytest-django<4.0
635+
django-v3.0.9: channels[daphne]
645636
django-v3.2.25: channels[daphne]
646637
django-v4.2.20: channels[daphne]
647638
django-v5.0.9: channels[daphne]

0 commit comments

Comments
 (0)