Skip to content

Commit 25ab360

Browse files
committed
Tests, CI: Add Python 3.11
1 parent e2e7df6 commit 25ab360

5 files changed

Lines changed: 42 additions & 36 deletions

File tree

.github/workflows/run-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest]
11-
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
11+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
1212
include:
1313
- os: ubuntu-latest
1414
os-name: Linux

devscripts/test-sqlobject.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SetLocal EnableDelayedExpansion
44
set SavePATH=%PATH%
55

6-
for %%V in (27 34 35 36 37 38 39 310) do (
6+
for %%V in (27 34 35 36 37 38 39 310 311) do (
77
for %%s in (32 64) do (
88
set PATH=C:\Python%%V-%%s;C:\Python%%V-%%s\Scripts;!SavePATH!
99
set TOXPYTHON=C:\Python%%V-%%s\python.exe

docs/News.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ News
88
SQLObject (master)
99
==================
1010

11+
Tests, CI
12+
---------
13+
14+
* Run tests with Python 3.11.
15+
1116
SQLObject 3.10.0
1217
================
1318

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"Programming Language :: Python :: 3.8",
6363
"Programming Language :: Python :: 3.9",
6464
"Programming Language :: Python :: 3.10",
65+
"Programming Language :: Python :: 3.11",
6566
"Topic :: Database",
6667
"Topic :: Database :: Front-Ends",
6768
"Topic :: Software Development :: Libraries :: Python Modules",

tox.ini

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 3.15
3-
envlist = py27,py3{4,5,6,7,8,9,10}-sqlite{,-memory},py{27,310}-flake8
3+
envlist = py27,py3{4,5,6,7,8,9,10,11}-sqlite{,-memory},py{27,36,311}-flake8
44

55
# Base test environment settings
66
[testenv]
@@ -62,7 +62,7 @@ commands =
6262
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
6363
{[mysqldb]commands}
6464

65-
[testenv:py3{4,5,6,7,8,9,10}-mysqldb]
65+
[testenv:py3{4,5,6,7,8,9,10,11}-mysqldb]
6666
commands = {envpython} -c "print('MySQL-python requires Python 2.7')"
6767
deps =
6868

@@ -78,7 +78,7 @@ commands =
7878
commands = {envpython} -c "print('mysqlclient requires Python 3.4+')"
7979
deps =
8080

81-
[testenv:py3{4,5,6,7,8,9,10}-mysqlclient]
81+
[testenv:py3{4,5,6,7,8,9,10,11}-mysqlclient]
8282
commands = {[mysqlclient]commands}
8383

8484
[mysql-connector]
@@ -94,7 +94,7 @@ commands =
9494
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
9595
{[mysql-connector]commands}
9696

97-
[testenv:py3{4,5,6,7,8,9,10}-mysql-connector]
97+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-connector]
9898
commands = {[mysql-connector]commands}
9999

100100
[oursql]
@@ -110,7 +110,7 @@ commands =
110110
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
111111
{[oursql]commands}
112112

113-
[testenv:py3{4,5,6,7,8,9,10}-mysql-oursql3-noauto]
113+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-oursql3-noauto]
114114
commands = {[oursql]commands}
115115

116116
[pymysql]
@@ -126,7 +126,7 @@ commands =
126126
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
127127
{[pymysql]commands}
128128

129-
[testenv:py3{4,5,6,7,8,9,10}-mysql-pymysql]
129+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-pymysql]
130130
commands = {[pymysql]commands}
131131

132132
[mariadb]
@@ -141,7 +141,7 @@ commands =
141141
commands = {envpython} -c "print('mariadb requires Python 3.6+')"
142142
deps =
143143

144-
[testenv:py3{6,7,8,9,10}-mariadb]
144+
[testenv:py3{6,7,8,9,10,11}-mariadb]
145145
commands = {[mariadb]commands}
146146

147147
[mysql-pyodbc]
@@ -158,7 +158,7 @@ commands =
158158
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
159159
{[mysql-pyodbc]commands}
160160

161-
[testenv:py3{4,5,6,7,8,9,10}-mysql-pyodbc-noauto]
161+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-pyodbc-noauto]
162162
commands = {[mysql-pyodbc]commands}
163163

164164
[mysql-pypyodbc]
@@ -174,7 +174,7 @@ commands =
174174
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
175175
{[mysql-pypyodbc]commands}
176176

177-
[testenv:py3{4,5,6,7,8,9,10}-mysql-pypyodbc-noauto]
177+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-pypyodbc-noauto]
178178
commands = {[mysql-pypyodbc]commands}
179179

