Skip to content

Commit dcba9ae

Browse files
committed
MAINT: dropping Python 3.9 support
1 parent c235213 commit dcba9ae

4 files changed

Lines changed: 6 additions & 18 deletions

File tree

.github/workflows/python-tests.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,9 @@ jobs:
1919
# The aim with the matrix below is to walk through a representative but not full combination of OS, Python, and pytest versions.
2020
matrix:
2121
include:
22-
- os: ubuntu-latest
23-
python-version: '3.9'
24-
toxenv: py39-test-pytestoldest
25-
- os: windows-latest
26-
python-version: '3.9'
27-
toxenv: py39-test-pytest50
28-
- os: ubuntu-latest
29-
python-version: '3.9'
30-
toxenv: py39-test-pytest60
31-
- os: macos-latest
32-
python-version: '3.9'
33-
toxenv: py39-test-pytest62
3422
- os: ubuntu-latest
3523
python-version: '3.10'
36-
toxenv: py310-test-pytest70
24+
toxenv: py10-test-pytestoldest
3725
- os: ubuntu-latest
3826
python-version: '3.10'
3927
toxenv: py310-test-pytest71

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ classifiers =
1111
Programming Language :: Python
1212
Programming Language :: Python :: 3
1313
Programming Language :: Python :: 3 :: Only
14-
Programming Language :: Python :: 3.9
1514
Programming Language :: Python :: 3.10
1615
Programming Language :: Python :: 3.11
1716
Programming Language :: Python :: 3.12
@@ -29,7 +28,7 @@ keywords = doctest, rst, pytest, py.test
2928
[options]
3029
zip_safe = False
3130
packages = find:
32-
python_requires = >=3.9
31+
python_requires = >=3.10
3332
setup_requires =
3433
setuptools_scm
3534
install_requires =

tests/test_encoding.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import os
33
from pathlib import Path
44
from textwrap import dedent
5-
from typing import Callable, Optional
5+
from typing import Optional
6+
from collections.abc import Callable
67

78
import pytest
89

@@ -66,7 +67,7 @@ def f():
6667
def ini_file(testdir) -> Callable[..., Path]:
6768

6869
def makeini(
69-
encoding: Optional[str] = None,
70+
encoding: str | None = None,
7071
) -> Path:
7172
"""Create a pytest.ini file with the specified encoding."""
7273

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{39,310,311,312,313,314}-test
3+
py{310,311,312,313,314}-test
44
codestyle
55
requires =
66
setuptools >= 30.3.0

0 commit comments

Comments
 (0)