From owner-svn-ports-all@freebsd.org Fri Sep 21 06:15:15 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 552D21090352; Fri, 21 Sep 2018 06:15:15 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EDE09707AF; Fri, 21 Sep 2018 06:15:14 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E05B4F41; Fri, 21 Sep 2018 06:15:14 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8L6FEPu031610; Fri, 21 Sep 2018 06:15:14 GMT (envelope-from matthew@FreeBSD.org) Received: (from matthew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8L6FE1c031607; Fri, 21 Sep 2018 06:15:14 GMT (envelope-from matthew@FreeBSD.org) Message-Id: <201809210615.w8L6FE1c031607@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: matthew set sender to matthew@FreeBSD.org using -f From: Matthew Seaman Date: Fri, 21 Sep 2018 06:15:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r480227 - in head/devel: . py-jinja2-time X-SVN-Group: ports-head X-SVN-Commit-Author: matthew X-SVN-Commit-Paths: in head/devel: . py-jinja2-time X-SVN-Commit-Revision: 480227 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2018 06:15:15 -0000 Author: matthew Date: Fri Sep 21 06:15:13 2018 New Revision: 480227 URL: https://svnweb.freebsd.org/changeset/ports/480227 Log: Add py-jinja2-time 0.2.0, jinja2 Extension for Dates and Times. Added: head/devel/py-jinja2-time/ head/devel/py-jinja2-time/Makefile (contents, props changed) head/devel/py-jinja2-time/distinfo (contents, props changed) head/devel/py-jinja2-time/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Sep 21 05:32:26 2018 (r480226) +++ head/devel/Makefile Fri Sep 21 06:15:13 2018 (r480227) @@ -4655,6 +4655,7 @@ SUBDIR += py-jellyfish SUBDIR += py-jenkins-job-builder SUBDIR += py-jep + SUBDIR += py-jinja2-time SUBDIR += py-jira SUBDIR += py-jmespath SUBDIR += py-joblib Added: head/devel/py-jinja2-time/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-jinja2-time/Makefile Fri Sep 21 06:15:13 2018 (r480227) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= jinja2-time +PORTVERSION= 0.2.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= matthew@FreeBSD.org +COMMENT= Jinja2 Extension for Dates and Times + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flake8>0:devel/py-flake8@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}arrow>0:devel/py-arrow@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${LOCALBASE}/bin/tox-${PYTHON_VER} + +.include Added: head/devel/py-jinja2-time/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-jinja2-time/distinfo Fri Sep 21 06:15:13 2018 (r480227) @@ -0,0 +1,3 @@ +TIMESTAMP = 1537509254 +SHA256 (jinja2-time-0.2.0.tar.gz) = d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40 +SIZE (jinja2-time-0.2.0.tar.gz) = 5701 Added: head/devel/py-jinja2-time/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-jinja2-time/pkg-descr Fri Sep 21 06:15:13 2018 (r480227) @@ -0,0 +1,13 @@ +Jinja2 Extension for Dates and Times + +The extension comes with a 'now' tag that provides convenient access to +the arrow.now() API from your templates. You can control the output +by specifying a format that will be passed to Python's strftime(). + +TimeExtension extends the environment with a 'datetime_format' +attribute. It is used as a fallback if you omit the format for 'now'. + +jinja2-time implements a convenient interface to modify 'now' by a +relative time offset. + +WWW: https://pypi.org/project/jinja2-time/