Skip to content

Commit

Permalink
chore: Support Python 3.13; drop Python 3.8 (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein authored Jan 1, 2025
1 parent d41758e commit 25b81f1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
os: [ubuntu-latest]
formatter: ["black", "isort"]
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.13"]
os: [ubuntu-latest]
linter-env: ["linting", "type_check", "spell_check"]
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"beautifulsoup4>=4.11.1",
Expand Down Expand Up @@ -100,7 +101,7 @@ sources = ["src"]

[tool.black]
line-length = 120
target_version = ["py38", "py39", "py310", "py311", "py312"] # <-- we need this as lons as we support python 3.8
target_version = ["py39", "py310", "py311", "py312", "py313"] # <-- we need this as lons as we support python 3.8

[tool.isort]
line_length = 120
Expand Down
8 changes: 5 additions & 3 deletions unittests/test_edienergyscraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,11 @@ async def test_mirroring(self, mocker, tmpdir_factory, datafiles, caplog):
"edi_energy_scraper.EdiEnergyScraper.get_epoch_file_map",
side_effect=TestEdiEnergyScraper._get_efm_mocker,
)
with open(datafiles / "example_ahb.pdf", "rb") as pdf_file_current, open(
datafiles / "Aenderungsantrag_EBD.xlsx", "rb"
) as file_future, open(datafiles / "example_ahb.pdf", "rb") as file_past:
with (
open(datafiles / "example_ahb.pdf", "rb") as pdf_file_current,
open(datafiles / "Aenderungsantrag_EBD.xlsx", "rb") as file_future,
open(datafiles / "example_ahb.pdf", "rb") as file_past,
):
with aioresponses() as mock:
mock.get(
"https://www.edi-energy.de/a_future_ahb.xlsx",
Expand Down

0 comments on commit 25b81f1

Please sign in to comment.