pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/py-dateutil py-dateutil: updated to 2.8.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/869cd304a946
branches:  trunk
changeset: 404153:869cd304a946
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Nov 06 20:49:22 2019 +0000

description:
py-dateutil: updated to 2.8.1

Version 2.8.1:

Data updates
- Updated tzdata version to 2019c.

Bugfixes
- Fixed a race condition in the ``tzoffset`` and ``tzstr`` "strong" caches on
  Python 2.7.
- Parsing errors will now raise ``ParserError``, a subclass of ``ValueError``,
  which has a nicer string representation.
- ``parser.parse`` will now raise ``TypeError`` when ``tzinfos`` is passed a
  type that cannot be interpreted as a time zone. Prior to this change, it
  would raise an ``UnboundLocalError`` instead.
- Changed error message raised when when passing a ``bytes`` object as the time
  zone name to gettz in Python 3.
- Changed compatibility logic to support a potential Python 4.0 release.
- Updated many modules to use ``tz.UTC`` in favor of ``tz.tzutc()`` internally,
  to avoid an unnecessary function call.
- Fixed issue where ``dateutil.tz`` was using a backported version of
  ``contextlib.nullcontext`` even in Python 3.7 due to a malformed import
  statement.

Tests
- Switched from using assertWarns to using pytest.warns in the test suite.
- Fix typo in setup.cfg causing PendingDeprecationWarning to not be explicitly
  specified as an error in the warnings filter.
- Fixed issue where ``test_tzlocal_offset_equal`` would fail in certain
  environments (such as FreeBSD) due to an invalid assumption about what time
  zone names are provided.
- Fixed a minor bug in ``test_isoparser`` related to ``bytes``/``str``
  handling.
- Explicitly listed all markers used in the pytest configuration.
- Extensive improvements to the parser test suite, including the adoption of
  ``pytest``-style tests and the addition of parametrization of several test
  cases.
- Added tests for tzinfos input types.
- Fixed failure of test suite when changing the TZ variable is forbidden.
- Pinned all test dependencies on Python 3.3.

Documentation changes
- Fixed many misspellings, typos and styling errors in the comments and
  documentation.

Misc
- Added Python 3.8 to the trove classifiers.
- Moved as many keys from ``setup.py`` to ``setup.cfg`` as possible.
- Reorganized ``parser`` methods by functionality.
- Switched ``release.py`` over to using ``pep517.build`` for creating releases,
  rather than direct invocations of ``setup.py``.
- Added a "build" environment into the tox configuration, to handle dependency
  management when making releases.

diffstat:

 time/py-dateutil/Makefile |   6 +++---
 time/py-dateutil/distinfo |  10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (36 lines):

diff -r 720d8879e993 -r 869cd304a946 time/py-dateutil/Makefile
--- a/time/py-dateutil/Makefile Wed Nov 06 20:43:36 2019 +0000
+++ b/time/py-dateutil/Makefile Wed Nov 06 20:49:22 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.26 2019/02/06 10:07:46 adam Exp $
+# $NetBSD: Makefile,v 1.27 2019/11/06 20:49:22 adam Exp $
 
-DISTNAME=      python-dateutil-2.8.0
+DISTNAME=      python-dateutil-2.8.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-//}
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-dateutil/}
@@ -17,7 +17,7 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 do-test:
-       cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
+       cd ${WRKSRC} && pytest-${PYVERSSUFFIX}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 720d8879e993 -r 869cd304a946 time/py-dateutil/distinfo
--- a/time/py-dateutil/distinfo Wed Nov 06 20:43:36 2019 +0000
+++ b/time/py-dateutil/distinfo Wed Nov 06 20:49:22 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.16 2019/02/06 10:07:46 adam Exp $
+$NetBSD: distinfo,v 1.17 2019/11/06 20:49:22 adam Exp $
 
-SHA1 (python-dateutil-2.8.0.tar.gz) = 140cbe261ba86ff30970bd8ca3326f543de91e4d
-RMD160 (python-dateutil-2.8.0.tar.gz) = 2fda28c33329be5ccee005ca6cce55bd9500f0df
-SHA512 (python-dateutil-2.8.0.tar.gz) = ec7da86203572582f883a4686acf8a732a2de4f396d809057eb51b2c60dbca5623a7fa90c2c0618c281a2282c60841739bd837731a51cc876f4ff369297f2f81
-Size (python-dateutil-2.8.0.tar.gz) = 327134 bytes
+SHA1 (python-dateutil-2.8.1.tar.gz) = bd26127e57f83a10f656b62c46524c15aeb844dd
+RMD160 (python-dateutil-2.8.1.tar.gz) = 8e14a1fac932b4062904a05c11da0d1ffb5a2bbb
+SHA512 (python-dateutil-2.8.1.tar.gz) = 337000216e0f8ce32d6363768444144183ab9268f69082f20858f2b3322b1c449e53b2f2b5dcb3645be22294659ce7838f74ace2fd7a7c4f2adc6cf806a9fa2c
+Size (python-dateutil-2.8.1.tar.gz) = 331745 bytes



Home | Main Index | Thread Index | Old Index