[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-23 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks! Closing. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-23 Thread Karolina Surma
Karolina Surma added the comment: It looks good on my end, documentation builds just fine. Thank you! -- status: pending -> open ___ Python tracker ___

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-20 Thread Mark Dickinson
Mark Dickinson added the comment: I think this should be good now. -- resolution: -> fixed stage: patch review -> resolved status: open -> pending ___ Python tracker ___

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 533bff4e9fe221a7c9cf12795fd2d002e87bfa6a by Miss Islington (bot) in branch '3.9': bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798) (GH-26805)

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 139c5778c26aaf25b51fcfabd88c99ba728beaea by Miss Islington (bot) in branch '3.10': bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798) (GH-26804)

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25385 pull_request: https://github.com/python/cpython/pull/26804 ___ Python tracker

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +25386 pull_request: https://github.com/python/cpython/pull/26805 ___ Python tracker ___

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 291848195f85e23c01adb76d5a0ff9c6eb7f2614 by Mark Dickinson in branch 'main': bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798) https://github.com/python/cpython/commit/291848195f85e23c01adb76d5a0ff9c6eb7f2614

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in GH-26798 (not yet merged). With that change, the documentation builds cleanly for me with Python 3.9.5 / Sphinx 4.0.2 / blurb 1.0.8 / python-docs-theme 2021.5, using the command $ python -m sphinx -b html -W . build/html --

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-19 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: +25379 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/26798 ___ Python tracker ___

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-18 Thread Matej Cepl
Matej Cepl added the comment: Actually, for 3.8.10 I had to add one more keyword which confused Sphinx: default. -- nosy: +mcepl Added file: https://bugs.python.org/file50117/bpo44426-complex-keyword-sphinx.patch ___ Python tracker

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-18 Thread Mark Dickinson
Change by Mark Dickinson : -- assignee: docs@python -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks; this looks like an easy fix, then. No time right now, but I'll aim to get to it at some point before the end of the weekend, if no-one beats me to it. -- ___ Python tracker

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Karolina Surma
Karolina Surma added the comment: Thanks for the suggestion, I reran the build without -W option. Fortunately, the output shows that the reported errors shall be the only ones. Build logs from the test build for reference:

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. That one's a genuine keyword. Looks like what we probably need to do is get a list of all these errors, so that they can all be fixed at once. Presumably running without the "-W" flag would make that easier. --

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Karolina Surma
Karolina Surma added the comment: Thanks for the fix, this indeed worked. Documentation however still doesn't build successfully, this time with a traceback: Warning, treated as error: /builddir/build/BUILD/Python-3.10.0b2/Doc/c-api/object.rst:314:Error in declarator or parameters Error in

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-16 Thread Mark Dickinson
Mark Dickinson added the comment: > and we can certainly change it Done. Closing here, but I've opened a Sphinx issue at https://github.com/sphinx-doc/sphinx/issues/9354 -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed versions:

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-16 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset c689e0a7e2a25621da82f22cc64d089eae05e753 by Miss Islington (bot) in branch '3.10': bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'. (GH-26744) (GH-26760)

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-16 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 686c6f303a6e9e54b50401be0ae3dc6aa2fcf05a by Miss Islington (bot) in branch '3.9': bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'. (GH-26744) (GH-26761)

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +25346 pull_request: https://github.com/python/cpython/pull/26761 ___ Python tracker ___

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25345 pull_request: https://github.com/python/cpython/pull/26760 ___ Python tracker

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-16 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 7247f6f433846c6e37308a550e8e5eb6be379856 by Mark Dickinson in branch 'main': bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'. (GH-26744)

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-15 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +25329 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26744 ___ Python tracker ___

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: As a test, gcc and clang both seem happy to treat this as valid C. I think Sphinx is wrong to reject this. mdickinson@mirzakhani Desktop % cat test.c typedef struct { double real; double imag; } Py_complex; Py_complex _Py_c_neg(Py_complex complex);

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. It's probably not the best name, and we can certainly change it. But I'm a bit confused by the error message: `complex` isn't a keyword in either C or C++, so I'm not sure why Sphinx thinks it is. -- nosy: +mark.dickinson

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-15 Thread Karolina Surma
New submission from Karolina Surma : Hello all, I want to build Python 3.10~b2 documentation using Sphinx 4.0.2 (released in May 2021) as RPM in Fedora with aim to ship it in Fedora 35. The build fails with the following error: Warning, treated as error: