forked from pool/python-blinker
Accepting request 1003549 from devel:languages:python
- Fix documentation generation.
- 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/1003549
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-blinker?expand=0&rev=16
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6
|
||||
size 111476
|
||||
3
blinker-1.5.tar.gz
Normal file
3
blinker-1.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:923e5e2f69c155f2cc42dafbbd70e16e3fde24d2d4aa2ab72fbe386238892462
|
||||
size 27022
|
||||
@@ -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)
|
||||
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 14 13:56:07 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Fix documentation generation.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 12 14:44:36 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
@@ -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,27 +57,31 @@ 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
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%{python_expand pushd docs
|
||||
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
make html
|
||||
popd
|
||||
|
||||
%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
|
||||
|
||||
%files -n python-blinker-doc
|
||||
%doc docs/html
|
||||
%doc docs/_build/html
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user