Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4)

2020-05-27 Thread Diego M. Rodriguez
On 5/26/20 11:06 PM, Scott Talbert wrote:
> It looks like it's a bug in sphinx.

I'm suspecting the same - and I was also not able to reproduce it in
a local installation (pip-installed sphinx trying to match the
dependencies and versions). However, it seems the culprit is at
"case/mock.py":51:

call = mock.call

In case a new upload of sphinx does not land in time, perhaps a
workaround along the lines of:

diff --git a/docs/reference/case.mock.rst b/docs/reference/case.mock.rst
index 1a28a5c..2b6562c 100644
--- a/docs/reference/case.mock.rst
+++ b/docs/reference/case.mock.rst
@@ -9,3 +9,4 @@
 .. automodule:: case.mock
 :members:
 :undoc-members:
+:exclude-members: call

might be acceptable? While not the ideal solution, the upstream
generated docs [1] end up including the docstring from
"unittest.mock._Call" [2] for that member, which might not provide too
much relevant info for end users anyway (and the inheritance from
"tuple" might be related to the original error).

[1] 
https://case.readthedocs.io/en/latest/reference/case.mock.html#case.mock.call
[2] https://github.com/python/cpython/blob/3.8/Lib/unittest/mock.py#L2352

-- 
Diego M. Rodriguez



signature.asc
Description: OpenPGP digital signature


Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4)

2020-05-27 Thread Dmitry Shachnev
Hi all!

On Tue, May 26, 2020 at 05:06:16PM -0400, Scott Talbert wrote:
> On Tue, 26 May 2020, Thomas Goirand wrote:
> > Hi there!
> >
> > Does any of you knows how to fix this bug?
> > https://bugs.debian.org/959558
> >
> > Almost all of OpenStack can removed from Bullseye if not fixed in time,
> > so I tried to fix, but couldn't.
>
> It looks like it's a bug in sphinx.  I tried sphinx 3.0.4 and it seems to
> work fine.  2.4.4 still has the problem, however.
>
> Dmitry, do you plan to update to sphinx 3.0.x soon?

3.x won't happen soon, but I will fix this bug in the next Sphinx 2.4 upload.

--
Dmitry Shachnev


signature.asc
Description: PGP signature