[packages/python3-lazy-object-proxy] - python-lazy-object-proxy updated to 1.7.1 for python 3.6+

qboosh qboosh at pld-linux.org
Tue Sep 13 19:40:43 CEST 2022


commit c1f126086d4f7788f9f8ebf74a4c22fc3aa9f36c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Sep 13 19:40:59 2022 +0200

    - python-lazy-object-proxy updated to 1.7.1 for python 3.6+

 ...ct-proxy.spec => python3-lazy-object-proxy.spec | 78 ++++++----------------
 1 file changed, 21 insertions(+), 57 deletions(-)
---
diff --git a/python-lazy-object-proxy.spec b/python3-lazy-object-proxy.spec
similarity index 54%
rename from python-lazy-object-proxy.spec
rename to python3-lazy-object-proxy.spec
index 8eb7426..92bea28 100644
--- a/python-lazy-object-proxy.spec
+++ b/python3-lazy-object-proxy.spec
@@ -1,39 +1,33 @@
 #
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_without	tests	# unit tests
 
 %define 	module	lazy-object-proxy
 Summary:	A fast and thorough lazy object proxy
 Summary(pl.UTF-8):	Szybkie i gruntowne leniwe proxy obiektów
-Name:		python-%{module}
-# keep 1.6.x here for python2 support
-Version:	1.6.0
-Release:	4
+Name:		python3-%{module}
+Version:	1.7.1
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/lazy-object-proxy/
 Source0:	https://files.pythonhosted.org/packages/source/l/lazy-object-proxy/%{module}-%{version}.tar.gz
-# Source0-md5:	0b99101615658aa711cb55c8db4930d5
+# Source0-md5:	53e3ebae55a1b2568bee8a977f48dc98
 URL:		https://github.com/ionelmc/python-lazy-object-proxy
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools >= 1:30.3.0
-BuildRequires:	python-setuptools_scm >= 3.3.1
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.4
+BuildRequires:	python3-devel >= 1:3.6
 BuildRequires:	python3-setuptools >= 1:30.3.0
 BuildRequires:	python3-setuptools_scm >= 3.3.1
+%if %{with tests}
+BuildRequires:	python3-pytest
 %endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
-BuildRequires:	python-sphinx_py3doc_enhanced_theme
-BuildRequires:	sphinx-pdg-2 >= 1.3
+BuildRequires:	python3-sphinx_py3doc_enhanced_theme
+BuildRequires:	sphinx-pdg-3 >= 1.3
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -42,18 +36,6 @@ A fast and thorough lazy object proxy.
 %description -l pl.UTF-8
 Szybkie i gruntowne leniwe proxy obiektów.
 
-%package -n python3-%{module}
-Summary:	A fast and thorough lazy object proxy
-Summary(pl.UTF-8):	Szybkie i gruntowne leniwe proxy obiektów
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-A fast and thorough lazy object proxy.
-
-%description -n python3-%{module} -l pl.UTF-8
-Szybkie i gruntowne leniwe proxy obiektów.
-
 %package apidocs
 Summary:	API documentation for lazy_object_proxy module
 Summary(pl.UTF-8):	Dokumentacja API modułu lazy_object_proxy
@@ -69,54 +51,36 @@ Dokumentacja API modułu lazy_object_proxy.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
 %py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_benchmark.plugin" \
+PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
+%{__python3} -m pytest -v tests
 %endif
 
 %if %{with doc}
-sphinx-build-2 -b html docs docs/_build
+PYTHONPATH=$(pwd)/src \
+sphinx-build-3 -b html docs docs/_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
-%dir %{py_sitedir}/lazy_object_proxy
-%{py_sitedir}/lazy_object_proxy/*.py[co]
-%attr(755,root,root) %{py_sitedir}/lazy_object_proxy/cext.so
-%{py_sitedir}/lazy_object_proxy-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
 %dir %{py3_sitedir}/lazy_object_proxy
 %{py3_sitedir}/lazy_object_proxy/*.py
 %attr(755,root,root) %{py3_sitedir}/lazy_object_proxy/cext.cpython-*.so
 %{py3_sitedir}/lazy_object_proxy/__pycache__
 %{py3_sitedir}/lazy_object_proxy-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-lazy-object-proxy.git/commitdiff/c1f126086d4f7788f9f8ebf74a4c22fc3aa9f36c



More information about the pld-cvs-commit mailing list