forked from Lainports/opnsense-ports
devel/py-dateutil: sync with upstream
Taken from: HardenedBSD
This commit is contained in:
parent
e2a646055b
commit
efea5caba6
3 changed files with 6 additions and 41 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= dateutil
|
||||
PORTVERSION= 2.8.0
|
||||
PORTVERSION= 2.8.1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
|
@ -17,7 +17,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
|||
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>=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}
|
||||
|
||||
|
|
@ -27,11 +26,10 @@ 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
|
||||
# -W fixes PytestUnknownMarkWarning: Unknown pytest.mark.no_cover
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${TEST_ENV} \
|
||||
${PYTHON_CMD} -m pytest -v -rs -o addopts= \
|
||||
-k 'not test_tzlocal_offset_equal[GMT-tzoff1]'
|
||||
-W ignore::pytest.PytestUnknownMarkWarning
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1558933982
|
||||
SHA256 (python-dateutil-2.8.0.tar.gz) = c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e
|
||||
SIZE (python-dateutil-2.8.0.tar.gz) = 327134
|
||||
TIMESTAMP = 1588386929
|
||||
SHA256 (python-dateutil-2.8.1.tar.gz) = 73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c
|
||||
SIZE (python-dateutil-2.8.1.tar.gz) = 331745
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
From 417f44124e34815e98aa7e736978f5763cdb19a7 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Ganssle <paul@ganssle.io>
|
||||
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 =
|
||||
Loading…
Add table
Reference in a new issue