Merge lp:~javier.collado/utah/bug1076437 into lp:utah

Proposed by Javier Collado
Status: Merged
Approved by: Javier Collado
Approved revision: 738
Merged at revision: 737
Proposed branch: lp:~javier.collado/utah/bug1076437
Merge into: lp:utah
Diff against target: 103 lines (+22/-22)
1 file modified
docs/source/conf.py (+22/-22)
To merge this branch: bzr merge lp:~javier.collado/utah/bug1076437
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
Review via email: mp+133513@code.launchpad.net

Description of the change

This branch fixes the problem to build the documentation in readthedocs.org

Aside from that, version has been updated to be in sync with debian/changelog and a few pep8 errors in the configuration file have been fixed.

To make sure that the documentation now builds fine I created a temporary project that you can take a look at it here:

https://utah-test.readthedocs.org/en/latest/

To post a comment you must log in.
Revision history for this message
Max Brustkern (nuclearbob) wrote :

Looks good to me.

As a question, on lines 17-20, it looks like general parenthesis continuation is done with 4 spaces rather than 8. Is that the standard we should be using elsewhere if we're not trying to line things up with the parenthesis?

review: Approve
Revision history for this message
Javier Collado (javier.collado) wrote :

@Max

Yes, there are some warnings/errors in the new version of the pep8 (tool)
that address over/under-indentation.

What PEP8 (document) says, with regard to that is:
---
Use 4 spaces per indentation level.

For really old code that you don't want to mess up, you can continue to use 8-space tabs.

Continuation lines should align wrapped elements either vertically using Python's implicit line joining inside parentheses, brackets and braces, or using a hanging indent. When using a hanging indent the following considerations should be applied; there should be no arguments on the first line and further indentation should be used to clearly distinguish itself as a continuation line.
---

To get some small examples you can use: "pep8 --show-pep8 <file>". Anyway, as usual,
my advice is to integrate that tool (or pyflakes) into your preferred editor
and get the warnings/errors as you write.

Once all those issues are continuously highlighted, they get so annoying that you end up
fixing them sooner or later.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/source/conf.py'
2--- docs/source/conf.py 2012-11-07 09:15:44 +0000
3+++ docs/source/conf.py 2012-11-08 16:27:04 +0000
4@@ -64,7 +64,7 @@
5 # Mock all third party modules not available in the readthedocs.org environment
6 for mod_name in ('psutil', 'yaml', 'paramiko', 'jsonschema', 'libvirt',
7 'bzrlib', 'bzrlib.builtins', 'bzrlib.plugin', 'bzrlib.errors',
8- 'apt', 'apt.cache'):
9+ 'apt', 'apt.cache', 'netifaces'):
10 sys.modules[mod_name] = ModuleMock(mod_name)
11
12
13@@ -74,11 +74,11 @@
14
15 help_lines = parser.format_help().splitlines()
16 options_lines = itertools.dropwhile(
17- lambda l: l != 'optional arguments:',
18- help_lines) # Drop usage
19+ lambda l: l != 'optional arguments:',
20+ help_lines) # Drop usage
21 options_lines = itertools.takewhile(
22- lambda l: bool(l),
23- options_lines) # Drop epilog
24+ lambda l: bool(l),
25+ options_lines) # Drop epilog
26 options_lines.next() # Drop first line
27
28 def fix_line(line):
29@@ -169,9 +169,9 @@
30 # built documents.
31 #
32 # The short X.Y version.
33-version = '0.4'
34+version = '0.5'
35 # The full version, including alpha/beta/rc tags.
36-release = '0.4'
37+release = '0.5'
38
39 # The language for content autogenerated by Sphinx. Refer to documentation
40 # for a list of supported languages.
41@@ -292,22 +292,22 @@
42 # -- Options for LaTeX output -------------------------------------------------
43
44 latex_elements = {
45-# The paper size ('letterpaper' or 'a4paper').
46-#'papersize': 'letterpaper',
47-
48-# The font size ('10pt', '11pt' or '12pt').
49-#'pointsize': '10pt',
50-
51-# Additional stuff for the LaTeX preamble.
52-#'preamble': '',
53+ # The paper size ('letterpaper' or 'a4paper').
54+ #'papersize': 'letterpaper',
55+
56+ # The font size ('10pt', '11pt' or '12pt').
57+ #'pointsize': '10pt',
58+
59+ # Additional stuff for the LaTeX preamble.
60+ #'preamble': '',
61 }
62
63 # Grouping the document tree into LaTeX files. List of tuples
64 # (source start file, target name, title, author,
65 # documentclass [howto/manual]).
66 latex_documents = [
67- ('index', 'UTAH.tex', u'UTAH Documentation',
68- u'Canonical Ltd', 'manual'),
69+ ('index', 'UTAH.tex', u'UTAH Documentation',
70+ u'Canonical Ltd', 'manual'),
71 ]
72
73 # The name of an image file (relative to this directory) to place at the top of
74@@ -339,14 +339,14 @@
75 ('man/utah', 'utah', u'UTAH client test runner',
76 [u'Canonical Ltd'], 1),
77 ('man/run_install_test.py', 'run_install_test.py',
78- u'UTAH server test runner (provisioning)', [u'Canonical Ltd'], 1),
79+ u'UTAH server test runner (provisioning)', [u'Canonical Ltd'], 1),
80 ('man/run_test_cobbler.py', 'run_test_cobbler.py',
81 u'UTAH server test runner (physical hardware)', [u'Canonical Ltd'], 1),
82 ('man/run_test_vm.py', 'run_test_vm.py',
83 u'UTAH server test runner (virtual hardware)',
84 [u'Canonical Ltd'], 1),
85 ('man/run_utah_tests.py', 'run_utah_tests.py',
86- u'UTAH server test runner (any hardware)', [u'Canonical Ltd'], 1),
87+ u'UTAH server test runner (any hardware)', [u'Canonical Ltd'], 1),
88 ]
89
90 # If true, show URL addresses after external links.
91@@ -359,9 +359,9 @@
92 # (source start file, target name, title, author,
93 # dir menu entry, description, category)
94 texinfo_documents = [
95- ('index', 'UTAH', u'UTAH Documentation',
96- u'Canonical Ltd', 'UTAH', 'One line description of project.',
97- 'Miscellaneous'),
98+ ('index', 'UTAH', u'UTAH Documentation',
99+ u'Canonical Ltd', 'UTAH', 'One line description of project.',
100+ 'Miscellaneous'),
101 ]
102
103 # Documents to append as an appendix to all manuals.

Subscribers

People subscribed via source and target branches