Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-examples for openSUSE:Factory checked in at 2024-01-24 19:05:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-examples (Old) and /work/SRC/openSUSE:Factory/.python-pytest-examples.new.16006 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-examples" Wed Jan 24 19:05:42 2024 rev:3 rq:1141121 version:0.0.10 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-examples/python-pytest-examples.changes 2023-10-19 22:53:58.704922954 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-examples.new.16006/python-pytest-examples.changes 2024-01-24 19:05:48.892541095 +0100 @@ -1,0 +2,6 @@ +Wed Jan 24 06:44:56 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch suppot-python-312.patch: + * Support code changes in Python 3.12+. + +------------------------------------------------------------------- New: ---- suppot-python-312.patch BETA DEBUG BEGIN: New: - Add patch suppot-python-312.patch: * Support code changes in Python 3.12+. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-examples.spec ++++++ --- /var/tmp/diff_new_pack.oYTZAt/_old 2024-01-24 19:05:50.288591459 +0100 +++ /var/tmp/diff_new_pack.oYTZAt/_new 2024-01-24 19:05:50.292591603 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-examples # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,8 @@ Source: https://github.com/pydantic/pytest-examples/archive/refs/tags/v%{version}.tar.gz#/pytest-examples-%{version}.tar.gz # PATCH-FIX-UPSTREAM test-ruff-0.1.0.patch - fix tests for ruff-0.1.0 Patch0: test-ruff-0.1.0.patch +# PATCH-FIX-UPSTREAM gh#pydantic/pytest-examples#22 +Patch1: suppot-python-312.patch BuildRequires: %{python_module black} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} @@ -59,10 +61,10 @@ %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %{python_sitelib}/pytest_examples %{python_sitelib}/pytest_examples-%{version}.dist-info -%check -%pytest - ++++++ suppot-python-312.patch ++++++ >From 35f93d668c8a4a337d1c9d477fa5732fa439b1b3 Mon Sep 17 00:00:00 2001 From: Alex Hall <alex.moj...@gmail.com> Date: Wed, 27 Sep 2023 17:47:51 +0200 Subject: [PATCH 1/2] Fix deprecation warnings in Python 3.12 --- .github/workflows/ci.yml | 2 +- pytest_examples/traceback.py | 21 ++++++++++++++++++++- requirements/testing.txt | 6 ++---- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/pytest_examples/traceback.py b/pytest_examples/traceback.py index 94ede45..41880fe 100644 --- a/pytest_examples/traceback.py +++ b/pytest_examples/traceback.py @@ -62,7 +62,26 @@ def create_custom_frame(frame: FrameType, example: CodeExample) -> FrameType: ctypes.pythonapi.PyThreadState_Get.restype = P_MEM_TYPE f_code = frame.f_code - if sys.version_info >= (3, 11): + if sys.version_info >= (3, 12): + code = CodeType( + f_code.co_argcount, + f_code.co_posonlyargcount, + f_code.co_kwonlyargcount, + f_code.co_nlocals, + f_code.co_stacksize, + f_code.co_flags, + f_code.co_code, + f_code.co_consts, + f_code.co_names, + f_code.co_varnames, + str(example.path), + f_code.co_name, + f_code.co_qualname, + f_code.co_firstlineno + example.start_line, + f_code.co_linetable, + f_code.co_exceptiontable, + ) + elif sys.version_info >= (3, 11): code = CodeType( f_code.co_argcount, f_code.co_posonlyargcount, diff --git a/requirements/testing.txt b/requirements/testing.txt index 805175d..4b42722 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -2,10 +2,8 @@ # This file is autogenerated by pip-compile with Python 3.10 # by the following command: # -# pip-compile --output-file=requirements/testing.txt --resolver=backtracking requirements/testing.in +# pip-compile --output-file=requirements/testing.txt requirements/testing.in # -attrs==22.2.0 - # via pytest coverage==7.2.2 # via -r requirements/testing.in exceptiongroup==1.1.1 @@ -22,7 +20,7 @@ pluggy==1.0.0 # via pytest pygments==2.14.0 # via rich -pytest==7.2.2 +pytest==7.4.2 # via pytest-pretty pytest-pretty==1.1.1 # via -r requirements/testing.in