Package: src:freezegun
Version: 1.5.1-1.1
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
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
pybuild --configure -i python{version} -p "3.13 3.12"
I: pybuild base:311: python3.13 setup.py config
running config
I: pybuild base:311: python3.12 setup.py config
running config
dh_auto_build -O--buildsystem=pybuild
pybuild --build -i python{version} -p "3.13 3.12"
I: pybuild base:311: /usr/bin/python3.13 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/freezegun
copying freezegun/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/freezegun
copying freezegun/_async.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/freezegun
copying freezegun/config.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/freezegun
copying freezegun/api.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_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 files found matching '*.pyi' under directory 'freezegun'
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'
copying freezegun/py.typed ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/freezegun
I: pybuild base:311: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/freezegun
copying freezegun/__init__.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/freezegun
copying freezegun/_async.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/freezegun
copying freezegun/config.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/freezegun
copying freezegun/api.py ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_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 files found matching '*.pyi' under directory 'freezegun'
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'
copying freezegun/py.typed ->
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/freezegun
dh_auto_test -O--buildsystem=pybuild
pybuild --test --test-pytest -i python{version} -p "3.13 3.12"
I: pybuild base:311: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build; python3.13 -m pytest
tests
============================= test session starts ==============================
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build
configfile: pyproject.toml
plugins: typeguard-4.4.1
collected 137 items
tests/test_asyncio.py ..... [ 3%]
tests/test_class_import.py .............. [ 13%]
tests/test_configure.py ..... [ 17%]
tests/test_datetimes.py .................s.....s.....s.s................ [ 52%]
FFF....................s [ 70%]
tests/test_errors.py .. [ 71%]
tests/test_import_alias.py ... [ 73%]
tests/test_operations.py ............. [ 83%]
tests/test_pickle.py ... [ 85%]
tests/test_sqlite3.py .. [ 86%]
tests/test_ticking.py .s.......... [ 95%]
tests/test_utils.py .. [ 97%]
tests/test_uuid.py .. [ 98%]
tests/test_warnings.py .. [100%]
=================================== FAILURES ===================================
_
TestUnitTestMethodDecorator.test_method_decorator_works_on_unittest_kwarg_frozen_time
_
self = <tests.test_datetimes.TestUnitTestMethodDecorator
testMethod=test_method_decorator_works_on_unittest_kwarg_frozen_time>
frozen_time = <freezegun.api.FrozenDateTimeFactory object at 0x7fa80cbc9d60>
@freeze_time('2013-04-09', as_kwarg='frozen_time')
def test_method_decorator_works_on_unittest_kwarg_frozen_time(self,
frozen_time: Any) -> None:
self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
> self.assertEqual(datetime.date(2013, 4, 9),
> frozen_time.time_to_freeze.today())
E AssertionError: FakeDate(2013, 4, 9) != datetime.datetime(2013, 4, 9,
0, 0)
tests/test_datetimes.py:537: AssertionError
_
TestUnitTestMethodDecorator.test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func
_
self = <tests.test_datetimes.TestUnitTestMethodDecorator
testMethod=test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func>
frozen_time = <freezegun.api.FrozenDateTimeFactory object at 0x7fa80cbc9ea0>
@freeze_time(lambda: datetime.date(year=2013, month=4, day=9),
as_kwarg='frozen_time')
def
test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func(self,
frozen_time: Any) -> None:
self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
> self.assertEqual(datetime.date(2013, 4, 9),
> frozen_time.time_to_freeze.today())
E AssertionError: FakeDate(2013, 4, 9) != datetime.datetime(2013, 4, 9,
0, 0)
tests/test_datetimes.py:547: AssertionError
_
TestUnitTestMethodDecorator.test_method_decorator_works_on_unittest_kwarg_hello
_
self = <tests.test_datetimes.TestUnitTestMethodDecorator
testMethod=test_method_decorator_works_on_unittest_kwarg_hello>
kwargs = {'hello': <freezegun.api.FrozenDateTimeFactory object at
0x7fa80cbc9d60>}
@freeze_time('2013-04-09', as_kwarg='hello')
def test_method_decorator_works_on_unittest_kwarg_hello(self, **kwargs:
Any) -> None:
self.assertEqual(datetime.date(2013, 4, 9), datetime.date.today())
> self.assertEqual(datetime.date(2013, 4, 9),
> kwargs.get('hello').time_to_freeze.today()) # type: ignore
E AssertionError: FakeDate(2013, 4, 9) != datetime.datetime(2013, 4, 9,
0, 0)
tests/test_datetimes.py:542: AssertionError
=============================== warnings summary ===============================
tests/test_datetimes.py::test_simple_api
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/tests/test_datetimes.py:75:
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).
assert datetime.datetime.utcnow() != datetime.datetime(2012, 1, 14)
tests/test_datetimes.py::test_compare_datetime_and_time_with_timezone
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/tests/test_datetimes.py:795:
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp,
datetime.UTC).
assert now == datetime.datetime.utcfromtimestamp(time.time())
tests/test_datetimes.py::test_timestamp_with_tzoffset
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/tests/test_datetimes.py:812:
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp,
datetime.UTC).
assert utcnow == datetime.datetime.utcfromtimestamp(time.time())
tests/test_pickle.py::test_pickle
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build/tests/test_pickle.py:13:
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).
utc_now = datetime.datetime.utcnow()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED
tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time
FAILED
tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func
FAILED
tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_hello
============= 3 failed, 128 passed, 6 skipped, 4 warnings in 0.80s =============
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_freezegun/build; python3.13 -m pytest
tests
I: pybuild base:311: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build; python3.12 -m pytest
tests
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build
configfile: pyproject.toml
plugins: typeguard-4.4.1
collected 137 items
tests/test_asyncio.py ..... [ 3%]
tests/test_class_import.py .............. [ 13%]
tests/test_configure.py ..... [ 17%]
tests/test_datetimes.py .................s.....s.....s.s................ [ 52%]
.......................s [ 70%]
tests/test_errors.py .. [ 71%]
tests/test_import_alias.py ... [ 73%]
tests/test_operations.py ............. [ 83%]
tests/test_pickle.py ... [ 85%]
tests/test_sqlite3.py .. [ 86%]
tests/test_ticking.py .s.......... [ 95%]
tests/test_utils.py .. [ 97%]
tests/test_uuid.py .. [ 98%]
tests/test_warnings.py .. [100%]
=============================== warnings summary ===============================
tests/test_datetimes.py::test_simple_api
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/tests/test_datetimes.py:75:
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).
assert datetime.datetime.utcnow() != datetime.datetime(2012, 1, 14)
tests/test_datetimes.py::test_compare_datetime_and_time_with_timezone
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/tests/test_datetimes.py:795:
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp,
datetime.UTC).
assert now == datetime.datetime.utcfromtimestamp(time.time())
tests/test_datetimes.py::test_timestamp_with_tzoffset
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/tests/test_datetimes.py:812:
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and
scheduled for removal in a future version. Use timezone-aware objects to
represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp,
datetime.UTC).
assert utcnow == datetime.datetime.utcfromtimestamp(time.time())
tests/test_pickle.py::test_pickle
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_freezegun/build/tests/test_pickle.py:13:
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).
utc_now = datetime.datetime.utcnow()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 131 passed, 6 skipped, 4 warnings in 0.81s ==================
rm -fr -- /tmp/dh-xdg-rundir-smSp_k7l
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13
3.12" returned exit code 13
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202412/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.