Accepting request 698220 from home:mcalabkova:branches:devel:languages:python

- update to version 0.3.0
  * Ensure '--tocfile' isn't configured for Sphinx < 1.8
  * Support more configuration options
  * fix the dist name used to get the version after installation
- Launching tests using multibuild. It just did not work without it.

OBS-URL: https://build.opensuse.org/request/show/698220
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-apidoc?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal 2019-04-27 08:21:02 +00:00 committed by Git OBS Bridge
parent 3736b086b8
commit b3ec4cb52b
5 changed files with 37 additions and 13 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Apr 26 12:46:35 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- update to version 0.3.0
* Ensure '--tocfile' isn't configured for Sphinx < 1.8
* Support more configuration options
* fix the dist name used to get the version after installation
- Launching tests using multibuild. It just did not work without it.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 7 20:49:39 UTC 2018 - Matej Cepl <mcepl@suse.com> Fri Dec 7 20:49:39 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-sphinxcontrib-apidoc # spec file for package python-sphinxcontrib-apidoc
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,15 +17,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-sphinxcontrib-apidoc %global flavor @BUILD_FLAVOR@%{nil}
Version: 0.2.1 %if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-sphinxcontrib-apidoc%{psuffix}
Version: 0.3.0
Release: 0 Release: 0
Summary: A Sphinx extension for running 'sphinx-apidoc' on each build Summary: A Sphinx extension for running 'sphinx-apidoc' on each build
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: http://www.sphinx-doc.org/ URL: http://www.sphinx-doc.org/
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-apidoc/sphinxcontrib-apidoc-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-apidoc/sphinxcontrib-apidoc-%{version}.tar.gz
BuildRequires: %{python_module pbr} BuildRequires: %{python_module pbr >= 4.0}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -33,9 +41,10 @@ Requires: python-Sphinx >= 1.6.0
Requires: python-pbr Requires: python-pbr
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module Sphinx >= 1.6.0} %if %{with test}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pytest >= 3.0} BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module sphinxcontrib-apidoc = %{version}}
%endif
# /SECTION # /SECTION
%python_subpackages %python_subpackages
@ -50,21 +59,24 @@ must be run before *sphinx-build*.
%setup -q -n sphinxcontrib-apidoc-%{version} %setup -q -n sphinxcontrib-apidoc-%{version}
%build %build
export PBR_VERSION=%{version}
%python_build %python_build
%install %install
export PBR_VERSION=%{version} %if !%{with test}
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check %check
export PBR_VERSION=%{version} %pytest tests
%python_exec setup.py test %endif
%if !%{with test}
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc AUTHORS ChangeLog README.rst %doc AUTHORS ChangeLog README.rst
%{python_sitelib}/* %{python_sitelib}/*
%endif
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4051899e7546621d34ec3bae789ce21aa6288c8def0e3f8af9b333782f2305f4
size 13849

BIN
sphinxcontrib-apidoc-0.3.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.