Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14855
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Éric Araujo <merwok@netwok.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Help with numpydoc needed (Was: Bug#1029245: nitime: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13) |
| Date | Fri, 20 Jan 2023 22:10:01 +0100 |
| Message-ID | <FQ6O5-1OvN-9@gated-at.bofh.it> (permalink) |
| References | <FPXrt-1IEg-29@gated-at.bofh.it> <FQ6l3-1O6j-1@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Jan 20 21:01:33 2023 |
| Old-Return-Path | <merwok@netwok.org> |
| X-Amavis-Spam-Status | No, score=-5.769 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, NICE_REPLY_A=-0.089, RCVD_IN_DNSWL_LOW=-0.7, SHIP_ID_INT=1] autolearn=no autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .netwok. - helo: .relay6-d.mail.gandi. - helo-domain: .gandi.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 |
| MIME-Version | 1.0 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
| Content-Language | en-US |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/20738 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/0b8fe1e4-cc56-550d-1bbb-e8bdee4ccf38@netwok.org |
| Approved | robomod@news.nic.it |
| Lines | 28 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 20 Jan 2023 16:01:09 -0500 |
| X-Original-Message-ID | <0b8fe1e4-cc56-550d-1bbb-e8bdee4ccf38@netwok.org> |
| X-Original-References | <Y8p0NjveNn9XtnXM@xanadu.blop.info> <Y8r6hBG68OsZdvH0@an3as.eu> |
| Xref | csiph.com linux.debian.maint.python:14855 |
Show key headers only | View raw
Hello,
Le 20/01/2023 à 15:33, Andreas Tille a écrit :
> I finally do not have an idea how to replace:
>
> Handler <function mangle_docstrings at 0x7fa9a393e3e0> for event 'autodoc-process-docstring' threw an exception (exception: 'FullArgSpec' object has no attribute 'replace')
>
> which you can find in the latest build log in Salsa CI.
tl;dr: replace the body of the try block with this:
argspec = inspect.signature(inspect.getframeinfo)
argspec = str(argspec).replace('*', '\\*')
signature = '%s%s' % (func_name, argspec)
The code does a string replace so that `*` characters in the function
signature (used for variadic args, variadic keyword args and separating
keyword-only args) get escaped to prevent interpretation by Sphinx as
emphasis markup.
The inspect.getfullargspec function returns a special object (a named
tuple), not a string. On the commented line in the patch, we see a call
to format.formatargspec which was meant to turn the FullArgSpec into a
string, but that function has been deprecated since 3.5, with an error
message pointing to the newer, better API: function signatures.
Cheers
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Help with numpydoc needed (Was: Bug#1029245: nitime: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13) Éric Araujo <merwok@netwok.org> - 2023-01-20 22:10 +0100
Re: Help with numpydoc needed (Was: Bug#1029245: nitime: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13) FC Stegerman <flx@obfusk.net> - 2023-01-20 22:30 +0100
Re: Help with numpydoc needed (Was: Bug#1029245: nitime: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13) Éric Araujo <merwok@netwok.org> - 2023-01-20 22:30 +0100
Re: Help with numpydoc needed (Was: Bug#1029245: nitime: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13) Andreas Tille <andreas@an3as.eu> - 2023-01-21 09:20 +0100
csiph-web