Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-vine for openSUSE:Factory 
checked in at 2024-08-13 13:24:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-vine (Old)
 and      /work/SRC/openSUSE:Factory/.python-vine.new.7232 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-vine"

Tue Aug 13 13:24:59 2024 rev:8 rq:1193590 version:5.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-vine/python-vine.changes  2023-11-27 
22:45:33.890680202 +0100
+++ /work/SRC/openSUSE:Factory/.python-vine.new.7232/python-vine.changes        
2024-08-13 13:25:22.971593302 +0200
@@ -1,0 +2,8 @@
+Tue Aug 13 05:14:47 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Switch to pyproject and autosetup macros.
+- No more greedy globs in %files.
+- Add patch use-correct-test-method.patch:
+  * Use setup_method() to work with Pytest 8.
+
+-------------------------------------------------------------------

New:
----
  use-correct-test-method.patch

BETA DEBUG BEGIN:
  New:- No more greedy globs in %files.
- Add patch use-correct-test-method.patch:
  * Use setup_method() to work with Pytest 8.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-vine.spec ++++++
--- /var/tmp/diff_new_pack.k20VQr/_old  2024-08-13 13:25:23.627620635 +0200
+++ /var/tmp/diff_new_pack.k20VQr/_new  2024-08-13 13:25:23.627620635 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-vine
 #
-# 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
@@ -24,7 +24,11 @@
 License:        BSD-3-Clause
 URL:            https://github.com/celery/vine/
 Source:         
https://files.pythonhosted.org/packages/source/v/vine/vine-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#celery/vine#105
+Patch0:         use-correct-test-method.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
@@ -38,13 +42,13 @@
 Promises implementation for python.
 
 %prep
-%setup -q -n vine-%{version}
+%autosetup -p1 -n vine-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -53,5 +57,6 @@
 %files %{python_files}
 %doc Changelog README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/vine
+%{python_sitelib}/vine-%{version}.dist-info
 

++++++ use-correct-test-method.patch ++++++
>From 8b41bf0052de96672c69a8c297cb24f1dd9c0d69 Mon Sep 17 00:00:00 2001
From: Stanislav Levin <s...@altlinux.org>
Date: Tue, 27 Feb 2024 20:09:28 +0300
Subject: [PATCH] tests: Replace deprecated setup method

Nose's `setup` method is deprecated since Pytest 7.2.

See 
https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose
 for details.

Fixes: https://github.com/celery/vine/issues/104
Signed-off-by: Stanislav Levin <s...@altlinux.org>
---
 t/unit/test_synchronization.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/unit/test_synchronization.py b/t/unit/test_synchronization.py
index 87335b6..47b7a10 100644
--- a/t/unit/test_synchronization.py
+++ b/t/unit/test_synchronization.py
@@ -8,7 +8,7 @@
 
 class test_barrier:
 
-    def setup(self):
+    def setup_method(self):
         self.m1, self.m2, self.m3 = Mock(), Mock(), Mock()
         self.ps = [promise(self.m1), promise(self.m2), promise(self.m3)]
 

Reply via email to