git: 4de68f18b8bc - main - devel/py-cookiecutter: update to 2.2.0

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Sat, 08 Jul 2023 06:29:51 UTC
The branch main has been updated by matthew:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4de68f18b8bc43534a30b4a1a2cd35457b3a7476

commit 4de68f18b8bc43534a30b4a1a2cd35457b3a7476
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2023-07-08 06:27:34 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2023-07-08 06:29:46 +0000

    devel/py-cookiecutter: update to 2.2.0
    
    Changes:        https://github.com/cookiecutter/cookiecutter/blob/2.2.0/HISTORY.md
    Reported by:    portscout, repology
---
 devel/py-cookiecutter/Makefile                         | 6 +++---
 devel/py-cookiecutter/distinfo                         | 6 +++---
 devel/py-cookiecutter/files/patch-tests_test__hooks.py | 8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/devel/py-cookiecutter/Makefile b/devel/py-cookiecutter/Makefile
index fb578f82c8fa..d15f642b5a10 100644
--- a/devel/py-cookiecutter/Makefile
+++ b/devel/py-cookiecutter/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cookiecutter
-PORTVERSION=	2.1.1
+PORTVERSION=	2.2.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,12 +13,12 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}binaryornot>=0.4.4:devel/py-binaryornot@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}click>=7.0<9.0.0:devel/py-click@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}jinja2-time>=0.2.0:devel/py-jinja2-time@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Jinja2>=2.7:devel/py-Jinja2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}poyo>=0:devel/py-poyo@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}python-slugify>=4.0.0:textproc/py-python-slugify@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.23.0:www/py-requests@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}yaml>=5.3.1:devel/py-yaml@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}yaml>=5.3.1:devel/py-yaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}arrow>=0:devel/py-arrow@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \
diff --git a/devel/py-cookiecutter/distinfo b/devel/py-cookiecutter/distinfo
index c924d566da28..37d9f4bf5b64 100644
--- a/devel/py-cookiecutter/distinfo
+++ b/devel/py-cookiecutter/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1664107091
-SHA256 (cookiecutter-2.1.1.tar.gz) = f3982be8d9c53dac1261864013fdec7f83afd2e42ede6f6dd069c5e149c540d5
-SIZE (cookiecutter-2.1.1.tar.gz) = 146973
+TIMESTAMP = 1688765904
+SHA256 (cookiecutter-2.2.0.tar.gz) = b3437f49d04d359a200b03b63fb9e51be9eb0e751372c318a712a868d72c4f82
+SIZE (cookiecutter-2.2.0.tar.gz) = 155852
diff --git a/devel/py-cookiecutter/files/patch-tests_test__hooks.py b/devel/py-cookiecutter/files/patch-tests_test__hooks.py
index ff6757438157..6c73dc8a8161 100644
--- a/devel/py-cookiecutter/files/patch-tests_test__hooks.py
+++ b/devel/py-cookiecutter/files/patch-tests_test__hooks.py
@@ -1,9 +1,9 @@
---- tests/test_hooks.py.orig	2022-06-01 17:00:44 UTC
+--- tests/test_hooks.py.orig	2023-06-13 08:07:06 UTC
 +++ tests/test_hooks.py
 @@ -41,7 +41,7 @@ def make_test_repo(name, multiple_hooks=False):
          post = 'post_gen_project.sh'
          filename = os.path.join(hook_dir, post)
-         with open(filename, 'w') as f:
+         with Path(filename).open('w') as f:
 -            f.write("#!/bin/bash\n")
 +            f.write("#!/bin/sh\n")
              f.write("\n")
@@ -12,7 +12,7 @@
 @@ -61,7 +61,7 @@ def make_test_repo(name, multiple_hooks=False):
              pre = 'pre_gen_project.sh'
              filename = os.path.join(hook_dir, pre)
-             with open(filename, 'w') as f:
+             with Path(filename).open('w') as f:
 -                f.write("#!/bin/bash\n")
 +                f.write("#!/bin/sh\n")
                  f.write("\n")
@@ -21,7 +21,7 @@
 @@ -189,7 +189,7 @@ class TestExternalHooks:
                  f.write("echo. >{{cookiecutter.file}}\n")
          else:
-             with open(hook_path, 'w') as fh:
+             with Path(hook_path).open('w') as fh:
 -                fh.write("#!/bin/bash\n")
 +                fh.write("#!/bin/sh\n")
                  fh.write("\n")