From cf9e49fb013551513e826663c4179acd845c7ece1252fdb81210301614f856fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 14 Sep 2022 08:15:43 +0000 Subject: [PATCH 1/2] Accepting request 1003020 from home:apersaud:branches:devel:languages:python Note: not sure if creating the docs via Sphinx is done as it should be... copied this from some other projects in d:l:p. - specfile: * update copyright year * remove patch python-blinker-remove-nose.patch; included upstream * docs and license changed to .rst * build docs using Sphinx - update to version 1.5: * Support Python >= 3.7 and PyPy. Python 2, Python < 3.7, and Jython may continue to work, but the next release will make incompatible changes. OBS-URL: https://build.opensuse.org/request/show/1003020 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blinker?expand=0&rev=26 --- blinker-1.4.tar.gz | 3 --- blinker-1.5.tar.gz | 3 +++ python-blinker-remove-nose.patch | 32 -------------------------------- python-blinker.changes | 14 ++++++++++++++ python-blinker.spec | 16 +++++++--------- 5 files changed, 24 insertions(+), 44 deletions(-) delete mode 100644 blinker-1.4.tar.gz create mode 100644 blinker-1.5.tar.gz delete mode 100644 python-blinker-remove-nose.patch diff --git a/blinker-1.4.tar.gz b/blinker-1.4.tar.gz deleted file mode 100644 index ce7efdd..0000000 --- a/blinker-1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6 -size 111476 diff --git a/blinker-1.5.tar.gz b/blinker-1.5.tar.gz new file mode 100644 index 0000000..134f261 --- /dev/null +++ b/blinker-1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:923e5e2f69c155f2cc42dafbbd70e16e3fde24d2d4aa2ab72fbe386238892462 +size 27022 diff --git a/python-blinker-remove-nose.patch b/python-blinker-remove-nose.patch deleted file mode 100644 index 79f1783..0000000 --- a/python-blinker-remove-nose.patch +++ /dev/null @@ -1,32 +0,0 @@ -Index: blinker-1.4/tests/test_signals.py -=================================================================== ---- blinker-1.4.orig/tests/test_signals.py 2015-07-23 13:34:42.000000000 +0200 -+++ blinker-1.4/tests/test_signals.py 2020-07-08 15:07:17.109435209 +0200 -@@ -4,7 +4,7 @@ import time - - import blinker - --from nose.tools import assert_raises -+import pytest - - - jython = sys.platform.startswith('java') -@@ -227,7 +227,7 @@ def test_meta_connect_failure(): - pass - sig = blinker.Signal() - -- assert_raises(TypeError, sig.connect, receiver) -+ pytest.raises(TypeError, sig.connect, receiver) - assert not sig.receivers - assert not sig._by_receiver - assert sig._by_sender == {blinker.base.ANY_ID: set()} -@@ -487,9 +487,4 @@ def values_are_empty_sets_(dictionary): - for val in dictionary.values(): - assert val == set() - --if sys.version_info < (2, 5): -- def test_context_manager_warning(): -- sig = blinker.Signal() -- receiver = lambda sender: None - -- assert_raises(RuntimeError, sig.connected_to, receiver) diff --git a/python-blinker.changes b/python-blinker.changes index 4ce8816..a904bc6 100644 --- a/python-blinker.changes +++ b/python-blinker.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Sep 12 14:44:36 UTC 2022 - Arun Persaud + +- specfile: + * update copyright year + * remove patch python-blinker-remove-nose.patch; included upstream + * docs and license changed to .rst + * build docs using Sphinx + +- update to version 1.5: + * Support Python >= 3.7 and PyPy. Python 2, Python < 3.7, and Jython + may continue to work, but the next release will make incompatible + changes. + ------------------------------------------------------------------- Wed Jul 8 13:23:59 UTC 2020 - pgajdos@suse.com diff --git a/python-blinker.spec b/python-blinker.spec index c29220a..392e8a4 100644 --- a/python-blinker.spec +++ b/python-blinker.spec @@ -1,7 +1,7 @@ # # spec file for package python-blinker # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,15 +18,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-blinker -Version: 1.4 +Version: 1.5 Release: 0 Summary: Object-to-object and broadcast signaling in Python License: MIT Group: Development/Languages/Python URL: https://pythonhosted.org/blinker/ Source: https://files.pythonhosted.org/packages/source/b/blinker/blinker-%{version}.tar.gz -# https://github.com/jek/blinker/pull/60 -Patch0: python-blinker-remove-nose.patch +BuildRequires: %{python_module Pallets-Sphinx-Themes} +BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -57,23 +57,21 @@ This sub-package contains the HTML documentation. %prep %setup -q -n blinker-%{version} -%patch0 -p1 -# remove unneded doc file that trigger rpmlint -rm docs/html/objects.inv %build %python_build %install %python_install +cd docs; make html %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} -%license LICENSE -%doc AUTHORS CHANGES README.md +%license LICENSE.rst +%doc CHANGES.rst README.rst %{python_sitelib}/blinker-%{version}-py%{python_version}.egg-info %{python_sitelib}/blinker From 1e0e551d41230a53dfa846adb76e4d29fa7d5599b527d03ce45996658f16b305 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 14 Sep 2022 13:56:16 +0000 Subject: [PATCH 2/2] - Fix documentation generation. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blinker?expand=0&rev=27 --- python-blinker.changes | 5 +++++ python-blinker.spec | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/python-blinker.changes b/python-blinker.changes index a904bc6..1b64b0d 100644 --- a/python-blinker.changes +++ b/python-blinker.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 14 13:56:07 UTC 2022 - Matej Cepl + +- Fix documentation generation. + ------------------------------------------------------------------- Mon Sep 12 14:44:36 UTC 2022 - Arun Persaud diff --git a/python-blinker.spec b/python-blinker.spec index 392e8a4..2818e9f 100644 --- a/python-blinker.spec +++ b/python-blinker.spec @@ -63,8 +63,14 @@ This sub-package contains the HTML documentation. %install %python_install -cd docs; make html -%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%{python_expand pushd docs +export PYTHONPATH=%{buildroot}%{$python_sitelib} +make html +popd + +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest @@ -76,6 +82,6 @@ cd docs; make html %{python_sitelib}/blinker %files -n python-blinker-doc -%doc docs/html +%doc docs/_build/html %changelog