Skip to content

Commit b69f19b

Browse files
authored
Merge pull request #179 from mj0nez/run-ci-on-python-3.13
Add Python3.13 and remove 3.8 support
2 parents 512b312 + 097c952 commit b69f19b

File tree

10 files changed

+20
-27
lines changed

10 files changed

+20
-27
lines changed

.dockerignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/black.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ["3.12"]
13+
python-version: ["3.13"]
1414
os: [ubuntu-latest]
1515
tool: ["black", "isort"]
1616
steps:
@@ -19,6 +19,7 @@ jobs:
1919
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
22+
allow-prereleases: true
2223
- name: Install dependencies
2324
run: |
2425
python -m pip install --upgrade pip

.github/workflows/linters.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
python-version: ["3.12"]
14+
python-version: ["3.13"]
1515
os: [ubuntu-latest]
1616
linter-env: ["linting", "type_check", "spell_check"]
1717
steps:
@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
allow-prereleases: true
2324
- name: Install Dependencies
2425
run: |
2526
python -m pip install --upgrade pip

.github/workflows/packaging_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1414
os: [ubuntu-latest]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
1818
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
21+
allow-prereleases: true
2122
- name: Install dependencies
2223
run: |
2324
python -m pip install --upgrade pip

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818
strategy:
1919
matrix:
20-
python-version: [ "3.12" ]
20+
python-version: [ "3.13" ]
2121
os: [ ubuntu-latest ]
2222
steps:
2323
- uses: actions/checkout@v4
@@ -38,7 +38,7 @@ jobs:
3838
runs-on: ${{ matrix.os }}
3939
strategy:
4040
matrix:
41-
python-version: [ "3.12" ]
41+
python-version: [ "3.13" ]
4242
os: [ ubuntu-latest ]
4343
# Specifying a GitHub environment, # Specifying a GitHub environment, which is strongly recommended by PyPI: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
4444
# you have to create an environment in your repository settings and add the environment name here
@@ -53,6 +53,7 @@ jobs:
5353
uses: actions/setup-python@v5
5454
with:
5555
python-version: ${{ matrix.python-version }}
56+
allow-prereleases: true
5657
- name: Install dependencies
5758
run: |
5859
python -m pip install --upgrade pip

.github/workflows/unittests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
12+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1313
os: [ ubuntu-latest ]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
20+
allow-prereleases: true
2021
- name: Install Dependencies
2122
run: |
2223
python -m pip install --upgrade pip

Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 79
3-
target-version = ['py37', 'py38', 'py39', 'py310', 'py311', 'py312']
3+
target-version = ['py37', 'py38', 'py39', 'py310', 'py311', 'py312', 'py313']
44
exclude = '''
55
/(
66
\.eggs
@@ -29,7 +29,7 @@ build-backend = "hatchling.build"
2929
name = "bdew_datetimes"
3030
description = "Generate and work with holidays of the BDEW-Calendar for power and gas in Germany"
3131
license = { text = "MIT" }
32-
requires-python = ">=3.8"
32+
requires-python = ">=3.9"
3333
authors = [
3434
{ name = "Marcel Johannesmann", email = "[email protected]" },
3535
{ name = "Konstantin Klein" },
@@ -43,22 +43,20 @@ classifiers = [
4343
"Operating System :: OS Independent",
4444
"Programming Language :: Python",
4545
"Programming Language :: Python :: 3 :: Only",
46-
"Programming Language :: Python :: 3.8",
4746
"Programming Language :: Python :: 3.9",
4847
"Programming Language :: Python :: 3.10",
4948
"Programming Language :: Python :: 3.11",
5049
"Programming Language :: Python :: 3.12",
50+
"Programming Language :: Python :: 3.13",
5151
]
5252
dependencies = [
53-
"holidays>=0.16,<0.28;python_version<'3.8'",
5453
"holidays>=0.16;python_version>='3.8'",
5554
"pytz>=2022.7.1",
5655
"python-dateutil",
5756
]
5857
dynamic = ["readme", "version"]
5958

6059
[project.optional-dependencies]
61-
coverage = []
6260
formatting = [
6361
"black==24.10.0",
6462
"isort==5.13.2"

requirements.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.12
2+
# This file is autogenerated by pip-compile with Python 3.13
33
# by the following command:
44
#
5-
# pip-compile --extra=test_packaging pyproject.toml
5+
# pip-compile pyproject.toml
66
#
7-
holidays==0.58
8-
# via -r requirements.in
7+
holidays==0.58 ; python_version >= "3.8"
8+
# via bdew_datetimes (pyproject.toml)
99
python-dateutil==2.9.0.post0
1010
# via
11-
# -r requirements.in
11+
# bdew_datetimes (pyproject.toml)
1212
# holidays
1313
pytz==2024.2
14-
# via -r requirements.in
14+
# via bdew_datetimes (pyproject.toml)
1515
six==1.16.0
1616
# via python-dateutil

0 commit comments

Comments
 (0)