[med-svn] [Git][med-team/nitime][master] 2 commits: Actually and genuinely add a patch for numpydoc errors

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Sat Jan 21 05:15:30 GMT 2023



Nilesh Patra pushed to branch master at Debian Med / nitime


Commits:
fb7ee8a9 by Nilesh Patra at 2023-01-21T10:28:32+05:30
Actually and genuinely add a patch for numpydoc errors

- - - - -
4de7d82a by Nilesh Patra at 2023-01-21T10:29:16+05:30
Upload to unstable

- - - - -


2 changed files:

- debian/changelog
- debian/patches/numpydoc_1.24.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,11 +1,12 @@
-nitime (0.9-5) UNRELEASED; urgency=medium
+nitime (0.9-5) unstable; urgency=medium
 
-  * Team upload.
-  * Adapt to numpy 1.24
-    Closes: #1029245
-  * Fix numpydoc 1.24 issues
+  [ Andreas Tille ]
+  * Adapt to numpy 1.24 (Closes: #1029245)
+
+  [ Nilesh Patra ]
+  * Actually and genuinely add a patch for numpydoc errors
 
- -- Andreas Tille <tille at debian.org>  Fri, 20 Jan 2023 19:21:34 +0100
+ -- Nilesh Patra <nilesh at debian.org>  Sat, 21 Jan 2023 10:28:38 +0530
 
 nitime (0.9-4) unstable; urgency=medium
 


=====================================
debian/patches/numpydoc_1.24.patch
=====================================
@@ -1,18 +1,18 @@
-Description: Adapt to numpydoc 1.24
+Description: Fix python3.11 related errors in doc spec
 Bug-Debian: https://bugs.debian.org/1029245
-Author: Andreas Tille <tille at debian.org>
-Last-Update: Fri, 20 Jan 2023 19:21:34 +0100
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: Fri, 21 Jan 2023 10:27:25 +0530
 
 --- a/doc/sphinxext/docscrape.py
 +++ b/doc/sphinxext/docscrape.py
-@@ -428,8 +428,8 @@ class FunctionDoc(NumpyDocString):
+@@ -428,8 +428,8 @@
              func, func_name = self.get_func()
              try:
                  # try to read signature
 -                argspec = inspect.getargspec(func)
 -                argspec = inspect.formatargspec(*argspec)
-+                argspec = inspect.getfullargspec(func)
-+                # FIXME: No idea what to do here - just commenting it out# argspec = inspect.formatargspec(*argspec)
++                argspec = inspect.signature(func)
++                argspec = str(argspec)
                  argspec = argspec.replace('*','\*')
                  signature = '%s%s' % (func_name, argspec)
              except TypeError as e:



View it on GitLab: https://salsa.debian.org/med-team/nitime/-/compare/039897c46ec436a513463fcfa997d02dcbea1417...4de7d82ab12a9c8472041c81628e828d13212914

-- 
View it on GitLab: https://salsa.debian.org/med-team/nitime/-/compare/039897c46ec436a513463fcfa997d02dcbea1417...4de7d82ab12a9c8472041c81628e828d13212914
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20230121/7ba4fb06/attachment-0001.htm>


More information about the debian-med-commit mailing list