forked from pool/python-pre-commit
Accepting request 1038582 from devel:languages:python
- 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 OBS-URL: https://build.opensuse.org/request/show/1038582 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 28 07:01:26 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- 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 <arun@gmx.de>
|
Mon Jul 11 13:58:51 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-pre-commit
|
Name: python-pre-commit
|
||||||
Version: 2.20.0
|
Version: 2.20.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -61,6 +60,7 @@ A framework for managing and maintaining multi-language pre-commit hooks.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n pre-commit-%{version}
|
%setup -q -n pre-commit-%{version}
|
||||||
sed -i 's|^#!%{_bindir}/env python|#!%{_bindir}/python|' pre_commit/resources/hook-tmpl
|
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
|
%build
|
||||||
%python_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_lua_additional_dependencies"
|
||||||
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_python_repo_python2"
|
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 .
|
git init .
|
||||||
%pytest -k "not ($EXCLUDED_TESTS)"
|
%pytest -k "not ($EXCLUDED_TESTS)"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user