Skip to content

Commit 78333f0

Browse files
authored
Remove support for Python 3.9 (EOL in October 2025) (#111)
1 parent e66f180 commit 78333f0

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
ci:
1616
uses: community-of-python/community-workflow/.github/workflows/preset.yml@main
1717
with:
18-
python-version: '["3.9","3.10","3.11","3.12","3.13"]'
18+
python-version: '["3.10","3.11","3.12","3.13"]'
1919
secrets: inherit

microbootstrap/instruments/health_checks_instrument.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
from __future__ import annotations
2-
import typing
32

43
import typing_extensions
54

65
from microbootstrap.instruments.base import BaseInstrumentConfig, Instrument
76

87

98
class HealthCheckTypedDict(typing_extensions.TypedDict, total=False):
10-
service_version: typing.Optional[str] # noqa: UP045 (Litestar fails to build OpenAPI schema on Python 3.9)
11-
service_name: typing.Optional[str] # noqa: UP045 (Litestar fails to build OpenAPI schema on Python 3.9)
9+
service_version: str | None
10+
service_name: str | None
1211
health_status: bool
1312

1413

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "microbootstrap"
33
description = "Package for bootstrapping new micro-services"
44
readme = "README.md"
5-
requires-python = ">=3.9,<4"
5+
requires-python = ">=3.10,<4"
66
keywords = [
77
"python",
88
"microservice",
@@ -23,7 +23,6 @@ classifiers = [
2323
"Programming Language :: Python",
2424
"Programming Language :: Python :: 3",
2525
"Programming Language :: Python :: 3 :: Only",
26-
"Programming Language :: Python :: 3.9",
2726
"Programming Language :: Python :: 3.10",
2827
"Programming Language :: Python :: 3.11",
2928
"Programming Language :: Python :: 3.12",
@@ -101,13 +100,13 @@ source = "vcs"
101100
[tool.mypy]
102101
plugins = ["pydantic.mypy"]
103102
files = ["microbootstrap", "tests"]
104-
python_version = "3.9"
103+
python_version = "3.10"
105104
strict = true
106105
pretty = true
107106
show_error_codes = true
108107

109108
[tool.ruff]
110-
target-version = "py39"
109+
target-version = "py310"
111110
line-length = 120
112111

113112
[tool.ruff.format]

0 commit comments

Comments
 (0)