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)

2023-01-21 Thread Andreas Tille
Am Fri, Jan 20, 2023 at 04:24:07PM -0500 schrieb Éric Araujo: > Le 20/01/2023 à 16:21, FC Stegerman a écrit : > > Should that not use "func" instead of "inspect.getframeinfo"? > > Yes of course! I tested in a terminal to give valid code and forgot to > replace my example function with the

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)

2023-01-20 Thread Éric Araujo
Le 20/01/2023 à 16:21, FC Stegerman a écrit : Should that not use "func" instead of "inspect.getframeinfo"? Yes of course! I tested in a terminal to give valid code and forgot to replace my example function with the original variable name. Thanks!

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)

2023-01-20 Thread FC Stegerman
* Éric Araujo [2023-01-20 22:01]: > 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) Should that not use "func" instead of

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)

2023-01-20 Thread Éric Araujo
Hello, Le 20/01/2023 à 15:33, Andreas Tille a écrit : I finally do not have an idea how to replace: Handler 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.

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)

2023-01-20 Thread Andreas Tille
Control: tags -1 help Hi, I think I have fixed the numpy 1.24 issues that were causing this build failure. Unfortunately there are also numpydoc issues and I did not found documentation about this when doing a web search. I failed finding something for inspect.formatargspec which I simply