Source: freezegun
Version: 0.3.15-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20211220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules build
> dh build --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> pybuild --configure -i python{version} -p "3.10 3.9"
> I: pybuild base:237: python3.10 setup.py config
> running config
> I: pybuild base:237: python3.9 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> pybuild --build -i python{version} -p "3.10 3.9"
> I: pybuild base:237: /usr/bin/python3.10 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build/freezegun
> copying freezegun/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build/freezegun
> copying freezegun/_async_coroutine.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build/freezegun
> copying freezegun/api.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build/freezegun
> copying freezegun/_async.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build/freezegun
> running egg_info
> creating freezegun.egg-info
> writing freezegun.egg-info/PKG-INFO
> writing dependency_links to freezegun.egg-info/dependency_links.txt
> writing requirements to freezegun.egg-info/requires.txt
> writing top-level names to freezegun.egg-info/top_level.txt
> writing manifest file 'freezegun.egg-info/SOURCES.txt'
> reading manifest file 'freezegun.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '__pycache__' found anywhere
> in distribution
> warning: no previously-included files matching '*.py[co]' found anywhere in
> distribution
> adding license file 'LICENSE'
> adding license file 'AUTHORS.rst'
> writing manifest file 'freezegun.egg-info/SOURCES.txt'
> I: pybuild base:237: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_freezegun/build/freezegun
> copying freezegun/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_freezegun/build/freezegun
> copying freezegun/_async_coroutine.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_freezegun/build/freezegun
> copying freezegun/api.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_freezegun/build/freezegun
> copying freezegun/_async.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_freezegun/build/freezegun
> running egg_info
> writing freezegun.egg-info/PKG-INFO
> writing dependency_links to freezegun.egg-info/dependency_links.txt
> writing requirements to freezegun.egg-info/requires.txt
> writing top-level names to freezegun.egg-info/top_level.txt
> reading manifest file 'freezegun.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '__pycache__' found anywhere
> in distribution
> warning: no previously-included files matching '*.py[co]' found anywhere in
> distribution
> adding license file 'LICENSE'
> adding license file 'AUTHORS.rst'
> writing manifest file 'freezegun.egg-info/SOURCES.txt'
> dh_auto_test -O--buildsystem=pybuild
> pybuild --test --test-pytest -i python{version} -p "3.10 3.9"
> I: pybuild base:237: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build; python3.10 -m pytest
> tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.1, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 109 items
>
> tests/test_asyncio.py .. [
> 1%]
> tests/test_class_import.py .............. [
> 14%]
> tests/test_datetimes.py .............s.....s.....s.s......s.F........... [
> 58%]
> .............s [
> 71%]
> tests/test_errors.py .. [
> 73%]
> tests/test_import_alias.py ... [
> 76%]
> tests/test_operations.py ......... [
> 84%]
> tests/test_pickle.py ... [
> 87%]
> tests/test_sqlite3.py .. [
> 88%]
> tests/test_ticking.py .s.... [
> 94%]
> tests/test_utils.py .. [
> 96%]
> tests/test_uuid.py .. [
> 98%]
> tests/test_warnings.py ..
> [100%]
>
> =================================== FAILURES
> ===================================
> ______________ Tester.test_class_decorator_respects_staticmethod
> _______________
>
> self = <tests.test_datetimes.Tester object at 0x7f19002c3eb0>
>
> def test_class_decorator_respects_staticmethod(self):
> > assert self.helper() == datetime.date(2012, 1, 14)
>
> tests/test_datetimes.py:422:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> args = (<tests.test_datetimes.Tester object at 0x7f19002c3eb0>,), kwargs = {}
> time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f19002c3dc0>
>
> def wrapper(*args, **kwargs):
> with self as time_factory:
> if self.as_arg:
> result = func(time_factory, *args, **kwargs)
> else:
> > result = func(*args, **kwargs)
> E TypeError: Tester.helper() takes 0 positional arguments but 1
> was given
>
> freezegun/api.py:735: TypeError
> =============================== warnings summary
> ===============================
> .pybuild/cpython3_3.10_freezegun/build/tests/test_asyncio.py::test_time_freeze_coroutine
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build/tests/test_asyncio.py:19:
> DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8,
> use "async def" instead
> def frozen_coroutine():
>
> .pybuild/cpython3_3.10_freezegun/build/tests/test_asyncio.py::test_time_freeze_coroutine
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build/tests/test_asyncio.py:22:
> DeprecationWarning: There is no current event loop
> asyncio.get_event_loop().run_until_complete(frozen_coroutine())
>
> .pybuild/cpython3_3.10_freezegun/build/tests/test_asyncio.py::test_time_freeze_async_def
> <string>:5: DeprecationWarning: There is no current event loop
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info
> ============================
> FAILED
> tests/test_datetimes.py::Tester::test_class_decorator_respects_staticmethod
> ============= 1 failed, 101 passed, 7 skipped, 3 warnings in 0.64s
> =============
> E: pybuild pybuild:355: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_freezegun/build; python3.10 -m pytest
> tests
> I: pybuild base:237: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_freezegun/build; python3.9 -m pytest
> tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.9.9, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 109 items
>
> tests/test_asyncio.py .. [
> 1%]
> tests/test_class_import.py .............. [
> 14%]
> tests/test_datetimes.py .............s.....s.....s.s......s............. [
> 58%]
> .............s [
> 71%]
> tests/test_errors.py .. [
> 73%]
> tests/test_import_alias.py ... [
> 76%]
> tests/test_operations.py ......... [
> 84%]
> tests/test_pickle.py ... [
> 87%]
> tests/test_sqlite3.py .. [
> 88%]
> tests/test_ticking.py .s.... [
> 94%]
> tests/test_utils.py .. [
> 96%]
> tests/test_uuid.py .. [
> 98%]
> tests/test_warnings.py ..
> [100%]
>
> =============================== warnings summary
> ===============================
> .pybuild/cpython3_3.9_freezegun/build/tests/test_asyncio.py::test_time_freeze_coroutine
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_freezegun/build/tests/test_asyncio.py:19:
> DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8,
> use "async def" instead
> def frozen_coroutine():
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> ================== 102 passed, 7 skipped, 1 warning in 0.62s
> ===================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10
> 3.9" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2021/12/20/freezegun_0.3.15-1_unstable.log
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 marking 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.