Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/django/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def __init__(self, transaction_style="url", middleware_spans=True):
def setup_once():
# type: () -> None

if DJANGO_VERSION < (1, 6):
raise DidNotEnable("Django 1.6 or newer is required.")
if DJANGO_VERSION < (1, 8):
raise DidNotEnable("Django 1.8 or newer is required.")

install_sql_hook()
# Patch in our custom middleware.
Expand Down
14 changes: 4 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ envlist =
# General format is {pythonversion}-{integrationname}-{frameworkversion}
# 1 blank line between different integrations
# Each framework version should only be mentioned once. I.e:
# {py2.7,py3.7}-django-{1.11}
# {py3.7}-django-{2.2}
# {py3.7,py3.10}-django-{3.2}
# {py3.10}-django-{4.0}
# instead of:
# {py2.7}-django-{1.11}
# {py2.7,py3.7}-django-{1.11,2.2}
# {py3.7}-django-{3.2}
# {py3.7,py3.10}-django-{3.2,4.0}

{pypy,py2.7}-django-{1.6,1.7}
{pypy,py2.7,py3.5}-django-{1.8,1.9,1.10}
{pypy,py2.7}-django-{1.8,1.9,1.10,1.11}
{py3.5,py3.6,py3.7}-django-{2.0,2.1}
Expand Down Expand Up @@ -100,13 +99,10 @@ deps =
{py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: pytest-asyncio
{py2.7,py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary

django-{1.6,1.7}: pytest-django<3.0
django-{1.8,1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0
django-{2.2,3.0,3.1,3.2}: pytest-django>=4.0
django-{2.2,3.0,3.1,3.2}: Werkzeug<2.0

django-1.6: Django>=1.6,<1.7
django-1.7: Django>=1.7,<1.8
django-1.8: Django>=1.8,<1.9
django-1.9: Django>=1.9,<1.10
django-1.10: Django>=1.10,<1.11
Expand Down Expand Up @@ -306,8 +302,6 @@ basepython =
pypy: pypy

commands =
django-{1.6,1.7}: pip install pytest<4

; https://github.com/pytest-dev/pytest/issues/5532
{py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.10,0.11,0.12}: pip install pytest<5
{py3.6,py3.7,py3.8,py3.9}-flask-{0.11}: pip install Werkzeug<2
Expand Down