From e1884e78691b3795d75429476e8f798ccc82d4da Mon Sep 17 00:00:00 2001 From: Mathieu Le Marec - Pasquet Date: Tue, 10 Oct 2023 08:41:27 +0200 Subject: [PATCH] Make pytz a strong requirement --- CHANGELOG.rst | 1 + README.rst | 8 ++++++++ requirements/base.txt | 1 + src/croniter/croniter.py | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 19d984b..0e4fe5d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ Changelog ------------------ - Add Python 3.12 support [rafsaf] +- Make major release instructions [kiorky] 1.4.1 (2023-06-15) diff --git a/README.rst b/README.rst index 04d095e..73a3c43 100644 --- a/README.rst +++ b/README.rst @@ -241,6 +241,14 @@ What they evaluate to depends on whether you supply hash_id: no hash_id correspo ============ ============ ================ +Upgrading +=========== + +To 2.0.0 +++++++++++ + +- Install or upgrade pytz by using version specified requirements/base.txt if you have it installed `<=2021.1`. + Develop this package ==================== diff --git a/requirements/base.txt b/requirements/base.txt index 14d6dd6..cc91362 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,2 +1,3 @@ python_dateutil +pytz>2021.1 -e . diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py index ef77ca7..9fe857f 100644 --- a/src/croniter/croniter.py +++ b/src/croniter/croniter.py @@ -17,6 +17,10 @@ import binascii import random +# as pytz is optional in thirdparty libs but we need it for good support under +# python2, just test that it's well installed +import pytz # noqa + try: from collections import OrderedDict except ImportError: