From 337c7e4e730886390e9554ec714a00b2553c43c4 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 23 Aug 2023 15:33:46 +0200 Subject: [PATCH 1/2] arbitrary-dateparser: Explicitly use timezone "Europe/Berlin" --- aika/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aika/core.py b/aika/core.py index 754f694..c22fcda 100644 --- a/aika/core.py +++ b/aika/core.py @@ -12,7 +12,8 @@ logger = logging.getLogger(__name__) -arbitrary_parser = DateParser() +# FIXME: Do not set timezone explicitly. +arbitrary_parser = DateParser(tz="Europe/Berlin") before_midnight = dt.time(hour=23, minute=59, second=59, microsecond=999999) midnights = [dt.time(hour=0, minute=0, second=0), before_midnight] From 7f8bd149712810b516fcc51220cad978ad13f540 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 23 Aug 2023 15:42:06 +0200 Subject: [PATCH 2/2] CI: Remove testing on Python 3.12 The Pendulum library does not install on Python 3.12: ModuleNotFoundError: No module named 'distutils' --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af0d95c..ab6f827 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"] + python-version: ["3.8", "3.9", "3.10", "3.11"] env: OS: ${{ matrix.os }}