Andreas Tille pushed to branch master at Debian Med / sepp
Commits: d5e95488 by Andreas Hasenack at 2022-02-04T14:19:53+00:00 Fix collections import under py3.10+ Closes: #1004968 - - - - - 1649634f by Andreas Tille at 2022-02-04T21:04:21+00:00 Merge branch 'salsa-py310-collections-import-fix' into 'master' Fix collections import under py3.10+ See merge request med-team/sepp!1 - - - - - 2 changed files: - + debian/patches/py310_collections_import.patch - debian/patches/series Changes: ===================================== debian/patches/py310_collections_import.patch ===================================== @@ -0,0 +1,25 @@ +Description: fix collections import + In python 3.10[1] deprecated aliases to Collections Abstract Base Classes from + the collections module have been removed. These imports must be done from + collections.abc. + . + 1. https://docs.python.org/3/whatsnew/3.10.html +Author: Andreas Hasenack <[email protected]> +Bug: https://github.com/smirarab/sepp/issues/117 +Bug-Debian: https://bugs.debian.org/1004968 +Bub-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/sepp/+bug/1959938 +Last-Update: 2022-02-03 +diff --git a/sepp/alignment.py b/sepp/alignment.py +index ada5de8..61e9adb 100644 +--- a/sepp/alignment.py ++++ b/sepp/alignment.py +@@ -26,7 +26,8 @@ import re + + from sepp.filemgr import open_with_intermediates + +-from collections import Mapping ++ ++from collections.abc import Mapping + import copy + from sepp import get_logger + import io ===================================== debian/patches/series ===================================== @@ -6,3 +6,4 @@ configuration_files_in_etc_and_per_user.patch deactivating_log_test.patch using_python3_interpreter.patch hmmbuild_path_for_testUPP.patch +py310_collections_import.patch View it on GitLab: https://salsa.debian.org/med-team/sepp/-/compare/6e23e0926c222a87ce369952e31daaf1cc62c6d5...1649634f854bbd90be268075fd40b9380203da43 -- View it on GitLab: https://salsa.debian.org/med-team/sepp/-/compare/6e23e0926c222a87ce369952e31daaf1cc62c6d5...1649634f854bbd90be268075fd40b9380203da43 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
