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
This commit is contained in:
parent
895a2b9eb4
commit
cf9e49fb01
@ -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,17 @@
|
||||
-------------------------------------------------------------------
|
||||
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,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user