Source: python-pytest-toolbox
Version: 0.4-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:310: python3.12 setup.py config 
> running config
> I: pybuild base:310: python3.11 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:310: /usr/bin/python3.12 setup.py build 
> running build
> running build_py
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/version.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/main.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/comparison.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/pytest_toolbox
> running egg_info
> creating pytest_toolbox.egg-info
> writing pytest_toolbox.egg-info/PKG-INFO
> writing dependency_links to pytest_toolbox.egg-info/dependency_links.txt
> writing entry points to pytest_toolbox.egg-info/entry_points.txt
> writing requirements to pytest_toolbox.egg-info/requires.txt
> writing top-level names to pytest_toolbox.egg-info/top_level.txt
> writing manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
> reading manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
> I: pybuild base:310: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/version.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/main.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build/pytest_toolbox
> copying pytest_toolbox/comparison.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build/pytest_toolbox
> running egg_info
> writing pytest_toolbox.egg-info/PKG-INFO
> writing dependency_links to pytest_toolbox.egg-info/dependency_links.txt
> writing entry points to pytest_toolbox.egg-info/entry_points.txt
> writing requirements to pytest_toolbox.egg-info/requires.txt
> writing top-level names to pytest_toolbox.egg-info/top_level.txt
> reading manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:314: cp -r /<<PKGBUILDDIR>>/tests 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build; python3.12 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: timeout-2.2.0
> timeout: 10.0s
> timeout method: signal
> timeout func_only: False
> collected 20 items
> 
> tests/test_comparison.py FFFF......                                      [ 
> 50%]
> tests/test_methods.py ..........                                         
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ____________________________ test_close_to_now_true 
> ____________________________
> 
>     def test_close_to_now_true():
> >       c2n = CloseToNow()
> 
> tests/test_comparison.py:10: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <[AttributeError("'CloseToNow' object has no attribute 'match'") 
> raised in repr()] CloseToNow object at 0x7fa92a04d0a0>
> delta = 2
> 
>     def __init__(self, delta=2):
>         self.delta: float = delta
> >       self.now = datetime.utcnow()
> E       DeprecationWarning: datetime.datetime.utcnow() is deprecated and 
> scheduled for removal in a future version. Use timezone-aware objects to 
> represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
> 
> pytest_toolbox/comparison.py:11: DeprecationWarning
> __________________________ test_close_to_now_true_dt 
> ___________________________
> 
>     def test_close_to_now_true_dt():
> >       assert datetime.utcnow() == CloseToNow()
> E       DeprecationWarning: datetime.datetime.utcnow() is deprecated and 
> scheduled for removal in a future version. Use timezone-aware objects to 
> represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
> 
> tests/test_comparison.py:17: DeprecationWarning
> ___________________________ test_close_to_now_false 
> ____________________________
> 
>     def test_close_to_now_false():
> >       c2n = CloseToNow()
> 
> tests/test_comparison.py:21: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <[AttributeError("'CloseToNow' object has no attribute 'match'") 
> raised in repr()] CloseToNow object at 0x7fa92a08e690>
> delta = 2
> 
>     def __init__(self, delta=2):
>         self.delta: float = delta
> >       self.now = datetime.utcnow()
> E       DeprecationWarning: datetime.datetime.utcnow() is deprecated and 
> scheduled for removal in a future version. Use timezone-aware objects to 
> represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
> 
> pytest_toolbox/comparison.py:11: DeprecationWarning
> _____________________________ test_clow_to_now_tz 
> ______________________________
> 
>     def test_clow_to_now_tz():
>         diff = timedelta(hours=2)
> >       dt = datetime.utcnow().replace(tzinfo=timezone(offset=diff)) + diff
> E       DeprecationWarning: datetime.datetime.utcnow() is deprecated and 
> scheduled for removal in a future version. Use timezone-aware objects to 
> represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
> 
> tests/test_comparison.py:29: DeprecationWarning
> =========================== short test summary info 
> ============================
> FAILED tests/test_comparison.py::test_close_to_now_true - 
> DeprecationWarning:...
> FAILED tests/test_comparison.py::test_close_to_now_true_dt - 
> DeprecationWarni...
> FAILED tests/test_comparison.py::test_close_to_now_false - 
> DeprecationWarning...
> FAILED tests/test_comparison.py::test_clow_to_now_tz - DeprecationWarning: 
> da...
> ========================= 4 failed, 16 passed in 0.19s 
> =========================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build; python3.12 -m 
> pytest tests
> I: pybuild pybuild:314: cp -r /<<PKGBUILDDIR>>/tests 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build; python3.11 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: timeout-2.2.0
> timeout: 10.0s
> timeout method: signal
> timeout func_only: False
> collected 20 items
> 
> tests/test_comparison.py ..........                                      [ 
> 50%]
> tests/test_methods.py ..........                                         
> [100%]
> 
> ============================== 20 passed in 0.21s 
> ==============================
> I: pybuild pybuild:340: rm -rf 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-toolbox/build/tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
> 3.11" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-pytest-toolbox_0.4-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to