Skip to content

Commit 41632ca

Browse files
Support lower Python versions >=3.9 (#720)
Co-authored-by: konstantin <konstantin.klein@hochfrequenz.de>
1 parent 61727bf commit 41632ca

6 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/packaging_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ${{ matrix.os }}
77
strategy:
88
matrix:
9-
python-version: ["3.11"]
9+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1010
os: [ubuntu-latest]
1111
steps:
1212
- uses: actions/checkout@v4

.github/workflows/python-publish-scheduled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
python-version: ["3.11"]
16+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1717
os: [ubuntu-latest]
1818
steps:
1919
- uses: actions/checkout@v4

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ${{ matrix.os }}
77
strategy:
88
matrix:
9-
python-version: ["3.10", "3.11", "3.12"]
9+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1010
os: [ubuntu-latest]
1111
steps:
1212
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66
name = "bo4e"
77
description = "Python Library that implements the BO4E Standard."
88
license = { text = "MIT" }
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.9"
1010
authors = [
1111
{ name = "Kevin Krechan", email = "kevin.krechan@hochfrequenz.de" },
1212
{ name = "Leon Haffmans", email = "leon.haffmans@hochfrequenz.de" },
@@ -22,6 +22,7 @@ classifiers = [
2222
"Operating System :: OS Independent",
2323
"Programming Language :: Python",
2424
"Programming Language :: Python :: 3 :: Only",
25+
"Programming Language :: Python :: 3.9",
2526
"Programming Language :: Python :: 3.10",
2627
"Programming Language :: Python :: 3.11",
2728
"Programming Language :: Python :: 3.12",

tests/serialization_helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
A module that simplifies assertions for json serialization
33
"""
44

5+
from __future__ import annotations
6+
57
from typing import Any, Dict, Optional, TypeVar
68

79
from dictdiffer import diff # type:ignore[import-not-found]

tests/test_zusatz_attribut.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import pytest
24

35
from bo4e import Anrede, Organisationstyp, Titel

0 commit comments

Comments
 (0)