Browse Source

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
tags/3.0.0
Stephen Finucane 2 years ago
parent
commit
1ed8531095
3 changed files with 0 additions and 8 deletions
  1. 0
    5
      pbr/builddoc.py
  2. 0
    1
      pbr/hooks/commands.py
  3. 0
    2
      pbr/packaging.py

+ 0
- 5
pbr/builddoc.py View File

@@ -227,8 +227,3 @@ class LocalBuildDoc(setup_command.BuildDoc):
227 227
         # handle Sphinx < 1.5.0
228 228
         if not hasattr(self, 'warning_is_error'):
229 229
             self.warning_is_error = False
230
-
231
-
232
-class LocalBuildLatex(LocalBuildDoc):
233
-    builders = ['latex']
234
-    command_name = 'build_sphinx_latex'

+ 0
- 1
pbr/hooks/commands.py View File

@@ -49,7 +49,6 @@ class CommandsConfig(base.BaseConfig):
49 49
 
50 50
         if packaging.have_sphinx():
51 51
             self.add_command('pbr.builddoc.LocalBuildDoc')
52
-            self.add_command('pbr.builddoc.LocalBuildLatex')
53 52
 
54 53
         if os.path.exists('.testr.conf') and packaging.have_testr():
55 54
             # There is a .testr.conf file. We want to use it.

+ 0
- 2
pbr/packaging.py View File

@@ -536,11 +536,9 @@ try:
536 536
     # Import the symbols from their new home so the package API stays
537 537
     # compatible.
538 538
     LocalBuildDoc = builddoc.LocalBuildDoc
539
-    LocalBuildLatex = builddoc.LocalBuildLatex
540 539
 except ImportError:
541 540
     _have_sphinx = False
542 541
     LocalBuildDoc = None
543
-    LocalBuildLatex = None
544 542
 
545 543
 
546 544
 def have_sphinx():

Loading…
Cancel
Save