Unverified Commit c9ed1336 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Bump minimum Python version to 3.12

… and make PEP 695 changes.
parent f4aef234
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -34,20 +34,20 @@ include:
    reports:
      junit: results.$PY_VERSION/junit.xml

Unit Tests (Py 3.10):
Unit Tests (Py 3.12):
  extends: [.python, .unittest]
  variables:
    PY_VERSION: '3.10'
    PY_VERSION: '3.12'

Unit Tests (Py 3.11):
Unit Tests (Py 3.13):
  extends: [.python, .unittest]
  variables:
    PY_VERSION: '3.11'
    PY_VERSION: '3.13'

Unit Tests (Py 3.12):
Unit Tests (Py 3.14):
  extends: [.python, .unittest]
  variables:
    PY_VERSION: '3.12'
    PY_VERSION: '3.14'


Publish Unit Tests:
@@ -55,9 +55,9 @@ Publish Unit Tests:
  extends: [.python]
  when: always
  needs: &unittests
  - Unit Tests (Py 3.10)
  - Unit Tests (Py 3.11)
  - Unit Tests (Py 3.12)
  - Unit Tests (Py 3.13)
  - Unit Tests (Py 3.14)
  script:
  - pip install --upgrade junit2html
  - mkdir -p unittest
+1 −1
Original line number Diff line number Diff line
minimum_pre_commit_version: 3.2.0
default_install_hook_types: [pre-commit, pre-push, commit-msg]
default_language_version: {python: "3.10"}
default_language_version: {python: "3.12"}
default_stages: [pre-commit]
repos:

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ classifiers = [
	"Operating System :: POSIX",
]

requires-python = "~=3.10"
requires-python = "~=3.12"
dependencies = [
	"anyio ~=4.1",
]
+2 −2
Original line number Diff line number Diff line
#  Copyright 2019-2021, 2024  Dom Sekotill <dom.sekotill@kodo.org.uk>
#  Copyright 2019-2021, 2024, 2026  Dom Sekotill <dom.sekotill@kodo.org.uk>
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
Anyio helpers for unit tests
"""

from typing import Awaitable
from collections.abc import Awaitable
from unittest import mock

import anyio
+2 −2
Original line number Diff line number Diff line
#  Copyright 2021  Dom Sekotill <dom.sekotill@kodo.org.uk>
#  Copyright 2021, 2026  Dom Sekotill <dom.sekotill@kodo.org.uk>
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
@@ -17,9 +17,9 @@ Utilities for integration tests
"""

import tempfile
from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager
from pathlib import Path
from typing import AsyncGenerator

import anyio

Loading