[merge][#249908] avoid bad text wrapping when generating documentation

Martin Pool mbp at canonical.com
Wed Mar 25 04:25:01 GMT 2009


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?

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list