- drop upstreamed make_oslosphinx_optional.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=69
This commit is contained in:
parent
5a38c98683
commit
3e4dd6aa91
@ -1,37 +0,0 @@
|
|||||||
From ebd9ae850a18b26f37738a67b7e528896b249e40 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Bechtold <tbechtold@suse.com>
|
|
||||||
Date: Thu, 9 Mar 2017 11:29:48 +0100
|
|
||||||
Subject: [PATCH] Make oslosphinx optional
|
|
||||||
|
|
||||||
Avoid cyclic dependencies between pbr and oslosphinx. So if oslosphinx is not
|
|
||||||
available, continue to be able to generate the documentation.
|
|
||||||
|
|
||||||
Change-Id: I4c1f8ea5cded268388dab29931055223f8999c8a
|
|
||||||
---
|
|
||||||
doc/source/conf.py | 10 ++++++++--
|
|
||||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/doc/source/conf.py b/doc/source/conf.py
|
|
||||||
index 31003c1..f0a78ec 100644
|
|
||||||
--- a/doc/source/conf.py
|
|
||||||
+++ b/doc/source/conf.py
|
|
||||||
@@ -8,8 +8,14 @@ sys.path.insert(0, os.path.abspath('../..'))
|
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be
|
|
||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
|
||||||
-extensions = ['sphinx.ext.autodoc',
|
|
||||||
- 'oslosphinx']
|
|
||||||
+extensions = ['sphinx.ext.autodoc']
|
|
||||||
+# make oslosphinx optional to not increase the needed dependencies
|
|
||||||
+try:
|
|
||||||
+ import oslosphinx
|
|
||||||
+except ImportError:
|
|
||||||
+ pass
|
|
||||||
+else:
|
|
||||||
+ extensions.append('oslosphinx')
|
|
||||||
|
|
||||||
# autodoc generation is a bit aggressive and a nuisance when doing heavy
|
|
||||||
# text edit cycles.
|
|
||||||
--
|
|
||||||
1.9.1
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 23 15:21:37 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- drop upstreamed make_oslosphinx_optional.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 29 11:59:55 UTC 2017 - tbechtold@suse.com
|
Wed Mar 29 11:59:55 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@ -26,8 +26,6 @@ Group: Development/Languages/Python
|
|||||||
Url: http://pypi.python.org/pypi/pbr
|
Url: http://pypi.python.org/pypi/pbr
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pbr/pbr-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pbr/pbr-%{version}.tar.gz
|
||||||
Source1: python-pbr-rpmlintrc
|
Source1: python-pbr-rpmlintrc
|
||||||
# make_oslosphinx_optional.patch - https://review.openstack.org/#/c/443555/
|
|
||||||
Patch1: make_oslosphinx_optional.patch
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
# Documentation requirements:
|
# Documentation requirements:
|
||||||
BuildRequires: python3-Sphinx >= 1.1.2
|
BuildRequires: python3-Sphinx >= 1.1.2
|
||||||
@ -41,7 +39,6 @@ This package contains documentation files for python-pbr
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pbr-%{version}
|
%setup -q -n pbr-%{version}
|
||||||
%patch1 -p1
|
|
||||||
# Get rid of ugly build-time deps that require network:
|
# Get rid of ugly build-time deps that require network:
|
||||||
sed -i "s/, 'sphinx\.ext\.intersphinx'//" doc/source/conf.py
|
sed -i "s/, 'sphinx\.ext\.intersphinx'//" doc/source/conf.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user