diff --git a/python-pre-commit.changes b/python-pre-commit.changes index 0409434..c19b6e0 100644 --- a/python-pre-commit.changes +++ b/python-pre-commit.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 28 07:01:26 UTC 2022 - Daniel Garcia + +- Fix "/usr/bin/env bash" shebang in hook-tmpl file +- Remove python_module macro definition +- Allow file protocol always for git submodule to fix tests + ------------------------------------------------------------------- Mon Jul 11 13:58:51 UTC 2022 - Arun Persaud diff --git a/python-pre-commit.spec b/python-pre-commit.spec index 039d33f..26d5094 100644 --- a/python-pre-commit.spec +++ b/python-pre-commit.spec @@ -17,7 +17,6 @@ %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pre-commit Version: 2.20.0 Release: 0 @@ -61,6 +60,7 @@ A framework for managing and maintaining multi-language pre-commit hooks. %prep %setup -q -n pre-commit-%{version} sed -i 's|^#!%{_bindir}/env python|#!%{_bindir}/python|' pre_commit/resources/hook-tmpl +sed -i 's|^#!%{_bindir}/env bash|#!%{_bindir}/bash|' pre_commit/resources/hook-tmpl %build %python_build @@ -95,6 +95,9 @@ EXCLUDED_TESTS="$EXCLUDED_TESTS or dart or dotnet or r_ or node or ruby" EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_lua_additional_dependencies" EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_python_repo_python2" +# Fix issue with git submodule in OBS +git config --global --add protocol.file.allow always + git init . %pytest -k "not ($EXCLUDED_TESTS)"