2018-04-02 14:04:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-trio
|
|
|
|
#
|
2021-05-15 21:06:34 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-04-02 14:04:39 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-02 08:21:00 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-04-02 14:04:39 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-sphinxcontrib-trio
|
2020-05-16 09:23:03 +00:00
|
|
|
Version: 1.1.2
|
2018-04-02 14:04:39 +00:00
|
|
|
Release: 0
|
2019-04-24 08:45:58 +00:00
|
|
|
Summary: Sphinx extension for documenting Python functions and methods
|
2021-05-15 21:06:34 +00:00
|
|
|
License: Apache-2.0 OR MIT
|
2018-04-02 14:04:39 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-04-12 09:22:38 +00:00
|
|
|
URL: https://github.com/python-trio/sphinxcontrib-trio
|
2018-04-02 14:04:39 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-trio/sphinxcontrib-trio-%{version}.tar.gz
|
2020-05-16 09:23:03 +00:00
|
|
|
BuildRequires: %{python_module Sphinx >= 1.7}
|
2019-04-23 11:52:28 +00:00
|
|
|
BuildRequires: %{python_module async_generator}
|
|
|
|
BuildRequires: %{python_module cssselect}
|
|
|
|
BuildRequires: %{python_module lxml}
|
|
|
|
BuildRequires: %{python_module pytest-cov}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2018-04-02 14:04:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-04-23 11:52:28 +00:00
|
|
|
BuildRequires: %{python_module urllib3 >= 1.21.1}
|
2018-04-02 14:04:39 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-04-23 11:52:28 +00:00
|
|
|
Requires: python-Sphinx >= 1.6
|
2018-04-02 14:04:39 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-04-03 06:47:51 +00:00
|
|
|
This sphinx extension helps documenting Python code that uses
|
|
|
|
async/await, or abstract methods, or context managers, or generators.
|
|
|
|
It works by making sphinx's regular directives
|
|
|
|
for documenting Python functions and methods smarter.
|
2018-04-02 14:04:39 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n sphinxcontrib-trio-%{version}
|
2018-11-02 08:21:00 +00:00
|
|
|
%autopatch -p1
|
2018-04-02 14:04:39 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2019-04-23 11:52:28 +00:00
|
|
|
%check
|
2021-05-15 21:06:34 +00:00
|
|
|
# gh#python-trio/sphinxcontrib-trio#260
|
|
|
|
%pytest -k 'not test_end_to_end' tests
|
2019-04-23 11:52:28 +00:00
|
|
|
|
2018-04-02 14:04:39 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
2018-04-12 09:22:38 +00:00
|
|
|
%license LICENSE LICENSE.MIT LICENSE.APACHE2
|
2020-05-16 09:23:03 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib_trio
|
|
|
|
%{python_sitelib}/sphinxcontrib_trio-%{version}-*.egg-info
|
2018-04-02 14:04:39 +00:00
|
|
|
|
|
|
|
%changelog
|