Skip to contentSkip to conversation

package/python-tzlocal: bump to 5.3.1

PATCH In review Marcus Hoffmann via buildroot 2 participants 2 messages Apr 14, 2025 – Apr 15, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/python-tzlocal: bump to 5.3.1

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

---
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(-)
package/python-tzlocal/python-tzlocal.hash +2 -2
index dce19103a5..838e6ded21 100644
@@ -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
package/python-tzlocal/python-tzlocal.mk +2 -2
index c616974f64..2c1e5ff87a 100644
@@ -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
support/testing/tests/package/sample_python_tzlocal.py +1 -1
index 9aeb431c64..a02818bf9e 100644
@@ -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')
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Marcus Hoffmann via buildroot

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

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot