[packages/python-pickleshare] - dropped python 3.2/3.3 support, fixed tests
qboosh
qboosh at pld-linux.org
Sat Nov 8 08:08:56 CET 2025
commit 0a55a5710a75a691ad714ed325bc83f4a7ba621a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 8 08:09:01 2025 +0100
- dropped python 3.2/3.3 support, fixed tests
python-pickleshare.spec | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/python-pickleshare.spec b/python-pickleshare.spec
index 0925cec..8fe117d 100644
--- a/python-pickleshare.spec
+++ b/python-pickleshare.spec
@@ -21,13 +21,14 @@ BuildRequires: python-modules >= 1:2.6
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-pathlib2
+BuildRequires: python-pytest
%endif
%endif
%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-modules >= 1:3.4
BuildRequires: python3-setuptools
-%if %{with tests} && "%{py3_ver}" < "3.4"
-BuildRequires: python3-pathlib2
+%if %{with tests}
+BuildRequires: python3-pytest
%endif
%endif
BuildRequires: rpm-pythonprov
@@ -57,7 +58,7 @@ przez PickleShare.
Summary: A small 'shelve' like datastore with concurrency support
Summary(pl.UTF-8): Mały, podobny do 'shelve', zarządca danych z obsługą współbieżności
Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
+Requires: python3-modules >= 1:3.4
%description -n python3-%{module}
PickleShareDB object acts like a normal dictionary. Unlike shelve,
@@ -83,13 +84,19 @@ przez PickleShare.
%if %{with python2}
%py_build
-%{?with_tests:%{__python} -m pytest test_pickleshare.py}
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest test_pickleshare.py
+%endif
%endif
%if %{with python3}
%py3_build
-%{?with_tests:%{__python3} -m pytest test_pickleshare.py}
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest test_pickleshare.py
+%endif
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pickleshare.git/commitdiff/0a55a5710a75a691ad714ed325bc83f4a7ba621a
More information about the pld-cvs-commit
mailing list