diff --git a/.github/workflows/test-integrations-web-2.yml b/.github/workflows/test-integrations-web-2.yml index a06ad23b32..4f03f7748c 100644 --- a/.github/workflows/test-integrations-web-2.yml +++ b/.github/workflows/test-integrations-web-2.yml @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.11","3.12","3.13"] + python-version: ["3.8","3.11","3.12","3.13"] # python3.6 reached EOL and is no longer being supported on # new versions of hosted runners on Github Actions # ubuntu-20.04 is the last version that supported python3.6 diff --git a/scripts/populate_tox/config.py b/scripts/populate_tox/config.py index b5da928d80..336b8910a8 100644 --- a/scripts/populate_tox/config.py +++ b/scripts/populate_tox/config.py @@ -93,6 +93,15 @@ "requests": { "package": "requests", }, + "sanic": { + "package": "sanic", + "python": ">=3.6", + "deps": { + "*": ["websockets<11.0", "aiohttp"], + ">=21.3.0": ["sanic_testing"], + "py3.6": ["aiocontextvars==0.2.1"], + }, + }, "spark": { "package": "pyspark", "python": ">=3.8", diff --git a/scripts/populate_tox/populate_tox.py b/scripts/populate_tox/populate_tox.py index 544d4bdcb1..7d132a7645 100644 --- a/scripts/populate_tox/populate_tox.py +++ b/scripts/populate_tox/populate_tox.py @@ -82,7 +82,6 @@ "redis", "requests", "rq", - "sanic", } diff --git a/scripts/populate_tox/tox.jinja b/scripts/populate_tox/tox.jinja index 5f1a26ac5e..54bf117946 100644 --- a/scripts/populate_tox/tox.jinja +++ b/scripts/populate_tox/tox.jinja @@ -162,12 +162,6 @@ envlist = {py3.7,py3.11,py3.12}-rq-v{1.15,1.16} {py3.7,py3.12,py3.13}-rq-latest - # Sanic - {py3.6,py3.7}-sanic-v{0.8} - {py3.6,py3.8}-sanic-v{20} - {py3.8,py3.11,py3.12}-sanic-v{24.6} - {py3.9,py3.12,py3.13}-sanic-latest - # === Integrations - Auto-generated === # These come from the populate_tox.py script. Eventually we should move all # integration tests there. @@ -430,17 +424,6 @@ deps = rq-v1.16: rq~=1.16.0 rq-latest: rq - # Sanic - sanic: websockets<11.0 - sanic: aiohttp - sanic-v{24.6}: sanic_testing - sanic-latest: sanic_testing - {py3.6}-sanic: aiocontextvars==0.2.1 - sanic-v0.8: sanic~=0.8.0 - sanic-v20: sanic~=20.0 - sanic-v24.6: sanic~=24.6.0 - sanic-latest: sanic - # === Integrations - Auto-generated === # These come from the populate_tox.py script. Eventually we should move all # integration tests there. diff --git a/sentry_sdk/integrations/__init__.py b/sentry_sdk/integrations/__init__.py index 9bff264752..e1d148acf6 100644 --- a/sentry_sdk/integrations/__init__.py +++ b/sentry_sdk/integrations/__init__.py @@ -149,7 +149,7 @@ def iter_default_integrations(with_auto_enabling_integrations): "ray": (2, 7, 0), "requests": (2, 0, 0), "rq": (0, 6), - "sanic": (0, 8), + "sanic": (20, 3, 0), "sqlalchemy": (1, 2), "starlette": (0, 16), "starlite": (1, 48), diff --git a/tox.ini b/tox.ini index 40cbf74475..e4b214b19f 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ # The file (and all resulting CI YAMLs) then need to be regenerated via # "scripts/generate-test-files.sh". # -# Last generated: 2025-03-18T10:29:17.585636+00:00 +# Last generated: 2025-03-20T13:22:01.066551+00:00 [tox] requires = @@ -162,12 +162,6 @@ envlist = {py3.7,py3.11,py3.12}-rq-v{1.15,1.16} {py3.7,py3.12,py3.13}-rq-latest - # Sanic - {py3.6,py3.7}-sanic-v{0.8} - {py3.6,py3.8}-sanic-v{20} - {py3.8,py3.11,py3.12}-sanic-v{24.6} - {py3.9,py3.12,py3.13}-sanic-latest - # === Integrations - Auto-generated === # These come from the populate_tox.py script. Eventually we should move all # integration tests there. @@ -178,7 +172,7 @@ envlist = {py3.6}-pymongo-v3.5.1 {py3.6,py3.10,py3.11}-pymongo-v3.13.0 {py3.6,py3.9,py3.10}-pymongo-v4.0.2 - {py3.9,py3.12,py3.13}-pymongo-v4.11.2 + {py3.9,py3.12,py3.13}-pymongo-v4.11.3 {py3.6}-redis_py_cluster_legacy-v1.3.6 {py3.6,py3.7}-redis_py_cluster_legacy-v2.0.0 @@ -275,6 +269,14 @@ envlist = {py3.6,py3.8,py3.9}-pyramid-v1.10.8 {py3.6,py3.10,py3.11}-pyramid-v2.0.2 + {py3.6,py3.7,py3.8}-sanic-v20.3.0 + {py3.6,py3.8,py3.9}-sanic-v20.12.7 + {py3.7,py3.9,py3.10}-sanic-v21.12.2 + {py3.7,py3.10,py3.11}-sanic-v22.12.0 + {py3.8,py3.10,py3.11}-sanic-v23.12.2 + {py3.8,py3.10,py3.11}-sanic-v24.6.0 + {py3.8,py3.10,py3.11}-sanic-v24.12.0 + {py3.8,py3.10,py3.11}-starlite-v1.48.1 {py3.8,py3.10,py3.11}-starlite-v1.49.0 {py3.8,py3.10,py3.11}-starlite-v1.50.2 @@ -547,17 +549,6 @@ deps = rq-v1.16: rq~=1.16.0 rq-latest: rq - # Sanic - sanic: websockets<11.0 - sanic: aiohttp - sanic-v{24.6}: sanic_testing - sanic-latest: sanic_testing - {py3.6}-sanic: aiocontextvars==0.2.1 - sanic-v0.8: sanic~=0.8.0 - sanic-v20: sanic~=20.0 - sanic-v24.6: sanic~=24.6.0 - sanic-latest: sanic - # === Integrations - Auto-generated === # These come from the populate_tox.py script. Eventually we should move all # integration tests there. @@ -568,7 +559,7 @@ deps = pymongo-v3.5.1: pymongo==3.5.1 pymongo-v3.13.0: pymongo==3.13.0 pymongo-v4.0.2: pymongo==4.0.2 - pymongo-v4.11.2: pymongo==4.11.2 + pymongo-v4.11.3: pymongo==4.11.3 pymongo: mockupdb redis_py_cluster_legacy-v1.3.6: redis-py-cluster==1.3.6 @@ -699,6 +690,22 @@ deps = pyramid-v2.0.2: pyramid==2.0.2 pyramid: werkzeug<2.1.0 + sanic-v20.3.0: sanic==20.3.0 + sanic-v20.12.7: sanic==20.12.7 + sanic-v21.12.2: sanic==21.12.2 + sanic-v22.12.0: sanic==22.12.0 + sanic-v23.12.2: sanic==23.12.2 + sanic-v24.6.0: sanic==24.6.0 + sanic-v24.12.0: sanic==24.12.0 + sanic: websockets<11.0 + sanic: aiohttp + sanic-v21.12.2: sanic_testing + sanic-v22.12.0: sanic_testing + sanic-v23.12.2: sanic_testing + sanic-v24.6.0: sanic_testing + sanic-v24.12.0: sanic_testing + py3.6-sanic: aiocontextvars==0.2.1 + starlite-v1.48.1: starlite==1.48.1 starlite-v1.49.0: starlite==1.49.0 starlite-v1.50.2: starlite==1.50.2