15
0

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:
2022-09-14 08:15:43 +00:00
committed by Git OBS Bridge
parent 895a2b9eb4
commit cf9e49fb01
5 changed files with 24 additions and 44 deletions

View File

@@ -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