From 8905814e0e4eaf5803314b9c5947a9543511367435cf380a80f45d7f946ab43d Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 28 Sep 2022 15:17:30 +0000 Subject: [PATCH] - Update to v3.4.1 - Add multibuild support to run tests - Remove sphinx-testing dependecy OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-tabs?expand=0&rev=5 --- _multibuild | 3 +++ python-sphinx-tabs.changes | 7 +++++++ python-sphinx-tabs.spec | 34 ++++++++++++++++++++++++++-------- sphinx-tabs-3.1.0.tar.gz | 3 --- v3.4.1.tar.gz | 3 +++ 5 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 _multibuild delete mode 100644 sphinx-tabs-3.1.0.tar.gz create mode 100644 v3.4.1.tar.gz diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-sphinx-tabs.changes b/python-sphinx-tabs.changes index 32ec87d..34ed2c7 100644 --- a/python-sphinx-tabs.changes +++ b/python-sphinx-tabs.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Sep 28 15:16:23 UTC 2022 - Daniel Garcia + +- Update to v3.4.1 +- Add multibuild support to run tests +- Remove sphinx-testing dependecy + ------------------------------------------------------------------- Wed Nov 17 11:03:54 UTC 2021 - Andreas Schneider diff --git a/python-sphinx-tabs.spec b/python-sphinx-tabs.spec index 92ff5cc..124a642 100644 --- a/python-sphinx-tabs.spec +++ b/python-sphinx-tabs.spec @@ -1,7 +1,7 @@ # # spec file for package python-sphinx-tabs # -# Copyright (c) 2021 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 @@ -20,27 +20,38 @@ %if 0%{?sle_version} && 0%{?sle_version} <= 150300 %define pythons python3 %endif -# TODO: use github tarball because upstrean dont distribute tests via pypi %bcond_with test +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif Name: python-sphinx-tabs -Version: 3.1.0 +Version: 3.4.1 Release: 0 Summary: Tabbed views for Sphinx License: MIT Group: Development/Languages/Python -URL: https://github.com/djungelorm/sphinx-tabs -Source: https://files.pythonhosted.org/packages/source/s/sphinx-tabs/sphinx-tabs-%{version}.tar.gz +URL: https://github.com/executablebooks/sphinx-tabs +# Use the github tag instead of the pythonhosted.org to get the tests folder +Source: https://github.com/executablebooks/sphinx-tabs/archive/refs/tags/v%{version}.tar.gz BuildRequires: %{python_module Pygments} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module docutils} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pygments Requires: python-Sphinx Requires: python-docutils BuildArch: noarch %if %{with test} +BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module pytest-regressions} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module sphinx-testing} +BuildRequires: %{python_module sphinx-tabs = %{version}} %endif %python_subpackages @@ -54,14 +65,21 @@ Create tabbed content in Sphinx documentation when building HTML. %python_build %install +%if !%{with test} %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %if %{with test} %check -%pytest +# python-rinohtype is not available +%pytest -k 'not test_rinohtype_pdf' %endif +%if !%{with test} %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/sphinx_tabs +%{python_sitelib}/sphinx_tabs-%{version}*-info +%endif %changelog diff --git a/sphinx-tabs-3.1.0.tar.gz b/sphinx-tabs-3.1.0.tar.gz deleted file mode 100644 index 402b271..0000000 --- a/sphinx-tabs-3.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5eee2a869b1226e1f618f0c7ed267e5e3c24425565e6313cad80d00a7119694f -size 14916 diff --git a/v3.4.1.tar.gz b/v3.4.1.tar.gz new file mode 100644 index 0000000..124ee39 --- /dev/null +++ b/v3.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7ccc8fe4adf0c7957e84a59a5b536ef07da73fcebaf2f727adc3bee9062289d +size 524071