Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ maintainers = [ { name = "Python Core Team" } ]
authors = [
{ name = "Larry Hastings", email = "larry@hastings.org" },
]
requires-python = ">=3.10"
requires-python = ">=3.11"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand Down
18 changes: 1 addition & 17 deletions src/blurb/_versions.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
from __future__ import annotations

import glob
import sys

if sys.version_info[:2] >= (3, 11):
from contextlib import chdir
else:
import os

class chdir:
def __init__(self, path: str, /) -> None:
self.path = path

def __enter__(self) -> None:
self.previous_cwd = os.getcwd()
os.chdir(self.path)

def __exit__(self, *args) -> None:
os.chdir(self.previous_cwd)
from contextlib import chdir


def glob_versions() -> list[str]:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import glob
import os
from contextlib import chdir

import pytest

from blurb._blurb_file import Blurbs
from blurb._versions import chdir


class TestParserPasses:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires =
tox>=4.32
env_list =
py{310-315}
py{311-315}

[testenv]
extras =
Expand Down
Loading