summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2018-03-13 11:07:20 +0000
committeradam <adam@pkgsrc.org>2018-03-13 11:07:20 +0000
commita19cf32fa28f434e38b6682de84f12461068919e (patch)
tree33a8d0493072a8cbfdf80dec2e0220235ec7fcaa /time
parentf0fa9ab8caa8543b5d651e2482d4f5dd52b28b44 (diff)
downloadpkgsrc-a19cf32fa28f434e38b6682de84f12461068919e.tar.gz
py-dateutil: updated to 2.7.0
Version 2.7.0 - Dropped support for Python 2.6 - Dropped support for Python 3.2 - Updated zoneinfo file to 2018c - Changed licensing scheme so all new contributions are dual licensed under Apache 2.0 and BSD. - Added __all__ variable to the root package - Added python_requires to setup.py so that pip will distribute the right version of dateutil. - Added the utils submodule, for miscellaneous utilities. - Added within_delta function to utils - Added today function to utils - Added default_tzinfo function to utils - Added dedicated ISO 8601 parsing function isoparse - Moved parser module into parser/_parser.py and officially deprecated the use of several private functions and classes from that module. - Tweaked parser error message to include rejected string format - Add support for parsing bytesarray - Started raising a warning when the parser finds a timezone string that it cannot construct a tzinfo instance for (rather than succeeding with no indication of an error). - Dropped the use of assert in the parser. - Fixed to assertion logic in parser to support dates like '2015-15-May' - Fixed IndexError in parser on dates with trailing colons - Fixed bug where hours were not validated, leading to improper parse. - Fixed problem parsing strings in %b-%Y-%d format. - Fixed problem parsing strings in the %d%B%y format. - Fixed problem parsing certain unambiguous strings when year <99 - Fixed issue with parsing an unambiguous string representation of an ambiguous datetime such that if possible the correct value for fold is set. - Fixed issue with improper rounding of fractional components. - Performance improvement to parser from removing certain min() calls. - Significantly refactored parser code - Implementated of __hash__ for relativedelta and weekday - Implemented __abs__ for relativedelta. - Fixed relativedelta.weeks property getter and setter to work for both negative and positive values. - Fixed issue where passing whole number floats to the months or years arguments of the relativedelta constructor would lead to errors during addition. - Added a pre-built tz.UTC object representing UTC - Added a cache to tz.gettz so that by default it will return the same object for identical inputs. This will change the semantics of certain operations between datetimes constructed with tzinfo=tz.gettz(...). - Changed the behavior of tz.tzutc to return a singleton - Changed the behavior of tz.tzoffset to return the same object when passed the same inputs, with a corresponding performance improvement - Changed the behavior of tz.tzstr to return the same object when passed the same inputs. - Added .instance alternate constructors for tz.tzoffset and tz.tzstr, to allow the construction of a new instance if desired. - Added the tz.gettz.nocache function to allow explicit retrieval of a new instance of the relevant tzinfo. - Expand definition of tz.tzlocal equality so that the local zone is allow equality with tzoffset and tzutc. - Deprecated the idiosyncratic tzstr format mentioned in several examples but evidently designed exclusively for dateutil, and very likely not used by any current users. - Added the tz.resolve_imaginary function, which generates a real date from an imaginary one, if necessary. - Fixed issue where the tz.tzstr constructor would erroneously succeed if passed an invalid value for tzstr. - Fixed issue with tz.gettz for TZ variables that start with a colon. - Added a lock to tz.tzical's cache. - Fixed an issue with fold support on certain Python 3 implementations that used the pre-3.6 pure Python implementation of datetime.replace, most notably pypy3 - Added support for VALUE=DATE-TIME for DTSTART in rrulestr. - Started enforcing that within VTIMEZONE, the VALUE parameter can only be omitted or DATE-TIME, per RFC 5545. - Added support for TZID parameter for DTSTART in rrulestr. - Added 'RRULE:' prefix to rrule strings generated by rrule.__str__, in compliance with the RFC. - Switched to setuptools_scm for version management, automatically calculating a version number from the git metadata. - Switched setup.py to use find_packages, and started testing against pip installed versions of dateutil in CI. Fixed issue with parser import - Switched test suite to using pytest - Switched CI over to use tox. - Added a test-only dependency on freezegun. - Reduced number of CI builds on Appveyor. - Made xfails strict by default, so that an xpass is a failure. - Added a documentation generation stage to tox and CI. - Added an explicit warning when running python setup.py explaining how to run the test suites with pytest. - Added requirements-dev.txt for test dependency management - Fixed code coverage metrics to account for Windows builds - Fixed code coverage metrics to NOT count xfails. - Style improvement to zoneinfo.tzfile that was confusing to static type checkers. - Several unused imports were removed - Switched isinstance(*, collections.Callable) to callable, which is available on all supported Python versions. - Added CONTRIBUTING.md - Added AUTHORS.md - Corrected setup.py metadata to reflect author vs. maintainer - Corrected README to reflect that tests are now run in pytest. - Updated all references to RFC 2445 (iCalendar) to point to RFC 5545. - Corrected parse documentation to reflect proper integer offset units, - Fixed dangling parenthesis in tzoffset documentation - Started including the license file in wheels. - Indendation fixes to parser docstring - Moved many examples from the "examples" documentation into their appropriate module documentation pages. - Fixed documentation so that the parser.isoparse documentation displays. - Refactored build and release sections and added setup instructions to CONTRIBUTING. - Cleaned up various dead links in the documentation.
Diffstat (limited to 'time')
-rw-r--r--time/py-dateutil/Makefile14
-rw-r--r--time/py-dateutil/PLIST20
-rw-r--r--time/py-dateutil/distinfo10
3 files changed, 32 insertions, 12 deletions
diff --git a/time/py-dateutil/Makefile b/time/py-dateutil/Makefile
index 92be4d36586..fd34ba542f2 100644
--- a/time/py-dateutil/Makefile
+++ b/time/py-dateutil/Makefile
@@ -1,16 +1,24 @@
-# $NetBSD: Makefile,v 1.19 2017/09/04 18:01:02 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2018/03/13 11:07:20 adam Exp $
-DISTNAME= python-dateutil-2.6.1
+DISTNAME= python-dateutil-2.7.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/python-//}
CATEGORIES= time python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-dateutil/}
MAINTAINER= pkgsrc-users@NetBSD.org
-#HOMEPAGE= https://dateutil.readhedocs.org/
+HOMEPAGE= https://github.com/dateutil/dateutil
COMMENT= Extensions to the standard datetime module
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm:../../devel/py-setuptools_scm
+# TEST_DEPENDS
+BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+# circular dependency
+#BUILD_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+
+do-test:
+ cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/time/py-dateutil/PLIST b/time/py-dateutil/PLIST
index fca6065c8a1..3bf28303b9a 100644
--- a/time/py-dateutil/PLIST
+++ b/time/py-dateutil/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2017/07/11 06:10:37 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2018/03/13 11:07:20 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -17,9 +17,15 @@ ${PYSITELIB}/dateutil/_version.pyo
${PYSITELIB}/dateutil/easter.py
${PYSITELIB}/dateutil/easter.pyc
${PYSITELIB}/dateutil/easter.pyo
-${PYSITELIB}/dateutil/parser.py
-${PYSITELIB}/dateutil/parser.pyc
-${PYSITELIB}/dateutil/parser.pyo
+${PYSITELIB}/dateutil/parser/__init__.py
+${PYSITELIB}/dateutil/parser/__init__.pyc
+${PYSITELIB}/dateutil/parser/__init__.pyo
+${PYSITELIB}/dateutil/parser/_parser.py
+${PYSITELIB}/dateutil/parser/_parser.pyc
+${PYSITELIB}/dateutil/parser/_parser.pyo
+${PYSITELIB}/dateutil/parser/isoparser.py
+${PYSITELIB}/dateutil/parser/isoparser.pyc
+${PYSITELIB}/dateutil/parser/isoparser.pyo
${PYSITELIB}/dateutil/relativedelta.py
${PYSITELIB}/dateutil/relativedelta.pyc
${PYSITELIB}/dateutil/relativedelta.pyo
@@ -32,6 +38,9 @@ ${PYSITELIB}/dateutil/tz/__init__.pyo
${PYSITELIB}/dateutil/tz/_common.py
${PYSITELIB}/dateutil/tz/_common.pyc
${PYSITELIB}/dateutil/tz/_common.pyo
+${PYSITELIB}/dateutil/tz/_factories.py
+${PYSITELIB}/dateutil/tz/_factories.pyc
+${PYSITELIB}/dateutil/tz/_factories.pyo
${PYSITELIB}/dateutil/tz/tz.py
${PYSITELIB}/dateutil/tz/tz.pyc
${PYSITELIB}/dateutil/tz/tz.pyo
@@ -41,6 +50,9 @@ ${PYSITELIB}/dateutil/tz/win.pyo
${PYSITELIB}/dateutil/tzwin.py
${PYSITELIB}/dateutil/tzwin.pyc
${PYSITELIB}/dateutil/tzwin.pyo
+${PYSITELIB}/dateutil/utils.py
+${PYSITELIB}/dateutil/utils.pyc
+${PYSITELIB}/dateutil/utils.pyo
${PYSITELIB}/dateutil/zoneinfo/__init__.py
${PYSITELIB}/dateutil/zoneinfo/__init__.pyc
${PYSITELIB}/dateutil/zoneinfo/__init__.pyo
diff --git a/time/py-dateutil/distinfo b/time/py-dateutil/distinfo
index 11a13e9feb3..a166b8e494e 100644
--- a/time/py-dateutil/distinfo
+++ b/time/py-dateutil/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.10 2017/07/11 06:10:37 adam Exp $
+$NetBSD: distinfo,v 1.11 2018/03/13 11:07:20 adam Exp $
-SHA1 (python-dateutil-2.6.1.tar.gz) = db2ace298dee7e47fd720ed03eb790885347bf4e
-RMD160 (python-dateutil-2.6.1.tar.gz) = bf7aee6d6ed1e0b2a6256e2033b6d4ce9c47c3b5
-SHA512 (python-dateutil-2.6.1.tar.gz) = f16dd29fc975629f594dd2683a525e2a86acb020bf8962558d19040b14ac6f19d4ab07a910d6bb55c9db3cc02b5472774a3a05ccc86cf624ca5e5144463646db
-Size (python-dateutil-2.6.1.tar.gz) = 241428 bytes
+SHA1 (python-dateutil-2.7.0.tar.gz) = 4560c05e34cc94be23e007fdc443dc7ac3cd3c70
+RMD160 (python-dateutil-2.7.0.tar.gz) = a3931a0f06478fb888624fb7be9231fdeb64688b
+SHA512 (python-dateutil-2.7.0.tar.gz) = dc6894fda551cc5ae52e12fd49605bc2a31e6293cfa09f9d6e46fd8963ae98215521c97d74fc10c1453d1aca2aa18cd116e4af9ad5ab1f44de7b608754d8b52d
+Size (python-dateutil-2.7.0.tar.gz) = 293530 bytes