diff --git a/devel/py-cookiecutter/Makefile b/devel/py-cookiecutter/Makefile index b1ce4d0feae5..4786e6d5bdce 100644 --- a/devel/py-cookiecutter/Makefile +++ b/devel/py-cookiecutter/Makefile @@ -1,48 +1,49 @@ PORTNAME= cookiecutter -PORTVERSION= 2.6.0 -PORTREVISION= 2 +PORTVERSION= 2.7.1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= matthew@FreeBSD.org COMMENT= Create projects from cookiecutters (project templates) WWW= https://pypi.org/project/cookiecutter/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + 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>=2.7:devel/py-Jinja2@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}poyo>=0:devel/py-poyo@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=7.0<9.0.0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyyaml>=5.3.1:devel/py-pyyaml@${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}pyyaml>=5.3.1:devel/py-pyyaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}arrow>=0:devel/py-arrow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rich>=0:textproc/py-rich@${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} \ ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ git:devel/git USES= cpe python -USE_PYTHON= autoplist concurrent distutils pytest +USE_PYTHON= autoplist concurrent pep517 pytest CPE_VENDOR= cookiecutter_project NO_ARCH= yes # pytest needs a UTF-8 environment, and it will try and write outside # ${WRKDIR} unless told not to. TEST_ENV= HOME=${WRKDIR} \ LANG=C.UTF-8 \ LC_ALL=C.UTF-8 \ TMPDIR=${WRKDIR} # Windows specific test PYTEST_IGNORED_TESTS= test_run_shell_hooks_win .include diff --git a/devel/py-cookiecutter/distinfo b/devel/py-cookiecutter/distinfo index a3c5d13c81fc..9577813b42b6 100644 --- a/devel/py-cookiecutter/distinfo +++ b/devel/py-cookiecutter/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1708768910 -SHA256 (cookiecutter-2.6.0.tar.gz) = db21f8169ea4f4fdc2408d48ca44859349de2647fbe494a9d6c3edfc0542c21c -SIZE (cookiecutter-2.6.0.tar.gz) = 158767 +TIMESTAMP = 1772889622 +SHA256 (cookiecutter-2.7.1.tar.gz) = ca7bb7bc8c6ff441fbf53921b5537668000e38d56e28d763a1b73975c66c6138 +SIZE (cookiecutter-2.7.1.tar.gz) = 142854 diff --git a/devel/py-cookiecutter/files/patch-tests_test-pyshellhooks_hooks_pre__prompt.sh b/devel/py-cookiecutter/files/patch-tests_test-pyshellhooks_hooks_pre__prompt.sh new file mode 100644 index 000000000000..65b9e76629c8 --- /dev/null +++ b/devel/py-cookiecutter/files/patch-tests_test-pyshellhooks_hooks_pre__prompt.sh @@ -0,0 +1,8 @@ +--- tests/test-pyshellhooks/hooks/pre_prompt.sh.orig 2026-03-07 13:53:29 UTC ++++ tests/test-pyshellhooks/hooks/pre_prompt.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + echo 'Pre-Prompt hook'; + touch '_cookiecutter.json' diff --git a/devel/py-cookiecutter/files/patch-tests_test__hooks.py b/devel/py-cookiecutter/files/patch-tests_test__hooks.py index 6c73dc8a8161..40e004baa793 100644 --- a/devel/py-cookiecutter/files/patch-tests_test__hooks.py +++ b/devel/py-cookiecutter/files/patch-tests_test__hooks.py @@ -1,29 +1,29 @@ ---- tests/test_hooks.py.orig 2023-06-13 08:07:06 UTC +--- tests/test_hooks.py.orig 2026-03-04 04:05:35 UTC +++ tests/test_hooks.py -@@ -41,7 +41,7 @@ def make_test_repo(name, multiple_hooks=False): +@@ -42,7 +42,7 @@ def make_test_repo(name: str, multiple_hooks: bool = F post = 'post_gen_project.sh' filename = os.path.join(hook_dir, post) with Path(filename).open('w') as f: - f.write("#!/bin/bash\n") + f.write("#!/bin/sh\n") f.write("\n") f.write("echo 'post generation hook';\n") f.write("touch 'shell_post.txt'\n") -@@ -61,7 +61,7 @@ def make_test_repo(name, multiple_hooks=False): +@@ -62,7 +62,7 @@ def make_test_repo(name: str, multiple_hooks: bool = F pre = 'pre_gen_project.sh' filename = os.path.join(hook_dir, pre) with Path(filename).open('w') as f: - f.write("#!/bin/bash\n") + f.write("#!/bin/sh\n") f.write("\n") f.write("echo 'post generation hook';\n") f.write("touch 'shell_pre.txt'\n") -@@ -189,7 +189,7 @@ class TestExternalHooks: +@@ -192,7 +192,7 @@ class TestExternalHooks: f.write("echo. >{{cookiecutter.file}}\n") else: with Path(hook_path).open('w') as fh: - fh.write("#!/bin/bash\n") + fh.write("#!/bin/sh\n") fh.write("\n") fh.write("echo 'post generation hook';\n") fh.write("touch 'shell_post.txt'\n")