bdebstrap fails to build with python3-defaults 3.12

Bug #2051997 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bdebstrap (Debian)
Fix Released
Unknown
bdebstrap (Ubuntu)
Fix Released
Undecided
Unassigned
python3-defaults (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When building bdebstrap with python3-default 3.12 the following error occurs
------
usr/bin/python3.12 -m pylint --rcfile=/<<PKGBUILDDIR>>/tests/pylint.conf -- /<<PKGBUILDDIR>>/bdebstrap tests /<<PKGBUILDDIR>>/setup.py
FAIL
test_flake8 (tests.test_shellcheck.ShellcheckTestCase.test_flake8)
Test: Run shellcheck on Shell source code. ... Running following command:
shellcheck /<<PKGBUILDDIR>>/hooks/disable-units /<<PKGBUILDDIR>>/hooks/enable-units
ok

======================================================================
FAIL: test_pylint (tests.test_pylint.PylintTestCase.test_pylint)
Test: Run pylint on Python source code.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/test_pylint.py", line 74, in test_pylint
    self.fail("\n".join(msgs))
AssertionError: pylint found issues:
************* Module setup
/<<PKGBUILDDIR>>/setup.py:26:0: E0401: Unable to import 'distutils.log' (import-error)
/<<PKGBUILDDIR>>/setup.py:27:0: E0401: Unable to import 'distutils.command.build' (import-error)
/<<PKGBUILDDIR>>/setup.py:28:0: E0401: Unable to import 'distutils.command.clean' (import-error)
/<<PKGBUILDDIR>>/setup.py:57:4: C0116: Missing function or method docstring (missing-function-docstring)
/<<PKGBUILDDIR>>/setup.py:54:0: R0903: Too few public methods (1/2) (too-few-public-methods)
/<<PKGBUILDDIR>>/setup.py:65:4: C0116: Missing function or method docstring (missing-function-docstring)
/<<PKGBUILDDIR>>/setup.py:62:0: R0903: Too few public methods (1/2) (too-few-public-methods)

------

due to removal of distutils in python 3.12

Related branches

Vladimir Petko (vpa1977)
tags: added: update-excuse
Revision history for this message
Vladimir Petko (vpa1977) wrote :

We can either suppress linter errors, or upgrade setup.

Revision history for this message
Vladimir Petko (vpa1977) wrote :

bdebstrap piuparts install/upgrade/purge tests (OK)

Revision history for this message
Matthias Klose (doko) wrote :

NMUed

Changed in bdebstrap (Ubuntu):
status: New → In Progress
Changed in bdebstrap (Debian):
status: Unknown → New
Revision history for this message
Graham Inggs (ginggs) wrote :

This bug was fixed in the package bdebstrap - 0.6.0-1.1
Sponsored for Vladimir Petko (vpa1977)

---------------
bdebstrap (0.6.0-1.1) unstable; urgency=medium

  * Non-maintainer upload.

  [ Vladimir Petko ]
  * 001-disable-distutils-pylint.patch: disable pylint errors related to
    distutils removal in python 3.12 (LP: #2051997).
  * d/t/control: add dpkg-dev dependency to fix missing dpkg-
    architecture error in './system-testing bdebstrap' autopktest.

 -- Matthias Klose <email address hidden> Wed, 07 Feb 2024 01:00:50 +0100

Changed in bdebstrap (Ubuntu):
status: In Progress → Fix Released
Matthias Klose (doko)
Changed in python3-defaults (Ubuntu):
status: New → Invalid
Changed in bdebstrap (Debian):
status: New → 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.