Index: head/devel/py-dateutil/Makefile =================================================================== --- head/devel/py-dateutil/Makefile +++ head/devel/py-dateutil/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= dateutil -PORTVERSION= 2.7.3 +PORTVERSION= 2.8.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,16 +16,22 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.5:devel/py-six@${PY_FLAVOR} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.3:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.2.0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=3.30:devel/py-hypothesis@${PY_FLAVOR} USES= python +USE_LOCALE= en_US.UTF-8 USE_PYTHON= autoplist distutils NO_ARCH= yes +# Test failure: test_tzlocal_offset_equal[GMT-tzoff1] (dateutil 2.8.0) +# https://github.com/dateutil/dateutil/issues/918 do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${TEST_ENV} \ + ${PYTHON_CMD} -m pytest -v -rs -o addopts= \ + -k 'not test_tzlocal_offset_equal[GMT-tzoff1]' .include Index: head/devel/py-dateutil/distinfo =================================================================== --- head/devel/py-dateutil/distinfo +++ head/devel/py-dateutil/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1532990877 -SHA256 (python-dateutil-2.7.3.tar.gz) = e27001de32f627c22380a688bcc43ce83504a7bc5da472209b4c70f02829f0b8 -SIZE (python-dateutil-2.7.3.tar.gz) = 302871 +TIMESTAMP = 1558933982 +SHA256 (python-dateutil-2.8.0.tar.gz) = c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e +SIZE (python-dateutil-2.8.0.tar.gz) = 327134 Index: head/devel/py-dateutil/files/patch-setup.cfg =================================================================== --- head/devel/py-dateutil/files/patch-setup.cfg +++ head/devel/py-dateutil/files/patch-setup.cfg @@ -0,0 +1,33 @@ +From 417f44124e34815e98aa7e736978f5763cdb19a7 Mon Sep 17 00:00:00 2001 +From: Paul Ganssle +Date: Fri, 17 May 2019 18:50:09 -0400 +Subject: [PATCH] Register pytest markers + +The latest version of pytest has started warning on unregistered +markers, which the test suite uses fairly extensively, causing the tests +to fail. This explicitly registers all the markers used in the test +suite. + +--- setup.cfg.orig 2019-02-05 14:11:22 UTC ++++ setup.cfg +@@ -14,6 +14,20 @@ filterwarnings = + error + error::DeprecationWarning + error:PendingDeprecationWarning ++markers = ++ gettz ++ import_star ++ isoparser ++ parserinfo ++ rrule ++ rruleset ++ rrulestr ++ smoke ++ tz_resolve_imaginary ++ tzfile ++ tzlocal ++ tzoffset ++ tzstr + + [egg_info] + tag_build =