pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/py-tzlocal py-tzlocal: updated to 2.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/db6bd7d5fb8e
branches:  trunk
changeset: 337797:db6bd7d5fb8e
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Aug 12 19:58:13 2019 +0000

description:
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

diffstat:

 time/py-tzlocal/Makefile |   6 +++---
 time/py-tzlocal/PLIST    |  16 ++++------------
 time/py-tzlocal/distinfo |  10 +++++-----
 3 files changed, 12 insertions(+), 20 deletions(-)

diffs (67 lines):

diff -r f6ee74fd6f79 -r db6bd7d5fb8e time/py-tzlocal/Makefile
--- a/time/py-tzlocal/Makefile  Mon Aug 12 14:07:21 2019 +0000
+++ b/time/py-tzlocal/Makefile  Mon Aug 12 19:58:13 2019 +0000
@@ -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
 
diff -r f6ee74fd6f79 -r db6bd7d5fb8e time/py-tzlocal/PLIST
--- a/time/py-tzlocal/PLIST     Mon Aug 12 14:07:21 2019 +0000
+++ b/time/py-tzlocal/PLIST     Mon Aug 12 19:58:13 2019 +0000
@@ -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}/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
diff -r f6ee74fd6f79 -r db6bd7d5fb8e time/py-tzlocal/distinfo
--- a/time/py-tzlocal/distinfo  Mon Aug 12 14:07:21 2019 +0000
+++ b/time/py-tzlocal/distinfo  Mon Aug 12 19:58:13 2019 +0000
@@ -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



Home | Main Index | Thread Index | Old Index