Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ctypeslib2 for openSUSE:Factory checked in at 2022-06-16 18:20:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ctypeslib2 (Old) and /work/SRC/openSUSE:Factory/.python-ctypeslib2.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ctypeslib2" Thu Jun 16 18:20:39 2022 rev:6 rq:982775 version:2.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ctypeslib2/python-ctypeslib2.changes 2022-04-21 15:49:03.212341544 +0200 +++ /work/SRC/openSUSE:Factory/.python-ctypeslib2.new.1548/python-ctypeslib2.changes 2022-06-16 18:21:52.496221841 +0200 @@ -1,0 +2,9 @@ +Wed Jun 15 11:17:35 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Add ctypeslib-pr113-clang2py-h.patch + * Fix output check for python 3.10 + * gh#trolldbois/ctypeslib#113 +- Remove custom u-a shuffle, provided by new + python_flavored_alternatives in pyunittest macro. + +------------------------------------------------------------------- New: ---- ctypeslib-pr113-clang2py-h.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ctypeslib2.spec ++++++ --- /var/tmp/diff_new_pack.Fu2pv2/_old 2022-06-16 18:21:53.104222706 +0200 +++ /var/tmp/diff_new_pack.Fu2pv2/_new 2022-06-16 18:21:53.108222712 +0200 @@ -35,13 +35,15 @@ Group: Development/Languages/Python URL: https://github.com/trolldbois/ctypeslib Source: https://files.pythonhosted.org/packages/source/c/ctypeslib2/ctypeslib2-%{version}.tar.gz +# PATCH-FIX-UPSTREAM ctypeslib-pr113-clang2py-h.patch -- gh#trolldbois/ctypeslib#113 +Patch1: ctypeslib-pr113-clang2py-h.patch BuildRequires: %{python_module clang >= 11} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testsuite} BuildRequires: clang >= 11 BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20220610 Requires: python-clang >= 11 Requires(post): update-alternatives Requires(postun):update-alternatives @@ -54,7 +56,7 @@ Python FFI toolkit using clang. %prep -%setup -q -n ctypeslib2-%{version} +%autosetup -p1 -n ctypeslib2-%{version} sed -i '1{/^#!/d}' ctypeslib/clang2py.py # avoid pkg_resources errors because python3-clang does not provide an egg-info (even upstream does not) @@ -75,10 +77,6 @@ clang $CFLAGS $LDFLAGS -o test/data/test-callbacks.so test/data/test-callbacks.c export LANG=en_US.UTF-8 -%{python_expand # u-a controlled executable - mkdir -p build/bin - ln -s %{buildroot}%{_bindir}/clang2py-%{$python_bin_suffix} build/bin/clang2py -} export PATH="$(pwd)/build/bin:$PATH" export CPATH=$(clang -print-resource-dir)/include if [ $(getconf LONG_BIT) -eq 32 ]; then ++++++ ctypeslib-pr113-clang2py-h.patch ++++++ >From 85c47d704eb5f85c48c9588db054f2639cbce6d3 Mon Sep 17 00:00:00 2001 From: Ben Greiner <c...@bnavigator.de> Date: Wed, 15 Jun 2022 13:14:08 +0200 Subject: [PATCH] Changed clang2py -h output in Python 3.10 The line for the argparser changed from "optional arguments" to "options". --- test/test_clang2py.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_clang2py.py b/test/test_clang2py.py index 6cf2ea6..3d0ad43 100644 --- a/test/test_clang2py.py +++ b/test/test_clang2py.py @@ -96,7 +96,7 @@ def test_helper(self): self.assertEqual(0, p.returncode) self.assertIn("Cross-architecture:", output) self.assertIn("usage:", output) - self.assertIn("optional arguments", output) + self.assertRegex(output, r"\noption.*:") class ArgumentTypeKind(ClangTest):