DEP8 failure due to removed distutils

Bug #2054309 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-sparkpost (Ubuntu)
Fix Released
High
Andreas Hasenack

Bug Description

distutils was removed from python 3.12, and this package's dep8 tests use distutils.version.StrictVersion.

699s _________________ ERROR collecting test/django/test_message.py _________________
699s ImportError while importing test module '/tmp/autopkgtest.r7C2pp/build.GWg/src/test/django/test_message.py'.
699s Hint: make sure your test modules/packages have valid Python names.
699s Traceback:
699s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
699s return _bootstrap._gcd_import(name[level:], package, level)
699s test/django/test_message.py:7: in <module>
699s from .utils import at_least_version
699s test/django/utils.py:1: in <module>
699s from distutils.version import StrictVersion
699s E ModuleNotFoundError: No module named 'distutils'

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Changed in python-sparkpost (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-sparkpost - 1.3.10-2ubuntu1

---------------
python-sparkpost (1.3.10-2ubuntu1) noble; urgency=medium

  * distutils was removed in python 3.12. Replace it with the packaging
    module (LP: #2054309):
    - d/p/replace-distutils.patch: use packaging.version.Version
    - d/t/control: drop python3-distutils test dependency, no longer
      needed

 -- Andreas Hasenack <email address hidden> Mon, 19 Feb 2024 10:19:52 -0300

Changed in python-sparkpost (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.