Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pre-commit for
openSUSE:Factory checked in at 2022-11-28 11:07:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pre-commit (Old)
and /work/SRC/openSUSE:Factory/.python-pre-commit.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pre-commit"
Mon Nov 28 11:07:22 2022 rev:12 rq:1038582 version:2.20.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pre-commit/python-pre-commit.changes
2022-07-12 11:12:40.655717147 +0200
+++
/work/SRC/openSUSE:Factory/.python-pre-commit.new.1597/python-pre-commit.changes
2022-11-28 11:07:29.615871570 +0100
@@ -1,0 +2,7 @@
+Mon Nov 28 07:01:26 UTC 2022 - Daniel Garcia <[email protected]>
+
+- 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
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pre-commit.spec ++++++
--- /var/tmp/diff_new_pack.Slywdi/_old 2022-11-28 11:07:30.175874082 +0100
+++ /var/tmp/diff_new_pack.Slywdi/_new 2022-11-28 11:07:30.183874117 +0100
@@ -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 @@
%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 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)"