diff -Nru python3-defaults-3.11.4/debian/changelog python3-defaults-3.11.4/debian/changelog --- python3-defaults-3.11.4/debian/changelog 2023-06-25 12:41:31.000000000 +0000 +++ python3-defaults-3.11.4/debian/changelog 2023-07-05 09:27:27.000000000 +0000 @@ -1,3 +1,28 @@ +python3-defaults (3.11.4-5) unstable; urgency=medium + + * Source-only upload. + + -- Piotr Ożarowski Wed, 05 Jul 2023 11:27:27 +0200 + +python3-defaults (3.11.4-4) unstable; urgency=high + + * Fix importlib.util import (-3 regression, closes: 1040316) + + -- Piotr Ożarowski Tue, 04 Jul 2023 19:49:27 +0200 + +python3-defaults (3.11.4-3) unstable; urgency=medium + + * debpython/interpreter.py: Stop using the imp module, removed in 3.12. + Closes: #1040261. + + -- Matthias Klose Tue, 04 Jul 2023 12:08:14 +0200 + +python3-defaults (3.11.4-2) experimental; urgency=medium + + * Add new binary package: python3-all-venv. Closes: #1039988. + + -- Stefano Rivera Sat, 01 Jul 2023 09:38:35 -0400 + python3-defaults (3.11.4-1) unstable; urgency=medium * Bump version to 3.11.4. diff -Nru python3-defaults-3.11.4/debian/control python3-defaults-3.11.4/debian/control --- python3-defaults-3.11.4/debian/control 2023-06-25 12:41:31.000000000 +0000 +++ python3-defaults-3.11.4/debian/control 2023-07-04 18:42:41.000000000 +0000 @@ -239,6 +239,21 @@ This package is a dependency package used as a build dependency for other packages to avoid hardcoded dependencies on specific Python 3 debug packages. +Package: python3-all-venv +Architecture: any +Multi-Arch: allowed +Depends: python3 (= ${binary:Version}), + python3-all (= ${binary:Version}), + python3-venv (= ${binary:Version}), + ${misc:Depends}, + python3.11-venv, +Description: package depending on all supported Python 3 venv modules + The package currently depends on python3.11-venv, in the future, dependencies + on jython (Python for a JVM) and ironpython (Python for Mono) may be added. + . + This package is a dependency package used as a build dependency for other + packages to avoid hardcoded dependencies on specific Python 3 venv packages. + Package: libpython3-all-dev Architecture: any Multi-Arch: same diff -Nru python3-defaults-3.11.4/debian/control.in python3-defaults-3.11.4/debian/control.in --- python3-defaults-3.11.4/debian/control.in 2023-02-15 10:07:48.000000000 +0000 +++ python3-defaults-3.11.4/debian/control.in 2023-07-04 15:31:43.000000000 +0000 @@ -239,6 +239,21 @@ This package is a dependency package used as a build dependency for other packages to avoid hardcoded dependencies on specific Python 3 debug packages. +Package: python3-all-venv +Architecture: any +Multi-Arch: allowed +Depends: python3 (= ${binary:Version}), + python3-all (= ${binary:Version}), + python3-venv (= ${binary:Version}), + ${misc:Depends}, + python3.11-venv, +Description: package depending on all supported Python 3 venv modules + The package currently depends on python3.11-venv, in the future, dependencies + on jython (Python for a JVM) and ironpython (Python for Mono) may be added. + . + This package is a dependency package used as a build dependency for other + packages to avoid hardcoded dependencies on specific Python 3 venv packages. + Package: libpython3-all-dev Architecture: any Multi-Arch: same diff -Nru python3-defaults-3.11.4/debpython/interpreter.py python3-defaults-3.11.4/debpython/interpreter.py --- python3-defaults-3.11.4/debpython/interpreter.py 2023-02-15 10:06:52.000000000 +0000 +++ python3-defaults-3.11.4/debpython/interpreter.py 2023-07-04 17:48:39.000000000 +0000 @@ -230,7 +230,7 @@ version = Version(version or self.version) if self.impl == 'cpython' and version << Version('3'): return '' - result = self._execute('import imp; print(imp.get_magic())', version) + result = self._execute('import importlib.util; print(importlib.util.MAGIC_NUMBER)', version) return eval(result) def magic_tag(self, version=None): @@ -243,7 +243,7 @@ version = Version(version or self.version) if self.impl == 'cpython' and version << Version('3.2'): return '' - return self._execute('import imp; print(imp.get_tag())', version) + return self._execute('import sys; print(sys.implementation.cache_tag)', version) def multiarch(self, version=None): """Return multiarch tag.""" diff -Nru python3-defaults-3.11.4/runtime.d/public_modules.rtremove python3-defaults-3.11.4/runtime.d/public_modules.rtremove --- python3-defaults-3.11.4/runtime.d/public_modules.rtremove 2018-06-05 21:35:36.000000000 +0000 +++ python3-defaults-3.11.4/runtime.d/public_modules.rtremove 2023-07-04 15:34:53.000000000 +0000 @@ -13,7 +13,7 @@ if [ "$VERSION" = 3.1 ]; then find /usr/lib/python3.1/dist-packages -name '*.py[co]' -delete else - TAG=`python$VERSION -c "import imp; print(imp.magic_tags[imp.get_magic()])"` \ + TAG=`python$VERSION -c "import sys; print(sys.implementation.cache_tag)"` \ find /usr/lib/python3/dist-packages -name "*.$TAG.py[co]" -delete find /usr/lib/python3/dist-packages -depth -empty -name '__pycache__' -delete fi