@@ -119,12 +119,36 @@ def iter_default_integrations(with_auto_enabling_integrations):
119119del _generate_default_integrations_iterator
120120
121121_MIN_VERSIONS = {
122- 'aiohttp' : (3 , 4 ),
123- 'anthropic' : (0 , 16 ),
124- 'ariadne' : (0 , 20 ),
125- 'arq' : (0 , 23 ),
126- 'asyncpg' : (0 , 23 ),
127- 'boto3' : (1 , 12 ), # this is actually the botocore version
122+ "aiohttp" : (3 , 4 ),
123+ "anthropic" : (0 , 16 ),
124+ "ariadne" : (0 , 20 ),
125+ "arq" : (0 , 23 ),
126+ "asyncpg" : (0 , 23 ),
127+ "boto3" : (1 , 12 ), # this is actually the botocore version
128+ "bottle" : (0 , 12 ),
129+ "celery" : (4 , 4 , 7 ),
130+ "clickhouse_driver" : (0 , 2 , 0 ),
131+ "django" : (1 , 8 ),
132+ "falcon" : (1 , 4 ),
133+ "flask" : (0 , 10 ),
134+ "gql" : (3 , 4 , 1 ),
135+ "graphene" : (3 , 3 ),
136+ "ray" : (2 , 7 , 0 ),
137+ "rq" : (0 , 6 ),
138+ "sanic" : (0 , 8 ),
139+ "sqlalchemy" : (1 , 2 ),
140+ "strawberry" : (0 , 209 , 5 ),
141+ "tornado" : (6 , 0 ),
142+ }
143+
144+
145+ _MIN_VERSIONS = {
146+ "aiohttp" : (3 , 4 ),
147+ "anthropic" : (0 , 16 ),
148+ "ariadne" : (0 , 20 ),
149+ "arq" : (0 , 23 ),
150+ "asyncpg" : (0 , 23 ),
151+ "boto3" : (1 , 12 ), # this is actually the botocore version
128152 "bottle" : (0 , 12 ),
129153 "celery" : (4 , 4 , 7 ),
130154 "clickhouse_driver" : (0 , 2 , 0 ),
@@ -218,18 +242,20 @@ def setup_integrations(
218242
219243
220244def _check_minimum_version (integration , version , package = None ):
221- # type: (Integration, Optional[tuple[int]], Optional[str]) -> None
245+ # type: (type[ Integration] , Optional[tuple[int, ... ]], Optional[str]) -> None
222246 package = package or integration .identifier
223247
224248 if version is None :
225- raise DidNotEnable (f"Unparsable { package } version: { version } " )
249+ raise DidNotEnable (f"Unparsable { package } version. " )
226250
227251 min_version = _MIN_VERSIONS .get (integration .identifier )
228252 if min_version is None :
229253 return
230254
231255 if version < min_version :
232- raise DidNotEnable (f"Integration only supports { package } { '.' .join (map (str , min_version ))} or newer." )
256+ raise DidNotEnable (
257+ f"Integration only supports { package } { '.' .join (map (str , min_version ))} or newer."
258+ )
233259
234260
235261class DidNotEnable (Exception ): # noqa: N818
0 commit comments