pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/time/py-tzlocal
Module Name: pkgsrc
Committed By: adam
Date: Mon Aug 12 19:58:13 UTC 2019
Modified Files:
pkgsrc/time/py-tzlocal: Makefile PLIST distinfo
Log Message:
py-tzlocal: updated to 2.0.0
2.0.0:
Major differences since 1.5.1
- When no time zone configuration can be find, tzlocal now return UTC.
This is a major difference from 1.x, where an exception would be raised.
This change is because Docker images often have no configuration at all,
and the unix utilities will then default to UTC, so we follow that.
- If tzlocal on Unix finds a timezone name in a /etc config file, then
tzlocal now verifies that the timezone it fouds has the same offset as
the local computer is configured with. If it doesn't, something is
configured incorrectly.
- Get timezone via Termux `getprop` wrapper on Android. It's not officially
supported because we can't test it, but at least we make an effort.
Minor differences and bug fixes
- Skip comment lines when parsing /etc/timezone.
- Don't load timezone from current directory.
- Now verifies that the config files actually contain something before
reading them.
- Got rid of a BytesWarning
- Now handles if config file paths exists, but are directories.
- Moved tests out from distributions
- Support wheels
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/time/py-tzlocal/Makefile \
pkgsrc/time/py-tzlocal/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/time/py-tzlocal/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/time/py-tzlocal/Makefile
diff -u pkgsrc/time/py-tzlocal/Makefile:1.4 pkgsrc/time/py-tzlocal/Makefile:1.5
--- pkgsrc/time/py-tzlocal/Makefile:1.4 Wed Dec 6 12:21:02 2017
+++ pkgsrc/time/py-tzlocal/Makefile Mon Aug 12 19:58:13 2019
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile,v 1.4 2017/12/06 12:21:02 adam Exp $
+# $NetBSD: Makefile,v 1.5 2019/08/12 19:58:13 adam Exp $
-DISTNAME= tzlocal-1.5.1
+DISTNAME= tzlocal-2.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= time python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tzlocal/}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= https://pypi.python.org/pypi/tzlocal
+HOMEPAGE= https://github.com/regebro/tzlocal
COMMENT= Python tzinfo object for the local timezone
LICENSE= mit
Index: pkgsrc/time/py-tzlocal/distinfo
diff -u pkgsrc/time/py-tzlocal/distinfo:1.4 pkgsrc/time/py-tzlocal/distinfo:1.5
--- pkgsrc/time/py-tzlocal/distinfo:1.4 Wed Dec 6 12:21:02 2017
+++ pkgsrc/time/py-tzlocal/distinfo Mon Aug 12 19:58:13 2019
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2017/12/06 12:21:02 adam Exp $
+$NetBSD: distinfo,v 1.5 2019/08/12 19:58:13 adam Exp $
-SHA1 (tzlocal-1.5.1.tar.gz) = 98dc51724f3201f66f4ec36f22b99bd03f3059bd
-RMD160 (tzlocal-1.5.1.tar.gz) = b94a22de3c11118197808f3ded2824c272290484
-SHA512 (tzlocal-1.5.1.tar.gz) = 9141e3941435fa16afe040f49b8225cdc3434e10003275fe5df9166cb9562764a51c83bc16b6d5be197feb45c913859a37393e13285f0e612510ce076a6451d9
-Size (tzlocal-1.5.1.tar.gz) = 16809 bytes
+SHA1 (tzlocal-2.0.0.tar.gz) = 4b8bbecdfbe748594862deed4f6a4399f604926a
+RMD160 (tzlocal-2.0.0.tar.gz) = 68f4c803a339ab89d365066a9fcb0f71ff9443c9
+SHA512 (tzlocal-2.0.0.tar.gz) = b72487f791df1dda7370ef5de58e524a451bf87a2ad5ce9d365591fb45af1e080499956d9b19410aeacdf3013ce09c84cd3ec243e15d3bbbee4cec32685298d9
+Size (tzlocal-2.0.0.tar.gz) = 22040 bytes
Index: pkgsrc/time/py-tzlocal/PLIST
diff -u pkgsrc/time/py-tzlocal/PLIST:1.3 pkgsrc/time/py-tzlocal/PLIST:1.4
--- pkgsrc/time/py-tzlocal/PLIST:1.3 Wed Dec 6 12:21:02 2017
+++ pkgsrc/time/py-tzlocal/PLIST Mon Aug 12 19:58:13 2019
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2017/12/06 12:21:02 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/08/12 19:58:13 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -8,20 +8,12 @@ ${PYSITELIB}/${EGG_INFODIR}/zip-safe
${PYSITELIB}/tzlocal/__init__.py
${PYSITELIB}/tzlocal/__init__.pyc
${PYSITELIB}/tzlocal/__init__.pyo
-${PYSITELIB}/tzlocal/test_data/Harare
-${PYSITELIB}/tzlocal/test_data/localtime/etc/localtime
-${PYSITELIB}/tzlocal/test_data/symlink_localtime/etc/localtime
-${PYSITELIB}/tzlocal/test_data/symlink_localtime/usr/share/zoneinfo/Africa/Harare
-${PYSITELIB}/tzlocal/test_data/timezone/etc/timezone
-${PYSITELIB}/tzlocal/test_data/timezone_setting/etc/conf.d/clock
-${PYSITELIB}/tzlocal/test_data/vardbzoneinfo/var/db/zoneinfo
-${PYSITELIB}/tzlocal/test_data/zone_setting/etc/sysconfig/clock
-${PYSITELIB}/tzlocal/tests.py
-${PYSITELIB}/tzlocal/tests.pyc
-${PYSITELIB}/tzlocal/tests.pyo
${PYSITELIB}/tzlocal/unix.py
${PYSITELIB}/tzlocal/unix.pyc
${PYSITELIB}/tzlocal/unix.pyo
+${PYSITELIB}/tzlocal/utils.py
+${PYSITELIB}/tzlocal/utils.pyc
+${PYSITELIB}/tzlocal/utils.pyo
${PYSITELIB}/tzlocal/win32.py
${PYSITELIB}/tzlocal/win32.pyc
${PYSITELIB}/tzlocal/win32.pyo
Home |
Main Index |
Thread Index |
Old Index