[packages/python3-vine] - updated dependencies, cleaned up redundant macros
qboosh
qboosh at pld-linux.org
Thu Nov 6 20:21:58 CET 2025
commit a95f4e6245b18ad7a2a39760df17eb78874fcd19
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Nov 6 20:22:02 2025 +0100
- updated dependencies, cleaned up redundant macros
python3-vine.spec | 16 +++++++---------
vine-pytest.patch | 11 +++++++++++
2 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/python3-vine.spec b/python3-vine.spec
index 8801ef1..1c34062 100644
--- a/python3-vine.spec
+++ b/python3-vine.spec
@@ -6,8 +6,6 @@
%bcond_without python3 # CPython 3.x module
%define module vine
-%define egg_name vine
-%define pypi_name vine
Summary: Python promises
Summary(pl.UTF-8): Obietnice dla Pythona
Name: python3-%{module}
@@ -15,14 +13,14 @@ Version: 5.1.0
Release: 1
License: BSD
Group: Libraries/Python
-Source0: https://files.pythonhosted.org/packages/source/v/vine/%{pypi_name}-%{version}.tar.gz
+Source0: https://files.pythonhosted.org/packages/source/v/vine/%{module}-%{version}.tar.gz
# Source0-md5: eb53f54bbe9b6b4d65f072972cea0fcd
+Patch0: vine-pytest.patch
URL: https://vine.readthedocs.io/
BuildRequires: python3-modules >= 1:3.6
-BuildRequires: python3-setuptools >= 1:20.6.7
+BuildRequires: python3-setuptools >= 1:59.2.0
%if %{with tests}
-BuildRequires: python3-case >= 1.3.1
-BuildRequires: python3-pytest >= 3.0
+BuildRequires: python3-pytest >= 7.2
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -52,14 +50,14 @@ API documentation for vine module.
Dokumentacja API modułu vine.
%prep
-%setup -q -n %{pypi_name}-%{version}
+%setup -q -n %{module}-%{version}
+%patch -P0 -p1
%build
%py3_build
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="case.pytest" \
%{__python3} -m pytest t/unit
%endif
@@ -80,7 +78,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc Changelog LICENSE README.rst
%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
%if %{with doc}
%files apidocs
diff --git a/vine-pytest.patch b/vine-pytest.patch
new file mode 100644
index 0000000..018fb3f
--- /dev/null
+++ b/vine-pytest.patch
@@ -0,0 +1,11 @@
+--- vine-5.1.0/t/unit/test_synchronization.py.orig 2021-11-19 08:03:20.000000000 +0100
++++ vine-5.1.0/t/unit/test_synchronization.py 2025-11-06 19:48:02.521723242 +0100
+@@ -8,7 +8,7 @@ from vine.synchronization import barrier
+
+ class test_barrier:
+
+- def setup(self):
++ def setup_class(self):
+ self.m1, self.m2, self.m3 = Mock(), Mock(), Mock()
+ self.ps = [promise(self.m1), promise(self.m2), promise(self.m3)]
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-vine.git/commitdiff/a95f4e6245b18ad7a2a39760df17eb78874fcd19
More information about the pld-cvs-commit
mailing list