[merge][#249908] avoid bad text wrapping when generating documentation
John Arbash Meinel
john at arbash-meinel.com
Wed Mar 25 12:13:06 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote:
> 2009/3/25 John Arbash Meinel <john at arbash-meinel.com>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Martin Pool wrote:
>>> https://bugs.edge.launchpad.net/bzr/+bug/249908 complains that the
>>> automatic text wrapping done by some code that generates documentation
>>> can sometimes produce output that's not valid ReST. I believe a
>>> similar problem occurred in the 1.13 release process.
>>>
>>> This also moves generate_docs.py which caused some confusion by being
>>> in the root directory, and helps autoresolve work again on NEWS.
>>>
>>>
>> === modified file 'setup.py'
>> - --- setup.py 2009-03-06 20:42:40 +0000
>> +++ setup.py 2009-03-19 03:50:48 +0000
>> @@ -148,7 +148,7 @@
>> def run(self):
>> build.run(self)
>>
>> - - import generate_docs
>> + import tools.generate_docs
>> generate_docs.main(argv=["bzr", "man"])
>>
>>
>> ^- This is clearly broken, but otherwise
>>
>> BB:tweak
>
> Well, it was a lazy change to cope with that script now being inside
> the tools directory, relative to where setup.py runs. Maybe we should
> modify sys.path instead?
>
import tools.generate_docs
tools.generate_docs(...)
or
from tools import generate_docs
generate_docs(...)
You just have to access it by the variable you imported it as. Sorry I
was a bit terse originally.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknKH9IACgkQJdeBCYSNAAPUyQCgprOlvv+QIaJtY9r/wG2oEtUK
LK0AoLVvTqk/QMoXkl4AZ5xrMuy93Fis
=05JL
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list