180180
# PostgreSQL test environments
@@ -191,7 +191,7 @@ commands =
191191
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
192192
{[psycopg]commands}
193193

194-
[testenv:py3{4,5,6,7,8,9,10}-postgres-psycopg]
194+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-psycopg]
195195
commands = {[psycopg]commands}
196196

197197
[pygresql]
@@ -207,7 +207,7 @@ commands =
207207
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
208208
{[pygresql]commands}
209209

210-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pygresql]
210+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pygresql]
211211
commands = {[pygresql]commands}
212212

213213
[pypostgresql]
@@ -222,7 +222,7 @@ commands =
222222
commands = {envpython} -c "print('pypostgresql requires Python 3.4+')"
223223
deps =
224224

225-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pypostgresql-noauto]
225+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pypostgresql-noauto]
226226
commands = {[pypostgresql]commands}
227227

228228
[pg8000]
@@ -241,7 +241,7 @@ commands =
241241
[testenv:py3{4,5,6}-postgres-pg8000]
242242
commands = {[pg8000]commands}
243243

244-
[testenv:py3{7,8,9,10}-postgres-pg8000-noauto]
244+
[testenv:py3{7,8,9,10,11}-postgres-pg8000-noauto]
245245
commands = {[pg8000]commands}
246246

247247
[postgres-pyodbc]
@@ -258,7 +258,7 @@ commands =
258258
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
259259
{[postgres-pyodbc]commands}
260260

261-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pyodbc-noauto]
261+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pyodbc-noauto]
262262
commands = {[postgres-pyodbc]commands}
263263

264264
[postgres-pypyodbc]
@@ -274,7 +274,7 @@ commands =
274274
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
275275
{[postgres-pypyodbc]commands}
276276

277-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pypyodbc-noauto]
277+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pypyodbc-noauto]
278278
commands = {[postgres-pypyodbc]commands}
279279

280280

@@ -291,7 +291,7 @@ commands =
291291
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
292292
{[sqlite]commands}
293293

294-
[testenv:py3{4,5,6,7,8,9,10}-sqlite]
294+
[testenv:py3{4,5,6,7,8,9,10,11}-sqlite]
295295
commands = {[sqlite]commands}
296296

297297
[sqlite-memory]
@@ -304,7 +304,7 @@ commands =
304304
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
305305
{[sqlite-memory]commands}
306306

307-
[testenv:py3{4,5,6,7,8,9,10}-sqlite-memory]
307+
[testenv:py3{4,5,6,7,8,9,10,11}-sqlite-memory]
308308
commands = {[sqlite-memory]commands}
309309

310310
[sqlite-supersqlite]
@@ -319,7 +319,7 @@ commands =
319319
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
320320
{[sqlite-supersqlite]commands}
321321

322-
[testenv:py3{4,5,6,7,8,9,10}-sqlite-supersqlite]
322+
[testenv:py3{4,5,6,7,8,9,10,11}-sqlite-supersqlite]
323323
commands = {[sqlite-supersqlite]commands}
324324

325325

@@ -337,7 +337,7 @@ commands =
337337
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
338338
{[fdb]commands}
339339

340-
[testenv:py3{4,5,6,7,8,9,10}-firebird-fdb]
340+
[testenv:py3{4,5,6,7,8,9,10,11}-firebird-fdb]
341341
commands = {[fdb]commands}
342342

343343
[firebirdsql]
@@ -353,7 +353,7 @@ commands =
353353
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
354354
{[firebirdsql]commands}
355355

356-
[testenv:py3{4,5,6,7,8,9,10}-firebirdsql]
356+
[testenv:py3{4,5,6,7,8,9,10,11}-firebirdsql]
357357
commands = {[firebirdsql]commands}
358358

359359

@@ -384,7 +384,7 @@ commands =
384384
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
385385
{[mssql-pyodbc-w32]commands}
386386

387-
[testenv:py3{4,5,6,7,8,9,10}-mssql-pyodbc-noauto-w32]
387+
[testenv:py3{4,5,6,7,8,9,10,11}-mssql-pyodbc-noauto-w32]
388388
platform = win32
389389
commands = {[mssql-pyodbc-w32]commands}
390390

@@ -403,7 +403,7 @@ commands =
403403
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
404404
{[mysql-connector-w32]commands}
405405

406-
[testenv:py3{4,5,6,7,8,9,10}-mysql-connector-w32]
406+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-connector-w32]
407407
platform = win32
408408
commands = {[mysql-connector-w32]commands}
409409

