[Buildroot] [PATCH v2 1/1] package/python-tzlocal: bump to 5.3.1
Marcus Hoffmann
buildroot at bubu1.eu
Mon Apr 14 11:03:40 UTC 2025
Switch the test assert to use 'Europe/Berlin' instead of
'posix/Europe/Berlin'. The tz-name is an internal implementation detail
anyway and the lookup changed to prefer the stated name in /etc/timezone
again, if it matches the configured timezone via /usr/share/zoneinfo.
Ref: https://github.com/regebro/tzlocal/commit/4ffac9232bc854a0fa25df9f275a4267fb232850
Signed-off-by: Marcus Hoffmann <buildroot at bubu1.eu>
---
v1->v2:
- fix runtime test
---
package/python-tzlocal/python-tzlocal.hash | 4 ++--
package/python-tzlocal/python-tzlocal.mk | 4 ++--
support/testing/tests/package/sample_python_tzlocal.py | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/package/python-tzlocal/python-tzlocal.hash b/package/python-tzlocal/python-tzlocal.hash
index dce19103a5..838e6ded21 100644
--- a/package/python-tzlocal/python-tzlocal.hash
+++ b/package/python-tzlocal/python-tzlocal.hash
@@ -1,5 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/tzlocal/json
-md5 9d8d4c12b047d5d45e6eb72bb95fd90e tzlocal-5.3.tar.gz
-sha256 2fafbfc07e9d8b49ade18f898d6bcd37ae88ce3ad6486842a2e4f03af68323d2 tzlocal-5.3.tar.gz
+md5 f8eb4bf0eb262ba422741d032d6cfedf tzlocal-5.3.1.tar.gz
+sha256 cceffc7edecefea1f595541dbd6e990cb1ea3d19bf01b2809f362a03dd7921fd tzlocal-5.3.1.tar.gz
# Locally computed sha256 checksums
sha256 d99ab209aeb16aad2c25c90ffd83c1a981e290ffff76a420a2ab03e03f041b8c LICENSE.txt
diff --git a/package/python-tzlocal/python-tzlocal.mk b/package/python-tzlocal/python-tzlocal.mk
index c616974f64..2c1e5ff87a 100644
--- a/package/python-tzlocal/python-tzlocal.mk
+++ b/package/python-tzlocal/python-tzlocal.mk
@@ -4,9 +4,9 @@
#
################################################################################
-PYTHON_TZLOCAL_VERSION = 5.3
+PYTHON_TZLOCAL_VERSION = 5.3.1
PYTHON_TZLOCAL_SOURCE = tzlocal-$(PYTHON_TZLOCAL_VERSION).tar.gz
-PYTHON_TZLOCAL_SITE = https://files.pythonhosted.org/packages/33/cc/11360404b20a6340b9b4ed39a3338c4af47bc63f87f6cea94dbcbde07029
+PYTHON_TZLOCAL_SITE = https://files.pythonhosted.org/packages/8b/2e/c14812d3d4d9cd1773c6be938f89e5735a1f11a9f184ac3639b93cef35d5
PYTHON_TZLOCAL_SETUP_TYPE = setuptools
PYTHON_TZLOCAL_LICENSE = MIT
PYTHON_TZLOCAL_LICENSE_FILES = LICENSE.txt
diff --git a/support/testing/tests/package/sample_python_tzlocal.py b/support/testing/tests/package/sample_python_tzlocal.py
index 9aeb431c64..a02818bf9e 100644
--- a/support/testing/tests/package/sample_python_tzlocal.py
+++ b/support/testing/tests/package/sample_python_tzlocal.py
@@ -2,4 +2,4 @@ from tzlocal import get_localzone
from zoneinfo import ZoneInfo
tz = get_localzone()
-assert tz == ZoneInfo(key='posix/Europe/Berlin')
+assert tz == ZoneInfo(key='Europe/Berlin')
--
2.43.0
More information about the buildroot
mailing list