Your message dated Thu, 08 Aug 2024 19:21:54 +0000
with message-id <e1sc8hu-00hakn...@fasolo.debian.org>
and subject line Bug#1077457: fixed in python-pytest-toolbox 0.4-5
has caused the Debian Bug report #1077457,
regarding python-pytest-toolbox: FTBFS: dh_auto_test: error: pybuild --test 
--test-pytest -i python{version} -p 3.12 returned exit code 13
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1077457: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077457
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-pytest-toolbox
Version: 0.4-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240728 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:311: python3.12 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/dist.py:476: 
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
> 
>         
> ********************************************************************************
>         Usage of dash-separated 'python-tag' will not be supported in future
>         versions. Please use the underscore name 'python_tag' instead.
> 
>         By 2024-Sep-26, you need to update your project and remove deprecated 
> calls
>         or your builds will no longer be supported.
> 
>         See 
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for 
> details.
>         
> ********************************************************************************
> 
> !!
>   opt = self.warn_dash_deprecation(opt, section)
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:311: /usr/bin/python3 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/dist.py:476: 
> SetuptoolsDeprecationWarning: Invalid dash-separated options
> !!
> 
>         
> ********************************************************************************
>         Usage of dash-separated 'python-tag' will not be supported in future
>         versions. Please use the underscore name 'python_tag' instead.
> 
>         By 2024-Sep-26, you need to update your project and remove deprecated 
> calls
>         or your builds will no longer be supported.
> 
>         See 
> https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for 
> details.
>         
> ********************************************************************************
> 
> !!
>   opt = self.warn_dash_deprecation(opt, section)
> running build
> running build_py
> creating 
> /<<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/comparison.py -> 
> /<<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/main.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'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:311: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build; python3.12 -m 
> pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.4, pytest-8.3.1, pluggy-1.5.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: timeout-2.3.1
> timeout: 10.0s
> timeout method: signal
> timeout func_only: False
> collected 20 items
> 
> tests/test_comparison.py F.F.......                                      [ 
> 50%]
> tests/test_methods.py ..........                                         
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ____________________________ test_close_to_now_true 
> ____________________________
> 
> self = <CloseToNow(delta=2, now=2024-07-28T18:10:37)>
> other = '2024-07-28T18:10:37'
> 
>     def __eq__(self, other):
>         self.other = other
>         if not isinstance(other, datetime):
>             try:
> >               from pydantic.datetime_parse import parse_datetime
> 
> pytest_toolbox/comparison.py:19: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> name = 'parse_datetime'
> 
>     def wrapper(name: str) -> object:
>         """Raise an error if the object is not found, or warn if it was moved.
>     
>         In case it was moved, it still returns the object.
>     
>         Args:
>             name: The object name.
>     
>         Returns:
>             The object.
>         """
>         if name == '__path__':
>             raise AttributeError(f'module {__name__!r} has no attribute 
> {name!r}')
>     
>         import_path = f'{module}:{name}'
>         if import_path in MOVED_IN_V2.keys():
>             new_location = MOVED_IN_V2[import_path]
>             warnings.warn(f'`{import_path}` has been moved to 
> `{new_location}`.')
>             return import_string(MOVED_IN_V2[import_path])
>         if import_path in DEPRECATED_MOVED_IN_V2:
>             # skip the warning here because a deprecation warning will be 
> raised elsewhere
>             return import_string(DEPRECATED_MOVED_IN_V2[import_path])
>         if import_path in REDIRECT_TO_V1:
>             new_location = REDIRECT_TO_V1[import_path]
>             warnings.warn(
>                 f'`{import_path}` has been removed. We are importing from 
> `{new_location}` instead.'
>                 'See the migration guide for more details: 
> https://docs.pydantic.dev/latest/migration/'
>             )
>             return import_string(REDIRECT_TO_V1[import_path])
>         if import_path == 'pydantic:BaseSettings':
>             raise PydanticImportError(
>                 '`BaseSettings` has been moved to the `pydantic-settings` 
> package. '
>                 f'See 
> https://docs.pydantic.dev/{version_short()}/migration/#basesettings-has-moved-to-pydantic-settings
>  '
>                 'for more details.'
>             )
>         if import_path in REMOVED_IN_V2:
> >           raise PydanticImportError(f'`{import_path}` has been removed in 
> > V2.')
> E           pydantic.errors.PydanticImportError: 
> `pydantic.datetime_parse:parse_datetime` has been removed in V2.
> E           
> E           For further information visit 
> https://errors.pydantic.dev/2.4/u/import-error
> 
> /usr/lib/python3/dist-packages/pydantic/_migration.py:300: PydanticImportError
> 
> During handling of the above exception, another exception occurred:
> 
>     def test_close_to_now_true():
>         c2n = CloseToNow()
>         dt = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S')
> >       assert dt == c2n
> 
> tests/test_comparison.py:12: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <CloseToNow(delta=2, now=2024-07-28T18:10:37)>
> other = '2024-07-28T18:10:37'
> 
>     def __eq__(self, other):
>         self.other = other
>         if not isinstance(other, datetime):
>             try:
>                 from pydantic.datetime_parse import parse_datetime
>             except ImportError:  # pragma: no cover
> >               raise ImportError('pydantic is required to use CloseToNow, 
> > please run `pip install pydantic`')
> E               ImportError: pydantic is required to use CloseToNow, please 
> run `pip install pydantic`
> 
> pytest_toolbox/comparison.py:21: ImportError
> ___________________________ test_close_to_now_false 
> ____________________________
> 
> self = <CloseToNow(delta=2, now=2024-07-28T18:10:37)>
> other = '2000-01-01T00:00:00'
> 
>     def __eq__(self, other):
>         self.other = other
>         if not isinstance(other, datetime):
>             try:
> >               from pydantic.datetime_parse import parse_datetime
> 
> pytest_toolbox/comparison.py:19: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> name = 'parse_datetime'
> 
>     def wrapper(name: str) -> object:
>         """Raise an error if the object is not found, or warn if it was moved.
>     
>         In case it was moved, it still returns the object.
>     
>         Args:
>             name: The object name.
>     
>         Returns:
>             The object.
>         """
>         if name == '__path__':
>             raise AttributeError(f'module {__name__!r} has no attribute 
> {name!r}')
>     
>         import_path = f'{module}:{name}'
>         if import_path in MOVED_IN_V2.keys():
>             new_location = MOVED_IN_V2[import_path]
>             warnings.warn(f'`{import_path}` has been moved to 
> `{new_location}`.')
>             return import_string(MOVED_IN_V2[import_path])
>         if import_path in DEPRECATED_MOVED_IN_V2:
>             # skip the warning here because a deprecation warning will be 
> raised elsewhere
>             return import_string(DEPRECATED_MOVED_IN_V2[import_path])
>         if import_path in REDIRECT_TO_V1:
>             new_location = REDIRECT_TO_V1[import_path]
>             warnings.warn(
>                 f'`{import_path}` has been removed. We are importing from 
> `{new_location}` instead.'
>                 'See the migration guide for more details: 
> https://docs.pydantic.dev/latest/migration/'
>             )
>             return import_string(REDIRECT_TO_V1[import_path])
>         if import_path == 'pydantic:BaseSettings':
>             raise PydanticImportError(
>                 '`BaseSettings` has been moved to the `pydantic-settings` 
> package. '
>                 f'See 
> https://docs.pydantic.dev/{version_short()}/migration/#basesettings-has-moved-to-pydantic-settings
>  '
>                 'for more details.'
>             )
>         if import_path in REMOVED_IN_V2:
> >           raise PydanticImportError(f'`{import_path}` has been removed in 
> > V2.')
> E           pydantic.errors.PydanticImportError: 
> `pydantic.datetime_parse:parse_datetime` has been removed in V2.
> E           
> E           For further information visit 
> https://errors.pydantic.dev/2.4/u/import-error
> 
> /usr/lib/python3/dist-packages/pydantic/_migration.py:300: PydanticImportError
> 
> During handling of the above exception, another exception occurred:
> 
>     def test_close_to_now_false():
>         c2n = CloseToNow()
>         with pytest.raises(AssertionError):
> >           assert datetime(2000, 1, 1).strftime('%Y-%m-%dT%H:%M:%S') == c2n
> 
> tests/test_comparison.py:23: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <CloseToNow(delta=2, now=2024-07-28T18:10:37)>
> other = '2000-01-01T00:00:00'
> 
>     def __eq__(self, other):
>         self.other = other
>         if not isinstance(other, datetime):
>             try:
>                 from pydantic.datetime_parse import parse_datetime
>             except ImportError:  # pragma: no cover
> >               raise ImportError('pydantic is required to use CloseToNow, 
> > please run `pip install pydantic`')
> E               ImportError: pydantic is required to use CloseToNow, please 
> run `pip install pydantic`
> 
> pytest_toolbox/comparison.py:21: ImportError
> =============================== warnings summary 
> ===============================
> .pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py::test_close_to_now_true
> .pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py::test_close_to_now_true_dt
> .pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py::test_close_to_now_false
> .pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py::test_clow_to_now_tz
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/pytest_toolbox/comparison.py:11:
>  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).
>     self.now = datetime.utcnow()
> 
> .pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py::test_close_to_now_true
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py:11:
>  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).
>     dt = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S')
> 
> .pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py::test_close_to_now_true_dt
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py:17:
>  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.utcnow() == CloseToNow()
> 
> .pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py::test_clow_to_now_tz
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build/tests/test_comparison.py:29:
>  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).
>     dt = datetime.utcnow().replace(tzinfo=timezone(offset=diff)) + diff
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED tests/test_comparison.py::test_close_to_now_true - ImportError: 
> pydant...
> FAILED tests/test_comparison.py::test_close_to_now_false - ImportError: 
> pydan...
> =================== 2 failed, 18 passed, 7 warnings in 0.23s 
> ===================
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-toolbox/build; python3.12 -m 
> pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2024/07/28/python-pytest-toolbox_0.4-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240728;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240728&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.

--- End Message ---
--- Begin Message ---
Source: python-pytest-toolbox
Source-Version: 0.4-5
Done: Alexandre Detiste <tc...@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-pytest-toolbox, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1077...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tc...@debian.org> (supplier of updated python-pytest-toolbox 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 08 Aug 2024 20:53:06 +0200
Source: python-pytest-toolbox
Architecture: source
Version: 0.4-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Alexandre Detiste <tc...@debian.org>
Closes: 1077457
Changes:
 python-pytest-toolbox (0.4-5) unstable; urgency=medium
 .
   * Team upload.
   * Use Pydantic legacy V1 API (Closes: #1077457)
Checksums-Sha1:
 93851378c4f176e429d802cf5f26c43be21cb42d 2306 python-pytest-toolbox_0.4-5.dsc
 392a1e7c03ae427ee8f32a7edcfd5e139e932fad 3760 
python-pytest-toolbox_0.4-5.debian.tar.xz
 55659b6d58041c5b761e235b5f7502ebed062b4d 7193 
python-pytest-toolbox_0.4-5_source.buildinfo
Checksums-Sha256:
 0d185f260a2b62fd07172cbbc7f626f5c69efa8de6baa5f5fcf32010bd09d0c0 2306 
python-pytest-toolbox_0.4-5.dsc
 7cbf4f6cf2d00d0444f1da32f16d2da04596d609b201e71e5faf3d8b7a731266 3760 
python-pytest-toolbox_0.4-5.debian.tar.xz
 e540649b4dc7e25f031dafab43d9c798123381e8c1a83e865903b5a9ff9e6012 7193 
python-pytest-toolbox_0.4-5_source.buildinfo
Files:
 0fbfbfa68d40d64ef8dfe9bd2b034b6d 2306 python optional 
python-pytest-toolbox_0.4-5.dsc
 2168ec1e73b85e800582bd89b9b659e5 3760 python optional 
python-pytest-toolbox_0.4-5.debian.tar.xz
 1a5e912b862ebf9aeb51bc686b6bdc76 7193 python optional 
python-pytest-toolbox_0.4-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAma1FnARHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBpqhRAAphMR4ULxSz2QnxzZqdCz0XwBBIx/blON
kM9G7dqn715gCldQFMTxZjekONiUwckA2EHWt2QgPZm5ZGrqEItXgGCPqVkEjStn
8PowCSU+ueDS6g5/sGmf0B8Ro2r+P92PPYzM9hb3p9Qh0OhtcxZAJ+gntnZxAOIH
i9DWhhyFIXpNWiQaApA0o8T8SBt0LGplyK/Og4WVp4wTiEc5/sytwpdUdM8r4fHu
Eo7uSo/pHcXNAkbAiNtPCYKKUaURuaI2YdVogGQM9v2GkuEtxYqwAe71UEz07zLv
LrQLk6UP7sOC1gma6XFJu6x6s8FkWLpfqvTW501Zk6pWak3CB/ZSynjjylKFkmkR
ZsHryfxX/zyS/QLOA/OYqU7Og252jfRDNBr/+XQLCCXCm7rmmQ0cGWnxr1gzS/El
COPA54lKQTmPC63DTfjU3r0blO8Wbxk3QEaOpfqDChCJBVzjglQ9uAqVcd1/5A08
AMJdsdB5EUW3IONQWOU7I+6gu1S2jdWhep2ziWQjg7iopeHGKCbTqGg7SH1g/ol7
qLNbZh7Zo6Ksq894BUk3MJCHsHAy8KkYvGZoP34yhT4EeFDkH/E7rNIUUxOeIMdS
e1RyzpEpO6ttyCy7SCEQYe/OQfdesprpVCjygH7P0rR9pi6RlvEC9sh6sAggpteH
vabSE4F7fsw=
=KBUM
-----END PGP SIGNATURE-----

Attachment: pgpCmSsZdih0F.pgp
Description: PGP signature


--- End Message ---

Reply via email to