@@ -422,7 +422,7 @@ commands =
422422
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
423423
{[pymysql-w32]commands}
424424

425-
[testenv:py3{4,5,6,7,8,9,10}-mysql-pymysql-w32]
425+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-pymysql-w32]
426426
platform = win32
427427
commands = {[pymysql-w32]commands}
428428

@@ -440,7 +440,7 @@ platform = win32
440440
commands = {envpython} -c "print('mariadb requires Python 3.6+')"
441441
deps =
442442

443-
[testenv:py3{6,7,8,9,10}-mariadb-w32]
443+
[testenv:py3{6,7,8,9,10,11}-mariadb-w32]
444444
platform = win32
445445
commands = {[mariadb-w32]commands}
446446

@@ -460,7 +460,7 @@ commands =
460460
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
461461
{[mysql-pyodbc-w32]commands}
462462

463-
[testenv:py3{4,5,6,7,8,9,10}-mysql-pyodbc-noauto-w32]
463+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-pyodbc-noauto-w32]
464464
platform = win32
465465
commands = {[mysql-pyodbc-w32]commands}
466466

@@ -480,7 +480,7 @@ commands =
480480
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
481481
{[mysql-pypyodbc-w32]commands}
482482

483-
[testenv:py3{4,5,6,7,8,9,10}-mysql-pypyodbc-noauto-w32]
483+
[testenv:py3{4,5,6,7,8,9,10,11}-mysql-pypyodbc-noauto-w32]
484484
platform = win32
485485
commands = {[mysql-pypyodbc-w32]commands}
486486

@@ -499,7 +499,7 @@ commands =
499499
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
500500
{[psycopg-w32]commands}
501501

502-
[testenv:py3{4,5,6,7,8,9,10}-postgres-psycopg-w32]
502+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-psycopg-w32]
503503
platform = win32
504504
commands = {[psycopg-w32]commands}
505505

@@ -518,7 +518,7 @@ commands =
518518
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
519519
{[pygresql-w32]commands}
520520

521-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pygresql-w32]
521+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pygresql-w32]
522522
platform = win32
523523
commands = {[pygresql-w32]commands}
524524

@@ -536,7 +536,7 @@ platform = win32
536536
commands = {envpython} -c "print('pypostgresql requires Python 3.4+')"
537537
deps =
538538

539-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pypostgresql-noauto-w32]
539+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pypostgresql-noauto-w32]
540540
platform = win32
541541
commands = {[pypostgresql-w32]commands}
542542

@@ -555,7 +555,7 @@ commands =
555555
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
556556
{[pg8000-w32]commands}
557557

558-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pg8000-w32]
558+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pg8000-w32]
559559
platform = win32
560560
commands = {[pg8000-w32]commands}
561561

@@ -575,7 +575,7 @@ commands =
575575
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
576576
{[postgres-pyodbc-w32]commands}
577577

578-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pyodbc-noauto-w32]
578+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pyodbc-noauto-w32]
579579
platform = win32
580580
commands = {[postgres-pyodbc-w32]commands}
581581

@@ -595,7 +595,7 @@ commands =
595595
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
596596
{[postgres-pypyodbc-w32]commands}
597597

598-
[testenv:py3{4,5,6,7,8,9,10}-postgres-pypyodbc-noauto-w32]
598+
[testenv:py3{4,5,6,7,8,9,10,11}-postgres-pypyodbc-noauto-w32]
599599
platform = win32
600600
commands = {[postgres-pypyodbc-w32]commands}
601601

@@ -612,7 +612,7 @@ commands =
612612
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
613613
{[sqlite-w32]commands}
614614

615-
[testenv:py3{4,5,6,7,8,9,10}-sqlite-w32]
615+
[testenv:py3{4,5,6,7,8,9,10,11}-sqlite-w32]
616616
platform = win32
617617
commands = {[sqlite-w32]commands}
618618

@@ -628,6 +628,6 @@ commands =
628628
easy_install -i https://downloads.egenix.com/python/index/ucs2/ egenix-mx-base
629629
{[sqlite-memory-w32]commands}
630630

631-
[testenv:py3{4,5,6,7,8,9,10}-sqlite-memory-w32]
631+
[testenv:py3{4,5,6,7,8,9,10,11}-sqlite-memory-w32]
632632
platform = win32
633633
commands = {[sqlite-memory-w32]commands}

0 commit comments

Comments
 (0)