[packages/python3-blinker] Up to 1.9.0

arekm arekm at pld-linux.org
Sun May 4 13:12:38 CEST 2025


commit 24f6421bd3ae251f1fef7f27d59e7970d50fc390
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 12:19:35 2025 +0200

    Up to 1.9.0

 python-blinker.spec => python3-blinker.spec | 91 ++++++-----------------------
 1 file changed, 19 insertions(+), 72 deletions(-)
---
diff --git a/python-blinker.spec b/python3-blinker.spec
similarity index 51%
rename from python-blinker.spec
rename to python3-blinker.spec
index 03b538d..6ebd3bb 100644
--- a/python-blinker.spec
+++ b/python3-blinker.spec
@@ -2,43 +2,32 @@
 # Conditional build:
 %bcond_without	doc	# API documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define 	module	blinker
 Summary:	Fast, simple object-to-object and broadcast signaling
 Summary(pl.UTF-8):	Szybkie, proste przesyłanie sygnałów pomiędzy obiektami
-Name:		python-%{module}
-# keep 1.5 here for python2 support
-Version:	1.5
-Release:	3
+Name:		python3-%{module}
+Version:	1.9.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/blinker/
 Source0:	https://files.pythonhosted.org/packages/source/b/blinker/%{module}-%{version}.tar.gz
-# Source0-md5:	e1c3eec8e52210f69ef59d299c6cca07
+# Source0-md5:	1ffce54aca3d568ab18ee921d479274f
 URL:		https://pythonhosted.org/blinker/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-nose
-%endif
-%endif
-%if %{with python3}
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
 BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-nose
 %endif
-%endif
 %if %{with doc}
 BuildRequires:	python3-flask_sphinx_themes
 BuildRequires:	sphinx-pdg-3
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.5
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -54,24 +43,6 @@ pozwala na dowolną liczbę odbiorców zdarzeń czy sygnałów. Odbiorcy
 sygnałów mogą zapisywać się do wybranych nadawców lub odbierać sygnały
 nadadane przez wszystkich nadawców.
 
-%package -n python3-%{module}
-Summary:	Fast, simple object-to-object and broadcast signaling
-Summary(pl.UTF-8):	Szybkie, proste przesyłanie sygnałów pomiędzy obiektami
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Blinker provides a fast dispatching system that allows any number of
-interested parties to subscribe to events, or "signals". Signal
-receivers can subscribe to specific senders or receive signals sent by
-any sender.
-
-%description -n python3-%{module} -l pl.UTF-8
-Blinker dostarcza szybki system rozporowadzania sygnałów, który
-pozwala na dowolną liczbę odbiorców zdarzeń czy sygnałów. Odbiorcy
-sygnałów mogą zapisywać się do wybranych nadawców lub odbierać sygnały
-nadadane przez wszystkich nadawców.
-
 %package apidocs
 Summary:	Blinker API documentation
 Summary(pl.UTF-8):	Dokumentacja API modułu Blinker
@@ -87,59 +58,35 @@ Dokumentacja API modułu Blinker.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
+%py3_build_pyproject
 
 %if %{with tests}
-nosetests-%{py_ver} tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-nosetests-%{py3_ver} tests
-%endif
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=asyncio \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
 %endif
 
 %if %{with doc}
-PYTHONPATH=$(pwd) \
-%{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-3
+%{__python3} -m zipfile -e build-3/*.whl build-3-doc
+PYTHONPATH=$(pwd)/build-3-doc \
+sphinx-build-3 -b html docs docs/_build/html
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
+%py3_install_pyproject
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE.rst README.rst
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE.rst README.rst
+%doc CHANGES.rst README.md
 %{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-blinker.git/commitdiff/24f6421bd3ae251f1fef7f27d59e7970d50fc390



More information about the pld-cvs-commit mailing list