Skip to content

Commit 258f946

Browse files
authored
🔖 release v2.1.1 (techouse#60)
# 2.1.1 * [CHORE] add support for Python 3.12 * [CHORE] bump minimum version of MySQL Connector/Python to 8.2.0
1 parent 5e1eaec commit 258f946

File tree

8 files changed

+94
-8
lines changed

8 files changed

+94
-8
lines changed

.github/workflows/test.yml

+78
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ jobs:
5757
experimental: false
5858
py: "3.11"
5959

60+
- toxenv: "python3.12"
61+
db: "mariadb:5.5"
62+
legacy_db: 1
63+
experimental: false
64+
py: "3.12"
65+
6066
- toxenv: "python3.8"
6167
db: "mariadb:10.0"
6268
legacy_db: 1
@@ -81,6 +87,12 @@ jobs:
8187
experimental: false
8288
py: "3.11"
8389

90+
- toxenv: "python3.12"
91+
db: "mariadb:10.0"
92+
legacy_db: 1
93+
experimental: false
94+
py: "3.12"
95+
8496
- toxenv: "python3.8"
8597
db: "mariadb:10.1"
8698
legacy_db: 1
@@ -105,6 +117,12 @@ jobs:
105117
experimental: false
106118
py: "3.11"
107119

120+
- toxenv: "python3.12"
121+
db: "mariadb:10.1"
122+
legacy_db: 1
123+
experimental: false
124+
py: "3.12"
125+
108126
- toxenv: "python3.8"
109127
db: "mariadb:10.2"
110128
legacy_db: 0
@@ -129,6 +147,12 @@ jobs:
129147
experimental: false
130148
py: "3.11"
131149

150+
- toxenv: "python3.12"
151+
db: "mariadb:10.2"
152+
legacy_db: 0
153+
experimental: false
154+
py: "3.12"
155+
132156
- toxenv: "python3.8"
133157
db: "mariadb:10.3"
134158
legacy_db: 0
@@ -153,6 +177,12 @@ jobs:
153177
experimental: false
154178
py: "3.11"
155179

180+
- toxenv: "python3.12"
181+
db: "mariadb:10.3"
182+
legacy_db: 0
183+
experimental: false
184+
py: "3.12"
185+
156186
- toxenv: "python3.8"
157187
db: "mariadb:10.4"
158188
legacy_db: 0
@@ -177,6 +207,12 @@ jobs:
177207
experimental: false
178208
py: "3.11"
179209

210+
- toxenv: "python3.12"
211+
db: "mariadb:10.4"
212+
legacy_db: 0
213+
experimental: false
214+
py: "3.12"
215+
180216
- toxenv: "python3.8"
181217
db: "mariadb:10.5"
182218
legacy_db: 0
@@ -201,6 +237,12 @@ jobs:
201237
experimental: false
202238
py: "3.11"
203239

240+
- toxenv: "python3.12"
241+
db: "mariadb:10.5"
242+
legacy_db: 0
243+
experimental: false
244+
py: "3.12"
245+
204246
- toxenv: "python3.8"
205247
db: "mariadb:10.6"
206248
legacy_db: 0
@@ -225,6 +267,12 @@ jobs:
225267
experimental: false
226268
py: "3.11"
227269

270+
- toxenv: "python3.12"
271+
db: "mariadb:10.6"
272+
legacy_db: 0
273+
experimental: false
274+
py: "3.12"
275+
228276
- toxenv: "python3.8"
229277
db: "mariadb:10.11"
230278
legacy_db: 0
@@ -249,6 +297,12 @@ jobs:
249297
experimental: false
250298
py: "3.11"
251299

300+
- toxenv: "python3.12"
301+
db: "mariadb:10.11"
302+
legacy_db: 0
303+
experimental: false
304+
py: "3.12"
305+
252306
- toxenv: "python3.8"
253307
db: "mysql:5.5"
254308
legacy_db: 1
@@ -273,6 +327,12 @@ jobs:
273327
experimental: false
274328
py: "3.11"
275329

330+
- toxenv: "python3.12"
331+
db: "mysql:5.5"
332+
legacy_db: 1
333+
experimental: false
334+
py: "3.12"
335+
276336
- toxenv: "python3.8"
277337
db: "mysql:5.6"
278338
legacy_db: 1
@@ -297,6 +357,12 @@ jobs:
297357
experimental: false
298358
py: "3.11"
299359

360+
- toxenv: "python3.12"
361+
db: "mysql:5.6"
362+
legacy_db: 1
363+
experimental: false
364+
py: "3.12"
365+
300366
- toxenv: "python3.8"
301367
db: "mysql:5.7"
302368
legacy_db: 0
@@ -321,6 +387,12 @@ jobs:
321387
experimental: false
322388
py: "3.11"
323389

390+
- toxenv: "python3.12"
391+
db: "mysql:5.7"
392+
legacy_db: 0
393+
experimental: false
394+
py: "3.12"
395+
324396
- toxenv: "python3.8"
325397
db: "mysql:8.0"
326398
legacy_db: 0
@@ -344,6 +416,12 @@ jobs:
344416
legacy_db: 0
345417
experimental: false
346418
py: "3.11"
419+
420+
- toxenv: "python3.12"
421+
db: "mysql:8.0"
422+
legacy_db: 0
423+
experimental: false
424+
py: "3.12"
347425
continue-on-error: ${{ matrix.experimental }}
348426
services:
349427
mysql:

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 2.1.1
2+
3+
* [CHORE] add support for Python 3.12
4+
* [CHORE] bump minimum version of MySQL Connector/Python to 8.2.0
5+
16
# 2.1.0
27

38
* [CHORE] drop support for Python 3.7

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interactions related to the project.
1313

1414
Ensuring backward compatibility is an imperative requirement.
1515

16-
Currently, the tool supports Python versions 3.8, 3.9, 3.10 and 3.11.
16+
Currently, the tool supports Python versions 3.8, 3.9, 3.10, 3.11, and 3.12.
1717

1818
## MySQL version support
1919

mysql_to_sqlite3/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Utility to transfer data from MySQL to SQLite 3."""
2-
__version__ = "2.1.0"
2+
__version__ = "2.1.1"
33

44
from .transporter import MySQLtoSQLite

mysql_to_sqlite3/debug_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sqlite3
88
import sys
99
import typing as t
10-
from distutils.spawn import find_executable # pylint: disable=W0402
10+
from shutil import which
1111
from subprocess import check_output
1212

1313
import click
@@ -56,7 +56,7 @@ def _implementation() -> str:
5656

5757

5858
def _mysql_version() -> str:
59-
if find_executable("mysql"):
59+
if which("mysql") is not None:
6060
try:
6161
mysql_version: t.Union[str, bytes] = check_output(["mysql", "-V"])
6262
try:

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ classifiers = [
3434
"Programming Language :: Python :: 3.9",
3535
"Programming Language :: Python :: 3.10",
3636
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
3738
"Programming Language :: Python :: Implementation :: CPython",
3839
"Topic :: Database",
3940
]
4041
dependencies = [
4142
"Click>=8.1.3",
42-
"mysql-connector-python>=8.0.33",
43+
"mysql-connector-python>=8.2.0",
4344
"pytimeparse2",
4445
"python-slugify>=7.0.0",
4546
"simplejson>=3.19.0",
@@ -68,7 +69,7 @@ mysql2sqlite = "mysql_to_sqlite3.cli:cli"
6869

6970
[tool.black]
7071
line-length = 120
71-
target-version = ["py38", "py39", "py310", "py311"]
72+
target-version = ["py38", "py39", "py310", "py311", "py312"]
7273
include = '\.pyi?$'
7374
exclude = '''
7475
(

requirements_dev.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Click>=8.1.3
22
docker>=6.1.3
33
factory-boy
44
Faker>=18.10.0
5-
mysql-connector-python>=8.0.33
5+
mysql-connector-python>=8.2.0
66
mysqlclient>=2.1.1
77
pytest>=7.3.1
88
pytest-cov
@@ -19,7 +19,7 @@ types-sqlalchemy-utils
1919
tox
2020
tqdm>=4.65.0
2121
types-tqdm
22-
packaging>=23.1
22+
packaging
2323
tabulate
2424
types-tabulate
2525
typing_extensions

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
python3.9,
66
python3.10,
77
python3.11,
8+
python3.12,
89
black,
910
flake8,
1011
linters
@@ -16,6 +17,7 @@ python =
1617
3.9: python3.9
1718
3.10: python3.10
1819
3.11: python3.11
20+
3.12: python3.12
1921

2022
[testenv]
2123
passenv =

0 commit comments

Comments
 (0)