Skip to content

Commit 0301586

Browse files
committed
Moving Sanic under toxgen
1 parent eb189ef commit 0301586

File tree

6 files changed

+35
-40
lines changed

6 files changed

+35
-40
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.11","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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@
9393
"requests": {
9494
"package": "requests",
9595
},
96+
"sanic": {
97+
"package": "sanic",
98+
"python": ">=3.6",
99+
"deps": {
100+
"*": ["websockets<11.0", "aiohttp"],
101+
">=24.6": ["sanic_testing"],
102+
"py3.6": ["aiocontextvars==0.2.1"],
103+
},
104+
},
96105
"spark": {
97106
"package": "pyspark",
98107
"python": ">=3.8",

scripts/populate_tox/populate_tox.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
"redis",
8383
"requests",
8484
"rq",
85-
"sanic",
8685
}
8786

8887

scripts/populate_tox/tox.jinja

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@ envlist =
162162
{py3.7,py3.11,py3.12}-rq-v{1.15,1.16}
163163
{py3.7,py3.12,py3.13}-rq-latest
164164

165-
# Sanic
166-
{py3.6,py3.7}-sanic-v{0.8}
167-
{py3.6,py3.8}-sanic-v{20}
168-
{py3.8,py3.11,py3.12}-sanic-v{24.6}
169-
{py3.9,py3.12,py3.13}-sanic-latest
170-
171165
# === Integrations - Auto-generated ===
172166
# These come from the populate_tox.py script. Eventually we should move all
173167
# integration tests there.
@@ -430,17 +424,6 @@ deps =
430424
rq-v1.16: rq~=1.16.0
431425
rq-latest: rq
432426
433-
# Sanic
434-
sanic: websockets<11.0
435-
sanic: aiohttp
436-
sanic-v{24.6}: sanic_testing
437-
sanic-latest: sanic_testing
438-
{py3.6}-sanic: aiocontextvars==0.2.1
439-
sanic-v0.8: sanic~=0.8.0
440-
sanic-v20: sanic~=20.0
441-
sanic-v24.6: sanic~=24.6.0
442-
sanic-latest: sanic
443-
444427
# === Integrations - Auto-generated ===
445428
# These come from the populate_tox.py script. Eventually we should move all
446429
# integration tests there.

sentry_sdk/integrations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def iter_default_integrations(with_auto_enabling_integrations):
149149
"ray": (2, 7, 0),
150150
"requests": (2, 0, 0),
151151
"rq": (0, 6),
152-
"sanic": (0, 8),
152+
"sanic": (20, 3, 0),
153153
"sqlalchemy": (1, 2),
154154
"starlette": (0, 16),
155155
"starlite": (1, 48),

tox.ini

Lines changed: 24 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-20T12:36:00.418187+00:00
1414

1515
[tox]
1616
requires =
@@ -162,12 +162,6 @@ envlist =
162162
{py3.7,py3.11,py3.12}-rq-v{1.15,1.16}
163163
{py3.7,py3.12,py3.13}-rq-latest
164164

165-
# Sanic
166-
{py3.6,py3.7}-sanic-v{0.8}
167-
{py3.6,py3.8}-sanic-v{20}
168-
{py3.8,py3.11,py3.12}-sanic-v{24.6}
169-
{py3.9,py3.12,py3.13}-sanic-latest
170-
171165
# === Integrations - Auto-generated ===
172166
# These come from the populate_tox.py script. Eventually we should move all
173167
# integration tests there.
@@ -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
@@ -275,6 +269,14 @@ envlist =
275269
{py3.6,py3.8,py3.9}-pyramid-v1.10.8
276270
{py3.6,py3.10,py3.11}-pyramid-v2.0.2
277271

272+
{py3.6,py3.7,py3.8}-sanic-v20.3.0
273+
{py3.6,py3.8,py3.9}-sanic-v20.12.7
274+
{py3.7,py3.9,py3.10}-sanic-v21.12.2
275+
{py3.7,py3.10,py3.11}-sanic-v22.12.0
276+
{py3.8,py3.10,py3.11}-sanic-v23.12.2
277+
{py3.8,py3.10,py3.11}-sanic-v24.6.0
278+
{py3.8,py3.10,py3.11}-sanic-v24.12.0
279+
278280
{py3.8,py3.10,py3.11}-starlite-v1.48.1
279281
{py3.8,py3.10,py3.11}-starlite-v1.49.0
280282
{py3.8,py3.10,py3.11}-starlite-v1.50.2
@@ -547,17 +549,6 @@ deps =
547549
rq-v1.16: rq~=1.16.0
548550
rq-latest: rq
549551

550-
# Sanic
551-
sanic: websockets<11.0
552-
sanic: aiohttp
553-
sanic-v{24.6}: sanic_testing
554-
sanic-latest: sanic_testing
555-
{py3.6}-sanic: aiocontextvars==0.2.1
556-
sanic-v0.8: sanic~=0.8.0
557-
sanic-v20: sanic~=20.0
558-
sanic-v24.6: sanic~=24.6.0
559-
sanic-latest: sanic
560-
561552
# === Integrations - Auto-generated ===
562553
# These come from the populate_tox.py script. Eventually we should move all
563554
# integration tests there.
@@ -568,7 +559,7 @@ deps =
568559
pymongo-v3.5.1: pymongo==3.5.1
569560
pymongo-v3.13.0: pymongo==3.13.0
570561
pymongo-v4.0.2: pymongo==4.0.2
571-
pymongo-v4.11.2: pymongo==4.11.2
562+
pymongo-v4.11.3: pymongo==4.11.3
572563
pymongo: mockupdb
573564

574565
redis_py_cluster_legacy-v1.3.6: redis-py-cluster==1.3.6
@@ -699,6 +690,19 @@ deps =
699690
pyramid-v2.0.2: pyramid==2.0.2
700691
pyramid: werkzeug<2.1.0
701692

693+
sanic-v20.3.0: sanic==20.3.0
694+
sanic-v20.12.7: sanic==20.12.7
695+
sanic-v21.12.2: sanic==21.12.2
696+
sanic-v22.12.0: sanic==22.12.0
697+
sanic-v23.12.2: sanic==23.12.2
698+
sanic-v24.6.0: sanic==24.6.0
699+
sanic-v24.12.0: sanic==24.12.0
700+
sanic: websockets<11.0
701+
sanic: aiohttp
702+
sanic-v24.6.0: sanic_testing
703+
sanic-v24.12.0: sanic_testing
704+
py3.6-sanic: aiocontextvars==0.2.1
705+
702706
starlite-v1.48.1: starlite==1.48.1
703707
starlite-v1.49.0: starlite==1.49.0
704708
starlite-v1.50.2: starlite==1.50.2

0 commit comments

Comments
 (0)