Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2018 18:19:16 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484716 - in head/devel/py-dateutils: . files
Message-ID:  <201811111819.wABIJGYb030881@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Nov 11 18:19:16 2018
New Revision: 484716
URL: https://svnweb.freebsd.org/changeset/ports/484716

Log:
  Relax USES=python
  
  - Take maintainership

Added:
  head/devel/py-dateutils/files/
  head/devel/py-dateutils/files/patch-dateutils-dateadd.py   (contents, props changed)
  head/devel/py-dateutils/files/patch-dateutils-datediff.py   (contents, props changed)
Modified:
  head/devel/py-dateutils/Makefile

Modified: head/devel/py-dateutils/Makefile
==============================================================================
--- head/devel/py-dateutils/Makefile	Sun Nov 11 18:19:07 2018	(r484715)
+++ head/devel/py-dateutils/Makefile	Sun Nov 11 18:19:16 2018	(r484716)
@@ -7,7 +7,7 @@ CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Various utilities for working with date and datetime objects
 
 LICENSE=	BSD3CLAUSE
@@ -16,8 +16,8 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argparse>0:devel/p
 		${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
 
-USES=		python:2.7
-USE_PYTHON=	autoplist distutils
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 

Added: head/devel/py-dateutils/files/patch-dateutils-dateadd.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dateutils/files/patch-dateutils-dateadd.py	Sun Nov 11 18:19:16 2018	(r484716)
@@ -0,0 +1,8 @@
+--- dateutils/dateadd.py.orig	2013-05-02 02:45:52 UTC
++++ dateutils/dateadd.py
+@@ -53,4 +53,4 @@ def main():
+         if any(bool(v) for v in kwargs.values()):
+             dates = [increment(dt, **kwargs) for dt in dates]
+     for dt in dates:
+-        print dt.strftime(args.format)
++        print(dt.strftime(args.format))

Added: head/devel/py-dateutils/files/patch-dateutils-datediff.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dateutils/files/patch-dateutils-datediff.py	Sun Nov 11 18:19:16 2018	(r484716)
@@ -0,0 +1,8 @@
+--- dateutils/datediff.py.orig	2013-05-02 02:45:52 UTC
++++ dateutils/datediff.py
+@@ -37,4 +37,4 @@ def main():
+         if args.holiday_file:
+             holidays.extend(parse(l) for l in open(args.holiday_file))
+         kwargs['holidays'] = holidays
+-    print __import__(args.unit)(end_dt, start_dt, **kwargs)
++    print(__import__(args.unit)(end_dt, start_dt, **kwargs))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811111819.wABIJGYb030881>