Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 06:15:14 +0000 (UTC)
From:      Matthew Seaman <matthew@FreeBSD.org>
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
Message-ID:  <201809210615.w8L6FE1c031607@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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/



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