From 0492d258ced2b113167157fa0e314864d2b20893 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 8 Nov 2021 12:42:34 +0200 Subject: python3-tzlocal: Upgrade 4.0.1 -> 4.1 Upgrade to release 4.1: - It turns out a lot of Linux distributions make the links between zoneinfo aliases backwards, so instead of linking GB to Europe/London it actually links the other way. When /etc/localtime then links to Europe/London, and you also have a config file saying Europe/London, the code that checks if /etc/localtime is a symlink ends up at GB instead of Europe/London and we get an error, as it thinks GB and Europe/London are different zones. So now we check the symlink of all timezones in the uniqueness test. We still return the name in the config file, though, so you would only get GB or Zulu returned as the time zone instead of Europe/London or UTC if your only configuration is the /etc/localtime symlink, as that's checked last, and tzlocal will return the first configuration found. - The above change also means that GMT and UTC are no longer seen as synonyms, as zoneinfo does not see them as synonyms. This might be controversial, but you just have to live with it. Pick one and stay with it. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-tzlocal_4.0.1.bb | 8 -------- meta-python/recipes-devtools/python/python3-tzlocal_4.1.bb | 12 ++++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-tzlocal_4.0.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-tzlocal_4.1.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-tzlocal_4.0.1.bb b/meta-python/recipes-devtools/python/python3-tzlocal_4.0.1.bb deleted file mode 100644 index f8339bb2e8..0000000000 --- a/meta-python/recipes-devtools/python/python3-tzlocal_4.0.1.bb +++ /dev/null @@ -1,8 +0,0 @@ -SUMMARY = "Library to return tzinfo with the local timezone information" -HOMEPAGE = "https://pypi.org/project/tzlocal/" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=57e0bd61643d81d05683cdce65b11d10" - -SRC_URI[sha256sum] = "8560aabba61b5d2a5e1697bb781f682e6eaa3ce386cee85a09a458cc0003f836" - -inherit pypi setuptools3 diff --git a/meta-python/recipes-devtools/python/python3-tzlocal_4.1.bb b/meta-python/recipes-devtools/python/python3-tzlocal_4.1.bb new file mode 100644 index 0000000000..29a69f8b8f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-tzlocal_4.1.bb @@ -0,0 +1,12 @@ +SUMMARY = "Library to return tzinfo with the local timezone information" +HOMEPAGE = "https://pypi.org/project/tzlocal/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=57e0bd61643d81d05683cdce65b11d10" + +SRC_URI[sha256sum] = "0f28015ac68a5c067210400a9197fc5d36ba9bc3f8eaf1da3cbd59acdfed9e09" + +inherit pypi setuptools3 + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-pytz-deprecation-shim \ +" -- cgit v1.2.3-54-g00ecf