[Bug 2051997] Re: bdebstrap fails to build with python3-defaults 3.12

Vladimir Petko 2051997 at bugs.launchpad.net
Fri Feb 2 00:12:50 UTC 2024


We can either suppress linter errors, or upgrade setup.

** Also affects: bdebstrap (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2051997

Title:
  bdebstrap fails to build with python3-defaults 3.12

Status in bdebstrap package in Ubuntu:
  New
Status in python3-defaults package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bdebstrap/+bug/2051997/+subscriptions




More information about the foundations-bugs mailing list