Source: python-py
Version: 1.10.0-1
Severity: important
Tags: ftbfs fixed-upstream
User: [email protected]
Usertags: python3.11
Hi Maintainer
python-py will FTBFS once Python 3.11 is added as a supported version.
I've copied what I hope is the relevant part of the log below. This
appears to be fixed in the upstream 1.11.0 release.
Regards
Graham
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="{interpreter} -m pytest testing
--ignore={dir}/testing/log/test_warning.py
--ignore={dir}/testing/code/test_excinfo.py" \
LC_ALL=C.UTF-8 \
dh_auto_test
I: pybuild base:240: python3.11 -m pytest testing
--ignore=/<<PKGBUILDDIR>>/testing/log/test_warning.py
--ignore=/<<PKGBUILDDIR>>/testing/code/test_excinfo.py
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/py/_vendored_packages/apipkg/__init__.py",
line 145, in __makeattr
modpath, attrname = self.__map__[name]
~~~~~~~~~~~~^^^^^^
KeyError: '__spec__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 189, in _run_module_as_main
File "<frozen runpy>", line 148, in _get_module_details
File "<frozen runpy>", line 112, in _get_module_details
File "/usr/lib/python3/dist-packages/pytest/__init__.py", line 5, in <module>
from _pytest._code import ExceptionInfo
File "/usr/lib/python3/dist-packages/_pytest/_code/__init__.py",
line 2, in <module>
from .code import Code
File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line
43, in <module>
from _pytest._io import TerminalWriter
File "/usr/lib/python3/dist-packages/_pytest/_io/__init__.py", line
1, in <module>
from .terminalwriter import get_terminal_width
File "/usr/lib/python3/dist-packages/_pytest/_io/terminalwriter.py",
line 10, in <module>
from _pytest.compat import final
File "/usr/lib/python3/dist-packages/_pytest/compat.py", line 35, in <module>
LEGACY_PATH = py.path. local
^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/py/_vendored_packages/apipkg/__init__.py",
line 152, in __makeattr
result = importobj(modpath, attrname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/py/_vendored_packages/apipkg/__init__.py",
line 72, in importobj
module = __import__(modpath, None, None, ['__doc__'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked
File "/<<PKGBUILDDIR>>/py/_vendored_packages/apipkg/__init__.py",
line 150, in __makeattr
raise AttributeError(name)
AttributeError: __spec__
E: pybuild pybuild:379: test: plugin custom failed with: exit code=1:
python3.11 -m pytest testing
--ignore=/<<PKGBUILDDIR>>/testing/log/test_warning.py
--ignore=/<<PKGBUILDDIR>>/testing/code/test_excinfo.py