forked from pool/python-jaraco.stream
Accepting request 1086886 from home:bnavigator:branches:devel:languages:python
- Replace removed sphinx_build setuptools hook with build-sphinx
* requires feature enhancement of python-jaraco.packaging
gh#jaraco/jaraco.packaging#11
- Remove obsolete pytest workaround
OBS-URL: https://build.opensuse.org/request/show/1086886
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.stream?expand=0&rev=18
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 12 13:07:37 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Replace removed sphinx_build setuptools hook with build-sphinx
|
||||
* requires feature enhancement of python-jaraco.packaging
|
||||
gh#jaraco/jaraco.packaging#11
|
||||
- Remove obsolete pytest workaround
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 29 13:32:52 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-jaraco.stream
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,8 +17,6 @@
|
||||
|
||||
|
||||
%define _name jaraco.stream
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-jaraco.stream
|
||||
Version: 3.0.3
|
||||
Release: 0
|
||||
@@ -40,10 +38,11 @@ BuildRequires: %{python_module more-itertools}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module jaraco.packaging >= 8.2}
|
||||
BuildRequires: %{python_module pylons-sphinx-themes}
|
||||
BuildRequires: %{python_module rst.linker >= 1.9}
|
||||
BuildRequires: python3-Sphinx
|
||||
# Require offline feature introduced in gh#jaraco/jaraco.packaging#11
|
||||
BuildRequires: python3-jaraco.packaging >= 9.2
|
||||
BuildRequires: python3-pylons-sphinx-themes
|
||||
BuildRequires: python3-rst.linker >= 1.9
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -64,16 +63,15 @@ rm -rf jaraco.stream.egg-info
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
export JARACO_PACKAGING_SPHINX_WHEEL=./dist/jaraco.stream-%{version}-py3-none-any.whl
|
||||
sphinx-build -b html docs/ build/sphinx/html/
|
||||
rm -r build/sphinx/html/{.buildinfo,.doctrees}
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%check
|
||||
# work around for gh#pytest-dev/pytest#3396 until gh#pytest-dev/pytest#10088 lands in a pytest release
|
||||
touch jaraco/__init__.py
|
||||
cp -r %{python3_sitelib}/jaraco/* jaraco/
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user