From 210e026bb2722e70c40b5066b43aae351f3e25b7 Mon Sep 17 00:00:00 2001 From: Matthew Seaman Date: Mon, 28 Dec 2020 10:14:37 +0000 Subject: Fix `make test` to achieve 100% pass rate by converting entirely unnecessary references to '/bin/bash' to use '/bin/sh' instead. Update dependency versions to match 'setup.cfg' _except_ for py-requests, where the ports currently has only 2.22.0 available, but upstream is requiring at least 2.23.0. (Waiting on PR 250941) [1] PR: 252180 Submitted by: Charlie Li --- .../py-cookiecutter/files/patch-tests_test__hooks.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 devel/py-cookiecutter/files/patch-tests_test__hooks.py (limited to 'devel/py-cookiecutter/files/patch-tests_test__hooks.py') diff --git a/devel/py-cookiecutter/files/patch-tests_test__hooks.py b/devel/py-cookiecutter/files/patch-tests_test__hooks.py new file mode 100644 index 000000000000..bf62c10a3f07 --- /dev/null +++ b/devel/py-cookiecutter/files/patch-tests_test__hooks.py @@ -0,0 +1,20 @@ +--- tests/test_hooks.py.orig 2020-12-28 09:57:55 UTC ++++ tests/test_hooks.py +@@ -42,7 +42,7 @@ def make_test_repo(name): + post = 'post_gen_project.sh' + filename = os.path.join(hook_dir, post) + with open(filename, '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") +@@ -143,7 +143,7 @@ class TestExternalHooks(object): + f.write("echo. >{{cookiecutter.file}}\n") + else: + with open(hook_path, '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") -- cgit v1.2.3