[med-svn] [Git][med-team/qiime][master] Try to fix Python3.12 issue ... but failed

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Feb 23 21:51:39 GMT 2024



Andreas Tille pushed to branch master at Debian Med / qiime


Commits:
8200ecff by Andreas Tille at 2024-02-23T22:51:20+01:00
Try to fix Python3.12 issue ... but failed

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/python3.12.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+qiime (2024.2.0-2) UNRELEASED; urgency=medium
+
+  * Fix issue with self._raw_path for Python3.12
+
+ -- Andreas Tille <tille at debian.org>  Fri, 23 Feb 2024 16:24:14 +0100
+
 qiime (2024.2.0-1) unstable; urgency=medium
 
   * New upstream version


=====================================
debian/patches/python3.12.patch
=====================================
@@ -0,0 +1,20 @@
+--- a/qiime2/core/path.py
++++ b/qiime2/core/path.py
+@@ -106,7 +106,7 @@ class OutPath(OwnedPath):
+             # prevent a resource leak.
+             os.close(fd)
+         obj = super().__new__(cls, name)
+-        obj._destructor = weakref.finalize(obj, cls._destruct, str(obj))
++        obj._destructor = weakref.finalize(obj, cls._destruct, obj._raw_paths)
+         return obj
+ 
+     def __exit__(self, t, v, tb):
+@@ -126,7 +126,7 @@ class InternalDirectory(_ConcretePath):
+     @classmethod
+     def __new(cls, *args):
+         self = super().__new__(cls, *args)
+-        self._destructor = weakref.finalize(self, self._destruct, str(self))
++        self._destructor = weakref.finalize(self, self._destruct, self._raw_paths)
+         return self
+ 
+     def __new__(cls, *args, prefix=None):


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ python3.8.patch
 python3.9.patch
 enable_decorator_5.patch
 python3.10.patch
+python3.12.patch



View it on GitLab: https://salsa.debian.org/med-team/qiime/-/commit/8200ecffb473aae585f10830a1e95610e41df1c4

-- 
View it on GitLab: https://salsa.debian.org/med-team/qiime/-/commit/8200ecffb473aae585f10830a1e95610e41df1c4
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/20240223/24349650/attachment-0001.htm>


More information about the debian-med-commit mailing list