Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into fastapi-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Feb 14, 2024
2 parents a5757be + 2c729ff commit b8084d0
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']

# Service containers to run with `container-job`
services:
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
---------

2024.X.X (unreleased)
~~~~~~~~~~~~~~~~~~~~~

- Drop support of Python 3.7


2024.1.0
~~~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def read(*parts):
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
3 changes: 2 additions & 1 deletion tests/constraints/sanic-21.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Sanic>=21,<22
websockets<11
sanic-testing<22
sanic-testing<22
sanic-redis<0.5
1 change: 1 addition & 0 deletions tests/constraints/sanic-22.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Sanic>=22,<23
sanic-redis<0.5
14 changes: 10 additions & 4 deletions tests/core/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def assert_records(records):


def test_initialization_from_ini(reset_logging, caplog, tmpdir):
ini_content = textwrap.dedent("""
ini_content = textwrap.dedent(
"""
[loggers]
keys = root
Expand All @@ -54,7 +55,8 @@ class = StreamHandler
[formatter_json]
class = dockerflow.logging.JsonLogFormatter
""")
"""
)
ini_file = tmpdir.join("logging.ini")
ini_file.write(ini_content)
logging.config.fileConfig(str(ini_file))
Expand Down Expand Up @@ -154,7 +156,8 @@ def test_ignore_json_message(caplog):


# https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=42895640
JSON_LOGGING_SCHEMA = json.loads("""
JSON_LOGGING_SCHEMA = json.loads(
"""
{
"type":"object",
"required":["Timestamp"],
Expand Down Expand Up @@ -226,4 +229,7 @@ def test_ignore_json_message(caplog):
}
}
}
""".replace("\\", "\\\\")) # HACK: Fix escaping for easy copy/paste
""".replace(
"\\", "\\\\"
)
) # HACK: Fix escaping for easy copy/paste
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ minversion = 1.8
envlist =
py38-lint
py311-docs
py{37,38,39,310}-dj32
py{38,39,310}-dj32
py{38,39,310,311}-dj{40,41,42}
py{310,311}-dj{50}
py{38,39,310,311}-fa100
py{37,38,39,310,311}-fl{20,21,22}
py{37,38,39,310,311}-s{21,22}
py{38,39,310,311}-fl{20,21,22}
py{38,39,310,311}-s{21,22}

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down

0 comments on commit b8084d0

Please sign in to comment.