Package: src:afew
Version: 3.0.1-10
User: [email protected]
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important
Hi!
While rebuilding the python related packages against the Python 3.15rc2
version we found that afew fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4855991/
From the log, the error seems to be:
==================================== ERRORS
====================================
_ ERROR collecting
.pybuild/cpython3_3.15/build/afew/tests/test_dkimvalidityfilter.py _
afew/tests/test_dkimvalidityfilter.py:11: in <module>
from afew.filters.DKIMValidityFilter import DKIMValidityFilter
afew/filters/__init__.py:8: in <module>
for filename in glob.glob1(os.path.dirname(__file__), '*.py')
^^^^^^^^^^
E AttributeError: module 'glob' has no attribute 'glob1'. Did you mean
'.glob' instead of '.glob1'?
_ ERROR collecting
.pybuild/cpython3_3.15/build/afew/tests/test_headermatchingfilter.py _
afew/tests/test_headermatchingfilter.py:8: in <module>
from afew.filters.HeaderMatchingFilter import HeaderMatchingFilter
afew/filters/__init__.py:8: in <module>
for filename in glob.glob1(os.path.dirname(__file__), '*.py')
^^^^^^^^^^
E AttributeError: module 'glob' has no attribute 'glob1'. Did you mean
'.glob' instead of '.glob1'?
=========================== short test summary info
============================
ERROR afew/tests/test_dkimvalidityfilter.py - AttributeError: module
'glob' h...
ERROR afew/tests/test_headermatchingfilter.py - AttributeError: module
'glob'...
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection
!!!!!!!!!!!!!!!!!!!!
============================== 2 errors in 0.14s
===============================
This is caused by glob.glob1 getting removed. See
https://docs.python.org/3.15/whatsnew/3.15.html#glob:
Removed the undocumented glob.glob0() and glob.glob1() functions, which
have been deprecated since Python 3.13. Use glob.glob() and pass a
directory to its root_dir argument instead. (Contributed by Barney Gale
in gh-137466.)
Setting the severity to important for now. Once Python 3.15 is released
and later added to python3-defaults, this bug will become release
critical.
--
Regards,
Marga