Skip to content

Commit 7cdfcf9

Browse files
authored
Bump baseline supported version to Python 3.8 (#154)
* Bump baseline supported version to Python 3.8 Bump to Python 3.8 as baseline and add 3.13 support. We have to drop 3.7 testing because it's not available anymore with github setup python action. * Mock time_ns in tests for python 3.13
1 parent dc85188 commit 7cdfcf9

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.github/workflows/periodic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
timeout-minutes: 10
1616
strategy:
1717
matrix:
18-
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
18+
python: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
1919
fail-fast: false
2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/test-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
timeout-minutes: 5
2424
strategy:
2525
matrix:
26-
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
26+
python: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
2727
fail-fast: false
2828
steps:
2929
- run: 'echo "No build required"'

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
timeout-minutes: 10
4242
strategy:
4343
matrix:
44-
python: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
44+
python: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
4545
fail-fast: false
4646
steps:
4747
- uses: actions/checkout@v4

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def tests_impl(session):
3636
)
3737

3838

39-
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
39+
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"])
4040
def test(session):
4141
tests_impl(session)
4242

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@ classifiers = [
1313
"Development Status :: 5 - Production/Stable",
1414
"Intended Audience :: Developers",
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.6",
17-
"Programming Language :: Python :: 3.7",
1816
"Programming Language :: Python :: 3.8",
1917
"Programming Language :: Python :: 3.9",
2018
"Programming Language :: Python :: 3.10",
2119
"Programming Language :: Python :: 3.11",
2220
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
2322
"Topic :: System :: Logging",
2423
"License :: OSI Approved :: Apache Software License"
2524
]
2625
requires = []
27-
requires-python = ">=3.6"
26+
requires-python = ">=3.8"
2827

2928
[tool.flit.metadata.requires-extra]
3029
develop = [

tests/test_stdlib_formatter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ def test_can_be_set_on_handler():
9999
)
100100

101101

102+
@mock.patch("time.time_ns")
102103
@mock.patch("time.time")
103-
def test_extra_is_merged(time, logger):
104+
def test_extra_is_merged(time, time_ns, logger):
104105
time.return_value = 1584720997.187709
106+
time_ns.return_value = time.return_value * 1_000_000_000
105107

106108
stream = StringIO()
107109
handler = logging.StreamHandler(stream)

0 commit comments

Comments
 (0)