Skip to content

Commit 2c729ff

Browse files
authored
Stop testing for Python 3.7 (#94)
* Stop testing for Python 3.7 * Pin sanic-redis in tests * Run latest black
1 parent 997f481 commit 2c729ff

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
18+
python-version: ['3.8', '3.9', '3.10', '3.11']
1919

2020
# Service containers to run with `container-job`
2121
services:

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
---------
33

4+
2024.X.X (unreleased)
5+
~~~~~~~~~~~~~~~~~~~~~
6+
7+
- Drop support of Python 3.7
8+
9+
410
2024.1.0
511
~~~~~~~~~~~~~~~~~~~~~
612

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def read(*parts):
3737
"Programming Language :: Python",
3838
"Programming Language :: Python :: 3",
3939
"Programming Language :: Python :: 3 :: Only",
40-
"Programming Language :: Python :: 3.7",
4140
"Programming Language :: Python :: 3.8",
4241
"Programming Language :: Python :: 3.9",
4342
"Programming Language :: Python :: 3.10",

tests/constraints/sanic-21.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Sanic>=21,<22
22
websockets<11
3-
sanic-testing<22
3+
sanic-testing<22
4+
sanic-redis<0.5

tests/constraints/sanic-22.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Sanic>=22,<23
2+
sanic-redis<0.5

tests/core/test_logging.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def assert_records(records):
3232

3333

3434
def test_initialization_from_ini(reset_logging, caplog, tmpdir):
35-
ini_content = textwrap.dedent("""
35+
ini_content = textwrap.dedent(
36+
"""
3637
[loggers]
3738
keys = root
3839
@@ -54,7 +55,8 @@ class = StreamHandler
5455
5556
[formatter_json]
5657
class = dockerflow.logging.JsonLogFormatter
57-
""")
58+
"""
59+
)
5860
ini_file = tmpdir.join("logging.ini")
5961
ini_file.write(ini_content)
6062
logging.config.fileConfig(str(ini_file))
@@ -154,7 +156,8 @@ def test_ignore_json_message(caplog):
154156

155157

156158
# https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=42895640
157-
JSON_LOGGING_SCHEMA = json.loads("""
159+
JSON_LOGGING_SCHEMA = json.loads(
160+
"""
158161
{
159162
"type":"object",
160163
"required":["Timestamp"],
@@ -226,4 +229,7 @@ def test_ignore_json_message(caplog):
226229
}
227230
}
228231
}
229-
""".replace("\\", "\\\\")) # HACK: Fix escaping for easy copy/paste
232+
""".replace(
233+
"\\", "\\\\"
234+
)
235+
) # HACK: Fix escaping for easy copy/paste

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ minversion = 1.8
44
envlist =
55
py38-lint
66
py311-docs
7-
py{37,38,39,310}-dj32
7+
py{38,39,310}-dj32
88
py{38,39,310,311}-dj{40,41,42}
99
py{310,311}-dj{50}
10-
py{37,38,39,310,311}-fl{20,21,22}
11-
py{37,38,39,310,311}-s{21,22}
10+
py{38,39,310,311}-fl{20,21,22}
11+
py{38,39,310,311}-s{21,22}
1212

1313
[gh-actions]
1414
python =
15-
3.7: py37
1615
3.8: py38
1716
3.9: py39
1817
3.10: py310

0 commit comments

Comments
 (0)