File tree Expand file tree Collapse file tree 5 files changed +24
-6
lines changed Expand file tree Collapse file tree 5 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1+ # 2.4.5
2+
3+ * [ FIX] fix importing ` typing_extensions ` on Python >= 3.11
4+
15# 2.4.4
26
37* [ FIX] fix pyproject.toml build sources and specify package inclusion for sdist and wheel
Original file line number Diff line number Diff line change 1- FROM python:3.12 -alpine
1+ FROM python:3.13 -alpine
22
33LABEL maintainer="https://github.com/techouse"
44
Original file line number Diff line number Diff line change 11"""Utility to transfer data from MySQL to SQLite 3."""
22
3- __version__ = "2.4.4 "
3+ __version__ = "2.4.5 "
44
55from .transporter import MySQLtoSQLite
Original file line number Diff line number Diff line change 1212from sys import stdout
1313
1414import mysql .connector
15- import typing_extensions as tx
1615from mysql .connector import CharacterSet , errorcode
1716from mysql .connector .abstracts import MySQLConnectionAbstract
1817from mysql .connector .types import RowItemType
1918from tqdm import tqdm , trange
2019
20+
21+ try :
22+ # Python 3.11+
23+ from typing import Unpack # type: ignore[attr-defined]
24+ except ImportError :
25+ # Python < 3.11
26+ from typing_extensions import Unpack # type: ignore
27+
2128from mysql_to_sqlite3 .mysql_utils import CHARSET_INTRODUCERS
2229from mysql_to_sqlite3 .sqlite_utils import (
2330 CollatingSequences ,
@@ -38,7 +45,7 @@ class MySQLtoSQLite(MySQLtoSQLiteAttributes):
3845 COLUMN_PATTERN : t .Pattern [str ] = re .compile (r"^[^(]+" )
3946 COLUMN_LENGTH_PATTERN : t .Pattern [str ] = re .compile (r"\(\d+\)$" )
4047
41- def __init__ (self , ** kwargs : tx . Unpack [MySQLtoSQLiteParams ]) -> None :
48+ def __init__ (self , ** kwargs : Unpack [MySQLtoSQLiteParams ]) -> None :
4249 """Constructor."""
4350 if kwargs .get ("mysql_database" ) is not None :
4451 self ._mysql_database = str (kwargs .get ("mysql_database" ))
Original file line number Diff line number Diff line change 55from logging import Logger
66from sqlite3 import Connection , Cursor
77
8- import typing_extensions as tx
98from mysql .connector .abstracts import MySQLConnectionAbstract
109from mysql .connector .cursor import MySQLCursorDict , MySQLCursorPrepared , MySQLCursorRaw
1110
1211
13- class MySQLtoSQLiteParams (tx .TypedDict ):
12+ try :
13+ # Python 3.11+
14+ from typing import TypedDict # type: ignore[attr-defined]
15+ except ImportError :
16+ # Python < 3.11
17+ from typing_extensions import TypedDict
18+
19+
20+ class MySQLtoSQLiteParams (TypedDict ):
1421 """MySQLtoSQLite parameters."""
1522
1623 buffered : t .Optional [bool ]
You can’t perform that action at this time.
0 commit comments