Skip to content

Commit f94acca

Browse files
authored
🔥 drop support for Python 3.7 (techouse#59)
1 parent 5b250ad commit f94acca

File tree

6 files changed

+9
-100
lines changed

6 files changed

+9
-100
lines changed

.github/workflows/test.yml

-78
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ jobs:
3333
strategy:
3434
matrix:
3535
include:
36-
- toxenv: "python3.7"
37-
db: "mariadb:5.5"
38-
legacy_db: 1
39-
experimental: false
40-
py: "3.7"
41-
4236
- toxenv: "python3.8"
4337
db: "mariadb:5.5"
4438
legacy_db: 1
@@ -63,12 +57,6 @@ jobs:
6357
experimental: false
6458
py: "3.11"
6559

66-
- toxenv: "python3.7"
67-
db: "mariadb:10.0"
68-
legacy_db: 1
69-
experimental: false
70-
py: "3.7"
71-
7260
- toxenv: "python3.8"
7361
db: "mariadb:10.0"
7462
legacy_db: 1
@@ -93,12 +81,6 @@ jobs:
9381
experimental: false
9482
py: "3.11"
9583

96-
- toxenv: "python3.7"
97-
db: "mariadb:10.1"
98-
legacy_db: 1
99-
experimental: false
100-
py: "3.7"
101-
10284
- toxenv: "python3.8"
10385
db: "mariadb:10.1"
10486
legacy_db: 1
@@ -123,12 +105,6 @@ jobs:
123105
experimental: false
124106
py: "3.11"
125107

126-
- toxenv: "python3.7"
127-
db: "mariadb:10.2"
128-
legacy_db: 0
129-
experimental: false
130-
py: "3.7"
131-
132108
- toxenv: "python3.8"
133109
db: "mariadb:10.2"
134110
legacy_db: 0
@@ -153,12 +129,6 @@ jobs:
153129
experimental: false
154130
py: "3.11"
155131

156-
- toxenv: "python3.7"
157-
db: "mariadb:10.3"
158-
legacy_db: 0
159-
experimental: false
160-
py: "3.7"
161-
162132
- toxenv: "python3.8"
163133
db: "mariadb:10.3"
164134
legacy_db: 0
@@ -183,12 +153,6 @@ jobs:
183153
experimental: false
184154
py: "3.11"
185155

186-
- toxenv: "python3.7"
187-
db: "mariadb:10.4"
188-
legacy_db: 0
189-
experimental: false
190-
py: "3.7"
191-
192156
- toxenv: "python3.8"
193157
db: "mariadb:10.4"
194158
legacy_db: 0
@@ -213,12 +177,6 @@ jobs:
213177
experimental: false
214178
py: "3.11"
215179

216-
- toxenv: "python3.7"
217-
db: "mariadb:10.5"
218-
legacy_db: 0
219-
experimental: false
220-
py: "3.7"
221-
222180
- toxenv: "python3.8"
223181
db: "mariadb:10.5"
224182
legacy_db: 0
@@ -243,12 +201,6 @@ jobs:
243201
experimental: false
244202
py: "3.11"
245203

246-
- toxenv: "python3.7"
247-
db: "mariadb:10.6"
248-
legacy_db: 0
249-
experimental: false
250-
py: "3.7"
251-
252204
- toxenv: "python3.8"
253205
db: "mariadb:10.6"
254206
legacy_db: 0
@@ -273,12 +225,6 @@ jobs:
273225
experimental: false
274226
py: "3.11"
275227

276-
- toxenv: "python3.7"
277-
db: "mariadb:10.11"
278-
legacy_db: 0
279-
experimental: false
280-
py: "3.7"
281-
282228
- toxenv: "python3.8"
283229
db: "mariadb:10.11"
284230
legacy_db: 0
@@ -303,12 +249,6 @@ jobs:
303249
experimental: false
304250
py: "3.11"
305251

306-
- toxenv: "python3.7"
307-
db: "mysql:5.5"
308-
legacy_db: 1
309-
experimental: false
310-
py: "3.7"
311-
312252
- toxenv: "python3.8"
313253
db: "mysql:5.5"
314254
legacy_db: 1
@@ -333,12 +273,6 @@ jobs:
333273
experimental: false
334274
py: "3.11"
335275

336-
- toxenv: "python3.7"
337-
db: "mysql:5.6"
338-
legacy_db: 1
339-
experimental: false
340-
py: "3.7"
341-
342276
- toxenv: "python3.8"
343277
db: "mysql:5.6"
344278
legacy_db: 1
@@ -363,12 +297,6 @@ jobs:
363297
experimental: false
364298
py: "3.11"
365299

366-
- toxenv: "python3.7"
367-
db: "mysql:5.7"
368-
legacy_db: 0
369-
experimental: false
370-
py: "3.7"
371-
372300
- toxenv: "python3.8"
373301
db: "mysql:5.7"
374302
legacy_db: 0
@@ -393,12 +321,6 @@ jobs:
393321
experimental: false
394322
py: "3.11"
395323

396-
- toxenv: "python3.7"
397-
db: "mysql:8.0"
398-
legacy_db: 0
399-
experimental: false
400-
py: "3.7"
401-
402324
- toxenv: "python3.8"
403325
db: "mysql:8.0"
404326
legacy_db: 0

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.1.0
2+
3+
* [CHORE] drop support for Python 3.7
4+
15
# 2.0.3
26

37
* [FIX] import MySQLConnectionAbstract instead of concrete implementations

CONTRIBUTING.md

+1-15
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.7, 3.8, 3.9, 3.10 and 3.11.
16+
Currently, the tool supports Python versions 3.8, 3.9, 3.10 and 3.11.
1717

1818
## MySQL version support
1919

@@ -32,20 +32,6 @@ In order to run the test suite run these commands using a Docker MySQL image.
3232

3333
**Requires a running Docker instance!**
3434

35-
- using Python 2.7
36-
37-
```bash
38-
git clone https://github.com/techouse/mysql-to-sqlite3
39-
cd mysql-to-sqlite3
40-
virtualenv -p $(which python2) env
41-
source env/bin/activate
42-
pip install -e .
43-
pip install -r requirements_dev.txt
44-
tox
45-
```
46-
47-
- using Python 3.5+
48-
4935
```bash
5036
git clone https://github.com/techouse/mysql-to-sqlite3
5137
cd mysql-to-sqlite3

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.0.3"
2+
__version__ = "2.1.0"
33

44
from .transporter import MySQLtoSQLite

pyproject.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "mysql-to-sqlite3"
77
description = "A simple Python tool to transfer data from MySQL to SQLite 3"
88
readme = "README.md"
99
license = { text = "MIT" }
10-
requires-python = ">=3.7"
10+
requires-python = ">=3.8"
1111
authors = [
1212
{ name = "Klemen Tusar", email = "[email protected]" },
1313
]
@@ -30,7 +30,6 @@ classifiers = [
3030
"Operating System :: OS Independent",
3131
"Programming Language :: Python",
3232
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3.7",
3433
"Programming Language :: Python :: 3.8",
3534
"Programming Language :: Python :: 3.9",
3635
"Programming Language :: Python :: 3.10",
@@ -69,7 +68,7 @@ mysql2sqlite = "mysql_to_sqlite3.cli:cli"
6968

7069
[tool.black]
7170
line-length = 120
72-
target-version = ["py37", "py38", "py39", "py310", "py311"]
71+
target-version = ["py38", "py39", "py310", "py311"]
7372
include = '\.pyi?$'
7473
exclude = '''
7574
(
@@ -110,7 +109,7 @@ markers = [
110109
]
111110

112111
[tool.mypy]
113-
python_version = "3.7"
112+
python_version = "3.8"
114113
exclude = [
115114
"tests",
116115
"build",

tox.ini

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[tox]
22
isolated_build = true
33
envlist =
4-
python3.7,
54
python3.8,
65
python3.9,
76
python3.10,
@@ -13,7 +12,6 @@ skip_missing_interpreters = true
1312

1413
[gh-actions]
1514
python =
16-
3.7: python3.7
1715
3.8: python3.8
1816
3.9: python3.9
1917
3.10: python3.10

0 commit comments

Comments
 (0)