Skip to content

Commit d5190b2

Browse files
authored
Drop support for EOL Python 3.10 (#90)
2 parents 6d5199c + 17a5eb0 commit d5190b2

5 files changed

Lines changed: 5 additions & 22 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
17+
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
1818

1919
steps:
2020
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎pyproject.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ maintainers = [ { name = "Python Core Team" } ]
1313
authors = [
1414
{ name = "Larry Hastings", email = "larry@hastings.org" },
1515
]
16-
requires-python = ">=3.10"
16+
requires-python = ">=3.11"
1717
classifiers = [
1818
"Intended Audience :: Developers",
1919
"License :: OSI Approved :: BSD License",
2020
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",
2423
"Programming Language :: Python :: 3.13",

‎src/blurb/_versions.py‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
from __future__ import annotations
22

33
import glob
4-
import sys
5-
6-
if sys.version_info[:2] >= (3, 11):
7-
from contextlib import chdir
8-
else:
9-
import os
10-
11-
class chdir:
12-
def __init__(self, path: str, /) -> None:
13-
self.path = path
14-
15-
def __enter__(self) -> None:
16-
self.previous_cwd = os.getcwd()
17-
os.chdir(self.path)
18-
19-
def __exit__(self, *args) -> None:
20-
os.chdir(self.previous_cwd)
4+
from contextlib import chdir
215

226

237
def glob_versions() -> list[str]:

‎tests/test_parser.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import glob
22
import os
3+
from contextlib import chdir
34

45
import pytest
56

67
from blurb._blurb_file import Blurbs
7-
from blurb._versions import chdir
88

99

1010
class TestParserPasses:

‎tox.ini‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires =
33
tox>=4.32
44
env_list =
5-
py{310-315}
5+
py{311-315}
66

77
[testenv]
88
extras =

0 commit comments

Comments
 (0)