Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-libcst for openSUSE:Factory checked in at 2023-04-22 22:03:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-libcst (Old) and /work/SRC/openSUSE:Factory/.python-libcst.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libcst" Sat Apr 22 22:03:20 2023 rev:8 rq:1082129 version:0.4.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-libcst/python-libcst.changes 2022-12-15 19:25:16.712081340 +0100 +++ /work/SRC/openSUSE:Factory/.python-libcst.new.1533/python-libcst.changes 2023-04-22 22:03:57.090468758 +0200 @@ -1,0 +2,15 @@ +Fri Apr 21 12:27:55 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Wed Apr 19 02:01:37 UTC 2023 - Matej Cepl <mc...@suse.com> + +- Refresh replace-python-call.patch to make tests working. + +------------------------------------------------------------------- +Thu Apr 13 22:42:28 UTC 2023 - Matej Cepl <mc...@suse.com> + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-libcst.spec ++++++ --- /var/tmp/diff_new_pack.D6mAfu/_old 2023-04-22 22:03:57.698472393 +0200 +++ /var/tmp/diff_new_pack.D6mAfu/_new 2023-04-22 22:03:57.702472417 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,7 @@ %bcond_with test %endif %define modname libcst +%{?sle15_python_module_pythons} Name: python-libcst%{psuffix} Version: 0.4.9 Release: 0 @@ -61,7 +62,6 @@ BuildRequires: %{python_module dataclasses if %python-base < 3.7} BuildRequires: %{python_module hypothesis >= 4.36.0} BuildRequires: %{python_module hypothesmith >= 0.0.4} -BuildRequires: %{python_module isort >= 5.5.3} BuildRequires: %{python_module typing-inspect >= 0.4.0} BuildRequires: %{python_module typing_extensions >= 3.7.4.2} %endif @@ -90,7 +90,7 @@ libcst/tests/test_pyre_integration.py # gh#Instagram/LibCST#467 -sed -i 's/import AbstractBaseMatcherNodeMeta/import Optional, AbstractBaseMatcherNodeMeta/' libcst/codegen/gen_matcher_classes.py +sed -i -e 's/import AbstractBaseMatcherNodeMeta/import Optional, AbstractBaseMatcherNodeMeta/' libcst/codegen/gen_matcher_classes.py %if !%{with test} %build @@ -107,15 +107,8 @@ %if %{with test} %check -# test_fuzz needs network access because of 'from hypothesmith import from_grammar' -rm libcst/tests/test_fuzz.py - -%{python_exec # https://github.com/Instagram/LibCST/issues/331 + 467 -$python -m libcst.codegen.generate matchers -$python -m libcst.codegen.generate return_types -$python -m libcst.codegen.generate visitors -$python -m unittest -v -} +%python_exec -m libcst.codegen.generate all +%pyunittest -v %endif %if !%{with test} ++++++ replace-python-call.patch ++++++ --- /var/tmp/diff_new_pack.D6mAfu/_old 2023-04-22 22:03:57.786472919 +0200 +++ /var/tmp/diff_new_pack.D6mAfu/_new 2023-04-22 22:03:57.790472943 +0200 @@ -1,7 +1,21 @@ -Index: libcst-0.4.9/libcst/codemod/tests/test_codemod_cli.py -=================================================================== ---- libcst-0.4.9.orig/libcst/codemod/tests/test_codemod_cli.py -+++ libcst-0.4.9/libcst/codemod/tests/test_codemod_cli.py +--- + libcst/codegen/generate.py | 2 +- + libcst/codemod/tests/test_codemod_cli.py | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +--- a/libcst/codegen/generate.py ++++ b/libcst/codegen/generate.py +@@ -69,7 +69,7 @@ def codegen_visitors() -> None: + # by attempting to run codegen again in a new process. + with open(os.devnull, "w") as devnull: + subprocess.check_call( +- ["python3", "-m", "libcst.codegen.gen_visitor_functions"], ++ [sys.executable, "-m", "libcst.codegen.gen_visitor_functions"], + cwd=base, + stdout=devnull, + ) +--- a/libcst/codemod/tests/test_codemod_cli.py ++++ b/libcst/codemod/tests/test_codemod_cli.py @@ -4,7 +4,7 @@ # LICENSE file in the root directory of this source tree. #