Source: pydantic
Version: 1.10.4-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
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/build/pydantic
> copying pydantic/utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/generics.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/tools.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/annotated_types.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/main.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/fields.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/parse.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/color.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/decorator.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/validators.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/class_validators.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/mypy.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/error_wrappers.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/errors.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/types.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/json.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/dataclasses.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/schema.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/config.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/datetime_parse.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/env_settings.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/typing.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/networks.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/_hypothesis_plugin.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> copying pydantic/py.typed ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pydantic
> I: pybuild base:310: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/generics.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/tools.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/annotated_types.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/main.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/fields.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/parse.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/color.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/decorator.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/validators.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/class_validators.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/mypy.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/error_wrappers.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/errors.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/types.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/json.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/dataclasses.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/schema.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/config.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/datetime_parse.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/env_settings.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/typing.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/networks.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/_hypothesis_plugin.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> copying pydantic/py.typed ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pydantic
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build;
> python3.12 -m pytest -Wignore
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: mock-3.12.0
> collected 2534 items
>
> tests/test_abc.py .F [
> 0%]
> tests/test_aliases.py .......................... [
> 1%]
> tests/test_annotated.py ............. [
> 1%]
> tests/test_annotated_types.py ........s.......ss [
> 2%]
> tests/test_assert_in_validators.py . [
> 2%]
> tests/test_callable.py ........ [
> 2%]
> tests/test_color.py .................................................... [
> 4%]
> .................... [
> 5%]
> tests/test_construction.py ........................... [
> 6%]
> tests/test_create_model.py ..................... [
> 7%]
> tests/test_dataclasses.py .............................................. [
> 9%]
> ........................................ [
> 10%]
> tests/test_datetime_parse.py ........................................... [
> 12%]
> ........................................................................ [
> 15%]
> .................................... [
> 16%]
> tests/test_decorator.py .......................... [
> 17%]
> tests/test_discrimated_union.py ................ [
> 18%]
> tests/test_edge_cases.py ............................................... [
> 20%]
> ........................................................................ [
> 23%]
> ................................s........... [
> 24%]
> tests/test_errors.py ................. [
> 25%]
> tests/test_forward_ref.py .............................. [
> 26%]
> tests/test_generics.py .............................F.........s......... [
> 28%]
> ..................... [
> 29%]
> tests/test_hypothesis_plugin.py ssssssssssss [
> 29%]
> tests/test_json.py ................................................... [
> 31%]
> tests/test_main.py ..................................................... [
> 34%]
> ........................................................................ [
> 36%]
> ............................................ [
> 38%]
> tests/test_model_signature.py .............. [
> 39%]
> tests/test_networks.py ................................................. [
> 41%]
> ........................................................................ [
> 43%]
> ........................................................................ [
> 46%]
> ..............................s.. [
> 48%]
> tests/test_networks_ipaddress.py ....................................... [
> 49%]
> ........................................................................ [
> 52%]
> ............................................. [
> 54%]
> tests/test_orm_mode.py ............. [
> 54%]
> tests/test_parse.py ...................... [
> 55%]
> tests/test_private_attributes.py ........... [
> 56%]
> tests/test_rich_repr.py .. [
> 56%]
> tests/test_schema.py ................................................... [
> 58%]
> ........................................................................ [
> 61%]
> ........................................................................ [
> 63%]
> .......................................................... [
> 66%]
> tests/test_settings.py ................................................. [
> 68%]
> ...s..................... [
> 69%]
> tests/test_structural_pattern_matching.py . [
> 69%]
> tests/test_tools.py ............ [
> 69%]
> tests/test_types.py .................................................... [
> 71%]
> ........................................................................ [
> 74%]
> ......................ss................................................ [
> 77%]
> ........................................................................ [
> 80%]
> ....................................................................F... [
> 82%]
> ........................................................................ [
> 85%]
> ................. [
> 86%]
> tests/test_types_payment_card_number.py ................................ [
> 87%]
> ............... [
> 88%]
> tests/test_typing.py .............. [
> 88%]
> tests/test_utils.py .................................................... [
> 90%]
> .......ss............................................................... [
> 93%]
> ... [
> 93%]
> tests/test_validators.py ............................................... [
> 95%]
> ............................................................... [
> 98%]
> tests/test_validators_dataclass.py ....... [
> 98%]
> tests/test_version.py .. [
> 98%]
> tests/mypy/test_mypy.py ssssssssssssssssssssssssss......sss
> [100%]
>
> =================================== FAILURES
> ===================================
> _
> test_model_subclassing_abstract_base_classes_without_implementation_raises_exception
> _
>
> def
> test_model_subclassing_abstract_base_classes_without_implementation_raises_exception():
> class Model(BaseModel, abc.ABC):
> some_field: str
>
> @abc.abstractmethod
> def my_abstract_method(self):
> pass
>
> @classmethod
> @abc.abstractmethod
> def my_abstract_classmethod(cls):
> pass
>
> @staticmethod
> @abc.abstractmethod
> def my_abstract_staticmethod():
> pass
>
> @property
> @abc.abstractmethod
> def my_abstract_property(self):
> pass
>
> @my_abstract_property.setter
> @abc.abstractmethod
> def my_abstract_property(self, val):
> pass
>
> with pytest.raises(TypeError) as excinfo:
> Model(some_field='some_value')
> > assert str(excinfo.value) == (
> "Can't instantiate abstract class Model with abstract methods "
> "my_abstract_classmethod, my_abstract_method,
> my_abstract_property, my_abstract_staticmethod" # noqa: Q000
> )
> E assert "Can't instan...staticmethod'" == "Can't
> instan..._staticmethod"
> E Skipping 33 identical leading characters in diff, use -v to show
> E - Model with abstract methods my_abstract_classmethod,
> my_abstract_method, my_abstract_property, my_abstract_staticmethod
> E + Model without an implementation for abstract methods
> 'my_abstract_classmethod', 'my_abstract_method', 'my_abstract_property',
> 'my_abstract_staticmethod'
> E ? +++++++++++++++++++++++++ +
> + + + + + +
> +
>
> tests/test_abc.py:43: AssertionError
> _______________________ test_partial_specification_name
> ________________________
>
> def test_partial_specification_name():
> AT = TypeVar('AT')
> BT = TypeVar('BT')
>
> class Model(GenericModel, Generic[AT, BT]):
> a: AT
> b: BT
>
> partial_model = Model[int, BT]
> > assert partial_model.__name__ == 'Model[int, BT]'
> E AssertionError: assert 'Model[int, TypeVar]' == 'Model[int, BT]'
> E - Model[int, BT]
> E ? -
> E + Model[int, TypeVar]
> E ? ++++++
>
> tests/test_generics.py:517: AssertionError
> _______________________________ test_secretfield
> _______________________________
>
> def test_secretfield():
> class Foobar(SecretField):
> ...
>
> message = "Can't instantiate abstract class Foobar with abstract
> methods? get_secret_value"
>
> with pytest.raises(TypeError, match=message):
> > Foobar()
> E TypeError: Can't instantiate abstract class Foobar without an
> implementation for abstract method 'get_secret_value'
>
> tests/test_types.py:2706: TypeError
>
> During handling of the above exception, another exception occurred:
>
> def test_secretfield():
> class Foobar(SecretField):
> ...
>
> message = "Can't instantiate abstract class Foobar with abstract
> methods? get_secret_value"
>
> > with pytest.raises(TypeError, match=message):
> E AssertionError: Regex pattern did not match.
> E Regex: "Can't instantiate abstract class Foobar with abstract
> methods? get_secret_value"
> E Input: "Can't instantiate abstract class Foobar without an
> implementation for abstract method 'get_secret_value'"
>
> tests/test_types.py:2705: AssertionError
> =========================== short test summary info
> ============================
> FAILED
> tests/test_abc.py::test_model_subclassing_abstract_base_classes_without_implementation_raises_exception
> FAILED tests/test_generics.py::test_partial_specification_name -
> AssertionErr...
> FAILED tests/test_types.py::test_secretfield - AssertionError: Regex pattern
> ...
> ================== 3 failed, 2479 passed, 52 skipped in 6.85s
> ==================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest -Wignore
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build;
> python3.11 -m pytest -Wignore
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: mock-3.12.0
> collected 2534 items
>
> tests/test_abc.py .. [
> 0%]
> tests/test_aliases.py .......................... [
> 1%]
> tests/test_annotated.py ............. [
> 1%]
> tests/test_annotated_types.py ........s.......ss [
> 2%]
> tests/test_assert_in_validators.py . [
> 2%]
> tests/test_callable.py ........ [
> 2%]
> tests/test_color.py .................................................... [
> 4%]
> .................... [
> 5%]
> tests/test_construction.py ........................... [
> 6%]
> tests/test_create_model.py ..................... [
> 7%]
> tests/test_dataclasses.py .............................................. [
> 9%]
> ........................................ [
> 10%]
> tests/test_datetime_parse.py ........................................... [
> 12%]
> ........................................................................ [
> 15%]
> .................................... [
> 16%]
> tests/test_decorator.py .......................... [
> 17%]
> tests/test_discrimated_union.py ................ [
> 18%]
> tests/test_edge_cases.py ............................................... [
> 20%]
> ........................................................................ [
> 23%]
> ................................s........... [
> 24%]
> tests/test_errors.py ................. [
> 25%]
> tests/test_forward_ref.py .............................. [
> 26%]
> tests/test_generics.py .......................................s......... [
> 28%]
> ..................... [
> 29%]
> tests/test_hypothesis_plugin.py ssssssssssss [
> 29%]
> tests/test_json.py ................................................... [
> 31%]
> tests/test_main.py ..................................................... [
> 34%]
> ........................................................................ [
> 36%]
> ............................................ [
> 38%]
> tests/test_model_signature.py .............. [
> 39%]
> tests/test_networks.py ................................................. [
> 41%]
> ........................................................................ [
> 43%]
> ........................................................................ [
> 46%]
> ..............................s.. [
> 48%]
> tests/test_networks_ipaddress.py ....................................... [
> 49%]
> ........................................................................ [
> 52%]
> ............................................. [
> 54%]
> tests/test_orm_mode.py ............. [
> 54%]
> tests/test_parse.py ...................... [
> 55%]
> tests/test_private_attributes.py ........... [
> 56%]
> tests/test_rich_repr.py .. [
> 56%]
> tests/test_schema.py ................................................... [
> 58%]
> ........................................................................ [
> 61%]
> ........................................................................ [
> 63%]
> .......................................................... [
> 66%]
> tests/test_settings.py ................................................. [
> 68%]
> ...s..................... [
> 69%]
> tests/test_structural_pattern_matching.py . [
> 69%]
> tests/test_tools.py ............ [
> 69%]
> tests/test_types.py .................................................... [
> 71%]
> ........................................................................ [
> 74%]
> ......................ss................................................ [
> 77%]
> ........................................................................ [
> 80%]
> ........................................................................ [
> 82%]
> ........................................................................ [
> 85%]
> ................. [
> 86%]
> tests/test_types_payment_card_number.py ................................ [
> 87%]
> ............... [
> 88%]
> tests/test_typing.py .............. [
> 88%]
> tests/test_utils.py .................................................... [
> 90%]
> .......ss............................................................... [
> 93%]
> ... [
> 93%]
> tests/test_validators.py ............................................... [
> 95%]
> ............................................................... [
> 98%]
> tests/test_validators_dataclass.py ....... [
> 98%]
> tests/test_version.py .. [
> 98%]
> tests/mypy/test_mypy.py ssssssssssssssssssssssssss......sss
> [100%]
>
> ======================= 2482 passed, 52 skipped in 6.58s
> =======================
> 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/pydantic_1.10.4-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&[email protected]&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.