summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2017-04-12 11:31:41 +0100
committerStephen Finucane <sfinucan@redhat.com>2017-04-14 18:05:42 +0000
commit1ed853109574e4ae6f8dae932f292b751749f747 (patch)
tree2b669fdf30f1de5a27f98894eab34b3bc0f41993
parent54fb6e71b71b8467352edd745399940444aac435 (diff)
downloadpbr-1ed853109574e4ae6f8dae932f292b751749f747.tar.gz
Remove 'build_sphinx_latex'
codesearch.o.o shows a single, long-dead project using this [1]. Let's just remove it and push people to set 'builders' instead in they really want LaTeX. [1] http://codesearch.openstack.org/?q=build_sphinx_latex Change-Id: I820d9c540ae81717d7b33bbb4d2a4031b529b52c
-rw-r--r--pbr/builddoc.py5
-rw-r--r--pbr/hooks/commands.py1
-rw-r--r--pbr/packaging.py2
3 files changed, 0 insertions, 8 deletions
diff --git a/pbr/builddoc.py b/pbr/builddoc.py
index eedbd16..1359624 100644
--- a/pbr/builddoc.py
+++ b/pbr/builddoc.py
@@ -227,8 +227,3 @@ class LocalBuildDoc(setup_command.BuildDoc):
# handle Sphinx < 1.5.0
if not hasattr(self, 'warning_is_error'):
self.warning_is_error = False
-
-
-class LocalBuildLatex(LocalBuildDoc):
- builders = ['latex']
- command_name = 'build_sphinx_latex'
diff --git a/pbr/hooks/commands.py b/pbr/hooks/commands.py
index d9b56b5..aa4db70 100644
--- a/pbr/hooks/commands.py
+++ b/pbr/hooks/commands.py
@@ -49,7 +49,6 @@ class CommandsConfig(base.BaseConfig):
if packaging.have_sphinx():
self.add_command('pbr.builddoc.LocalBuildDoc')
- self.add_command('pbr.builddoc.LocalBuildLatex')
if os.path.exists('.testr.conf') and packaging.have_testr():
# There is a .testr.conf file. We want to use it.
diff --git a/pbr/packaging.py b/pbr/packaging.py
index 484cd24..a3527c9 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -536,11 +536,9 @@ try:
# Import the symbols from their new home so the package API stays
# compatible.
LocalBuildDoc = builddoc.LocalBuildDoc
- LocalBuildLatex = builddoc.LocalBuildLatex
except ImportError:
_have_sphinx = False
LocalBuildDoc = None
- LocalBuildLatex = None
def have_sphinx():