Source: pykwalify Version: 1.8.0-2 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-arm64
Hi, During a rebuild of all packages in sid, your package failed to build on arm64. Relevant part (hopefully): > debian/rules build > dh build --with python3 --buildsystem=pybuild --no-guessing-deps > dh_update_autotools_config -O--buildsystem=pybuild -O--no-guessing-deps > dh_autoreconf -O--buildsystem=pybuild -O--no-guessing-deps > dh_auto_configure -O--buildsystem=pybuild -O--no-guessing-deps > I: pybuild base:311: python3.12 setup.py config > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running config > I: pybuild base:311: python3.11 setup.py config > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running config > dh_auto_build -O--buildsystem=pybuild -O--no-guessing-deps > I: pybuild base:311: /usr/bin/python3.12 setup.py build > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > copying pykwalify/core.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > copying pykwalify/errors.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > copying pykwalify/compat.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > copying pykwalify/cli.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > copying pykwalify/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > copying pykwalify/types.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > copying pykwalify/rule.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/pykwalify > I: pybuild base:311: /usr/bin/python3 setup.py build > /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:293: > _DeprecatedConfig: Deprecated config in `setup.cfg` > !! > > > ******************************************************************************** > The license_file parameter is deprecated, use license_files instead. > > This deprecation is overdue, please update your project and remove > deprecated > calls to avoid build errors in the future. > > See > https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for > details. > > ******************************************************************************** > > !! > parsed = self.parsers.get(option_name, lambda x: x)(value) > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > copying pykwalify/core.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > copying pykwalify/errors.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > copying pykwalify/compat.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > copying pykwalify/cli.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > copying pykwalify/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > copying pykwalify/types.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > copying pykwalify/rule.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/pykwalify > dh_auto_test -O--buildsystem=pybuild -O--no-guessing-deps > I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; > python3.12 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.4.0 > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build > configfile: pytest.ini > collected 48 items > > tests/test_cli.py .. [ > 4%] > tests/test_core.py .............F [ > 33%] > tests/test_core_methods.py .... [ > 41%] > tests/test_exceptions.py .. [ > 45%] > tests/test_rule.py ....................... [ > 93%] > tests/test_types.py . [ > 95%] > tests/test_unicode.py FF > [100%] > > =================================== FAILURES > =================================== > ___________________________ TestCore.test_core_files > ___________________________ > > self = <tests.test_core.TestCore object at 0xffffaccdc7a0> > > def test_core_files(self): > # These tests should pass with no exception raised > pass_tests = [ > # All tests for keyword assert > "test_assert.yaml", > # All tests for keyword default > "test_default.yaml", > # All tests for keyword desc > "test_desc.yaml", > # All tests for keyword enum > "test_enum.yaml", > # All tests for keyword example > "test_example.yaml", > # All tests for keyword extensions > "test_extensions.yaml", > # All tests for keyword func > "test_func.yaml", > # All tests for keyword ident > "test_ident.yaml", > # All tests for keyword include > "test_include.yaml", > # All tests for keyword length > "test_length.yaml", > # All tests for keyword mapping > "test_mapping.yaml", > # All tests for keyword matching > "test_matching.yaml", > # All tests for keyword name > "test_name.yaml", > # All tests for keyword nullable > "test_nullable.yaml", > # All tests for keyword pattern > "test_pattern.yaml", > # All tests for keyword range > "test_range.yaml", > # All tests for keyword required > "test_required.yaml", > # All tests for keyword schema > "test_schema.yaml", > # All tests for keyword sequence > "test_sequence.yaml", > # All tests for keyword unique > "test_unique.yaml", > # All tests for keyword version > "test_version.yaml", > > # All test cases for Multiple sequence checks > "test_sequence_multi.yaml", > # All test cases for merging > "test_merge.yaml", > # All test cases for yaml anchors > "test_anchor.yaml", > > # All tests for TYPE: any > "test_type_any.yaml", > # All tests for TYPE: bool > "test_type_bool.yaml", > # All tests for TYPE: date > "test_type_date.yaml", > # All tests for TYPE: enum > "test_type_enum.yaml", > # All tests for TYPE: float > "test_type_float.yaml", > # All tests for TYPE: int > "test_type_int.yaml", > # All tests for TYPE: map > "test_type_map.yaml", > # All tests for TYPE: none > "test_type_none.yaml", > # All tests for TYPE: number > "test_type_number.yaml", > # All tests for TYPE: scalar > "test_type_scalar.yaml", > # All tests for TYPE: seq > "test_type_seq.yaml", > # All tests for TYPE: str > "test_type_str.yaml", > # All tests for TYPE: symbol > "test_type_symbol.yaml", > # All tests for TYPE: text > "test_type_text.yaml", > # All tests for TYPE: timestamp > "test_type_timestamp.yaml", > # All tests for TYPE: email > "test_type_email.yaml", > # All tests for TYPE: url > "test_type_url.yaml", > ] > > _fail_tests = [ > # All tests for keyword assert > ("test_assert.yaml", SchemaError), > # All tests for keyword default > ("test_default.yaml", SchemaError), > # All tests for keyword desc > ("test_desc.yaml", SchemaError), > # All tests for keyword enum > ("test_enum.yaml", SchemaError), > # All tests for keyword example > ("test_example.yaml", SchemaError), > # All tests for keyword extensions > ("test_extensions.yaml", SchemaError), > # All tests for keyword func > ("test_func.yaml", SchemaError), > # All tests for keyword ident > ("test_ident.yaml", SchemaError), > # All tests for keyword include > ("test_include.yaml", SchemaError), > # All tests for keyword length > ("test_length.yaml", SchemaError), > # All tests for keyword mapping > ("test_mapping.yaml", SchemaError), > # All tests for keyword matching > ("test_matching.yaml", SchemaError), > # All tests for keyword name > ("test_name.yaml", SchemaError), > # All tests for keyword nullable > ("test_nullable.yaml", SchemaError), > # All tests for keyword pattern > ("test_pattern.yaml", SchemaError), > # All tests for keyword range > ("test_range.yaml", SchemaError), > # All tests for keyword required > ("test_required.yaml", SchemaError), > # All tests for keyword schema > ("test_schema.yaml", SchemaError), > # All tests for keyword sequence > ("test_sequence.yaml", SchemaError), > # All tests for keyword unique > ("test_unique.yaml", SchemaError), > # All tests for keyword version > ("test_version.yaml", SchemaError), > > # All test cases for Multiple sequence checks > ("test_sequence_multi.yaml", SchemaError), > # All test cases for merging > ("test_merge.yaml", SchemaError), > # All test cases for yaml anchors > ("test_anchor.yaml", SchemaError), > > # All tests for TYPE: any > ("test_type_any.yaml", SchemaError), > # All tests for TYPE: bool > ("test_type_bool.yaml", SchemaError), > # All tests for TYPE: date > ("test_type_date.yaml", SchemaError), > # All tests for TYPE: float > ("test_type_float.yaml", SchemaError), > # All tests for TYPE: int > ("test_type_int.yaml", SchemaError), > # All tests for TYPE: map > ("test_type_map.yaml", SchemaError), > # All tests for TYPE: none > ("test_type_none.yaml", SchemaError), > # All tests for TYPE: number > ("test_type_number.yaml", SchemaError), > # All tests for TYPE: scalar > ("test_type_scalar.yaml", SchemaError), > # All tests for TYPE: seq > ("test_type_seq.yaml", SchemaError), > # All tests for TYPE: str > ("test_type_str.yaml", SchemaError), > # All tests for TYPE: symbol > ("test_type_symbol.yaml", SchemaError), > # All tests for TYPE: text > ("test_type_text.yaml", SchemaError), > # All tests for TYPE: timestamp > ("test_type_timestamp.yaml", SchemaError), > # All tests for TYPE: email > ("test_type_email.yaml", SchemaError), > # All tests for TYPE: url > ("test_type_url.yaml", SchemaError), > ] > > # Add override magic to make it easier to test a specific file > if "S" in os.environ: > pass_tests = [os.environ["S"]] > _fail_tests = [] > elif "F" in os.environ: > pass_tests = [] > _fail_tests = [(os.environ["F"], SchemaError)] > > for passing_test_file in pass_tests: > f = self.f(os.path.join("success", passing_test_file)) > with open(f, "r") as stream: > > yaml_data = yaml.safe_load_all(stream) > > tests/test_core.py:570: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1116: in safe_load_all > error_deprecation('safe_load_all', 'load_all', arg="typ='safe', > pure=True") > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > fun = 'safe_load_all', method = 'load_all', arg = "typ='safe', pure=True" > comment = 'instead of' > > def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str > = 'instead of') -> None: # NOQA > import inspect > > s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n > yaml.{method}(...)\n\n{comment}' # NOQA > try: > info = inspect.getframeinfo(inspect.stack()[2][0]) > context = '' if info.code_context is None else > "".join(info.code_context) > s += f' file "{info.filename}", line {info.lineno}\n\n{context}' > except Exception as e: > _ = e > s += '\n' > if sys.version_info < (3, 10): > raise AttributeError(s) > else: > > raise AttributeError(s, name=None) > E AttributeError: > E "safe_load_all()" has been removed, use > E > E yaml = YAML(typ='safe', pure=True) > E yaml.load_all(...) > E > E instead of file > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_core.py", line 570 > E > E yaml_data = yaml.safe_load_all(stream) > > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1041: AttributeError > _____________ TestUnicode.test_files_with_unicode_content_success > ______________ > > self = <tests.test_unicode.TestUnicode object at 0xffffacd261b0> > tmpdir = > local('/tmp/pytest-of-user42/pytest-21/test_files_with_unicode_conten0') > > def test_files_with_unicode_content_success(self, tmpdir): > """ > These tests should pass with no exception raised > """ > fail_data_2s_yaml = { > 'schema': { > 'type': 'map', > 'mapping': { > 'msg': { > 'type': 'int', > }, > } > }, > 'data': { > 'msg': 123, > }, > 'errors': [] > } > > source_f = tmpdir.join(u"2så.json") > > source_f.write(yaml.safe_dump(fail_data_2s_yaml, allow_unicode=True)) > > tests/test_unicode.py:50: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1262: in safe_dump > error_deprecation('safe_dump', 'dump', arg="typ='safe', pure=True") > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > fun = 'safe_dump', method = 'dump', arg = "typ='safe', pure=True" > comment = 'instead of' > > def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str > = 'instead of') -> None: # NOQA > import inspect > > s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n > yaml.{method}(...)\n\n{comment}' # NOQA > try: > info = inspect.getframeinfo(inspect.stack()[2][0]) > context = '' if info.code_context is None else > "".join(info.code_context) > s += f' file "{info.filename}", line {info.lineno}\n\n{context}' > except Exception as e: > _ = e > s += '\n' > if sys.version_info < (3, 10): > raise AttributeError(s) > else: > > raise AttributeError(s, name=None) > E AttributeError: > E "safe_dump()" has been removed, use > E > E yaml = YAML(typ='safe', pure=True) > E yaml.dump(...) > E > E instead of file > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_unicode.py", line 50 > E > E source_f.write(yaml.safe_dump(fail_data_2s_yaml, > allow_unicode=True)) > > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1041: AttributeError > _____________ TestUnicode.test_files_with_unicode_content_failing > ______________ > > self = <tests.test_unicode.TestUnicode object at 0xffffacd24890> > tmpdir = > local('/tmp/pytest-of-user42/pytest-21/test_files_with_unicode_conten1') > > def test_files_with_unicode_content_failing(self, tmpdir): > """ > These tests should fail with the specified exception > """ > # To trigger schema exception we must pass in a source file > fail_data_2f_yaml = { > 'schema': { > 'type': 'map', > 'mapping': { > 'msg': { > 'type': 'int', > }, > } > }, > 'data': { > 'msg': 'Foobar', > }, > 'errors': ["Value 'Foobar' is not of type 'int'. Path: '/msg'"] > } > > source_f = tmpdir.join(u"2få.json") > > source_f.write(yaml.safe_dump(fail_data_2f_yaml, allow_unicode=True)) > > tests/test_unicode.py:105: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1262: in safe_dump > error_deprecation('safe_dump', 'dump', arg="typ='safe', pure=True") > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > fun = 'safe_dump', method = 'dump', arg = "typ='safe', pure=True" > comment = 'instead of' > > def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str > = 'instead of') -> None: # NOQA > import inspect > > s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n > yaml.{method}(...)\n\n{comment}' # NOQA > try: > info = inspect.getframeinfo(inspect.stack()[2][0]) > context = '' if info.code_context is None else > "".join(info.code_context) > s += f' file "{info.filename}", line {info.lineno}\n\n{context}' > except Exception as e: > _ = e > s += '\n' > if sys.version_info < (3, 10): > raise AttributeError(s) > else: > > raise AttributeError(s, name=None) > E AttributeError: > E "safe_dump()" has been removed, use > E > E yaml = YAML(typ='safe', pure=True) > E yaml.dump(...) > E > E instead of file > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_unicode.py", line > 105 > E > E source_f.write(yaml.safe_dump(fail_data_2f_yaml, > allow_unicode=True)) > > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1041: AttributeError > =========================== short test summary info > ============================ > FAILED tests/test_core.py::TestCore::test_core_files - AttributeError: > FAILED > tests/test_unicode.py::TestUnicode::test_files_with_unicode_content_success > FAILED > tests/test_unicode.py::TestUnicode::test_files_with_unicode_content_failing > ========================= 3 failed, 45 passed in 0.51s > ========================= > E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests > I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; > python3.11 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.11.9, pytest-8.1.1, pluggy-1.4.0 > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build > configfile: pytest.ini > collected 48 items > > tests/test_cli.py .. [ > 4%] > tests/test_core.py .............F [ > 33%] > tests/test_core_methods.py .... [ > 41%] > tests/test_exceptions.py .. [ > 45%] > tests/test_rule.py ....................... [ > 93%] > tests/test_types.py . [ > 95%] > tests/test_unicode.py FF > [100%] > > =================================== FAILURES > =================================== > ___________________________ TestCore.test_core_files > ___________________________ > > self = <tests.test_core.TestCore object at 0xffffa4352290> > > def test_core_files(self): > # These tests should pass with no exception raised > pass_tests = [ > # All tests for keyword assert > "test_assert.yaml", > # All tests for keyword default > "test_default.yaml", > # All tests for keyword desc > "test_desc.yaml", > # All tests for keyword enum > "test_enum.yaml", > # All tests for keyword example > "test_example.yaml", > # All tests for keyword extensions > "test_extensions.yaml", > # All tests for keyword func > "test_func.yaml", > # All tests for keyword ident > "test_ident.yaml", > # All tests for keyword include > "test_include.yaml", > # All tests for keyword length > "test_length.yaml", > # All tests for keyword mapping > "test_mapping.yaml", > # All tests for keyword matching > "test_matching.yaml", > # All tests for keyword name > "test_name.yaml", > # All tests for keyword nullable > "test_nullable.yaml", > # All tests for keyword pattern > "test_pattern.yaml", > # All tests for keyword range > "test_range.yaml", > # All tests for keyword required > "test_required.yaml", > # All tests for keyword schema > "test_schema.yaml", > # All tests for keyword sequence > "test_sequence.yaml", > # All tests for keyword unique > "test_unique.yaml", > # All tests for keyword version > "test_version.yaml", > > # All test cases for Multiple sequence checks > "test_sequence_multi.yaml", > # All test cases for merging > "test_merge.yaml", > # All test cases for yaml anchors > "test_anchor.yaml", > > # All tests for TYPE: any > "test_type_any.yaml", > # All tests for TYPE: bool > "test_type_bool.yaml", > # All tests for TYPE: date > "test_type_date.yaml", > # All tests for TYPE: enum > "test_type_enum.yaml", > # All tests for TYPE: float > "test_type_float.yaml", > # All tests for TYPE: int > "test_type_int.yaml", > # All tests for TYPE: map > "test_type_map.yaml", > # All tests for TYPE: none > "test_type_none.yaml", > # All tests for TYPE: number > "test_type_number.yaml", > # All tests for TYPE: scalar > "test_type_scalar.yaml", > # All tests for TYPE: seq > "test_type_seq.yaml", > # All tests for TYPE: str > "test_type_str.yaml", > # All tests for TYPE: symbol > "test_type_symbol.yaml", > # All tests for TYPE: text > "test_type_text.yaml", > # All tests for TYPE: timestamp > "test_type_timestamp.yaml", > # All tests for TYPE: email > "test_type_email.yaml", > # All tests for TYPE: url > "test_type_url.yaml", > ] > > _fail_tests = [ > # All tests for keyword assert > ("test_assert.yaml", SchemaError), > # All tests for keyword default > ("test_default.yaml", SchemaError), > # All tests for keyword desc > ("test_desc.yaml", SchemaError), > # All tests for keyword enum > ("test_enum.yaml", SchemaError), > # All tests for keyword example > ("test_example.yaml", SchemaError), > # All tests for keyword extensions > ("test_extensions.yaml", SchemaError), > # All tests for keyword func > ("test_func.yaml", SchemaError), > # All tests for keyword ident > ("test_ident.yaml", SchemaError), > # All tests for keyword include > ("test_include.yaml", SchemaError), > # All tests for keyword length > ("test_length.yaml", SchemaError), > # All tests for keyword mapping > ("test_mapping.yaml", SchemaError), > # All tests for keyword matching > ("test_matching.yaml", SchemaError), > # All tests for keyword name > ("test_name.yaml", SchemaError), > # All tests for keyword nullable > ("test_nullable.yaml", SchemaError), > # All tests for keyword pattern > ("test_pattern.yaml", SchemaError), > # All tests for keyword range > ("test_range.yaml", SchemaError), > # All tests for keyword required > ("test_required.yaml", SchemaError), > # All tests for keyword schema > ("test_schema.yaml", SchemaError), > # All tests for keyword sequence > ("test_sequence.yaml", SchemaError), > # All tests for keyword unique > ("test_unique.yaml", SchemaError), > # All tests for keyword version > ("test_version.yaml", SchemaError), > > # All test cases for Multiple sequence checks > ("test_sequence_multi.yaml", SchemaError), > # All test cases for merging > ("test_merge.yaml", SchemaError), > # All test cases for yaml anchors > ("test_anchor.yaml", SchemaError), > > # All tests for TYPE: any > ("test_type_any.yaml", SchemaError), > # All tests for TYPE: bool > ("test_type_bool.yaml", SchemaError), > # All tests for TYPE: date > ("test_type_date.yaml", SchemaError), > # All tests for TYPE: float > ("test_type_float.yaml", SchemaError), > # All tests for TYPE: int > ("test_type_int.yaml", SchemaError), > # All tests for TYPE: map > ("test_type_map.yaml", SchemaError), > # All tests for TYPE: none > ("test_type_none.yaml", SchemaError), > # All tests for TYPE: number > ("test_type_number.yaml", SchemaError), > # All tests for TYPE: scalar > ("test_type_scalar.yaml", SchemaError), > # All tests for TYPE: seq > ("test_type_seq.yaml", SchemaError), > # All tests for TYPE: str > ("test_type_str.yaml", SchemaError), > # All tests for TYPE: symbol > ("test_type_symbol.yaml", SchemaError), > # All tests for TYPE: text > ("test_type_text.yaml", SchemaError), > # All tests for TYPE: timestamp > ("test_type_timestamp.yaml", SchemaError), > # All tests for TYPE: email > ("test_type_email.yaml", SchemaError), > # All tests for TYPE: url > ("test_type_url.yaml", SchemaError), > ] > > # Add override magic to make it easier to test a specific file > if "S" in os.environ: > pass_tests = [os.environ["S"]] > _fail_tests = [] > elif "F" in os.environ: > pass_tests = [] > _fail_tests = [(os.environ["F"], SchemaError)] > > for passing_test_file in pass_tests: > f = self.f(os.path.join("success", passing_test_file)) > with open(f, "r") as stream: > > yaml_data = yaml.safe_load_all(stream) > > tests/test_core.py:570: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1116: in safe_load_all > error_deprecation('safe_load_all', 'load_all', arg="typ='safe', > pure=True") > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > fun = 'safe_load_all', method = 'load_all', arg = "typ='safe', pure=True" > comment = 'instead of' > > def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str > = 'instead of') -> None: # NOQA > import inspect > > s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n > yaml.{method}(...)\n\n{comment}' # NOQA > try: > info = inspect.getframeinfo(inspect.stack()[2][0]) > context = '' if info.code_context is None else > "".join(info.code_context) > s += f' file "{info.filename}", line {info.lineno}\n\n{context}' > except Exception as e: > _ = e > s += '\n' > if sys.version_info < (3, 10): > raise AttributeError(s) > else: > > raise AttributeError(s, name=None) > E AttributeError: > E "safe_load_all()" has been removed, use > E > E yaml = YAML(typ='safe', pure=True) > E yaml.load_all(...) > E > E instead of file > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/tests/test_core.py", line 570 > E > E yaml_data = yaml.safe_load_all(stream) > > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1041: AttributeError > _____________ TestUnicode.test_files_with_unicode_content_success > ______________ > > self = <tests.test_unicode.TestUnicode object at 0xffffa3f20a90> > tmpdir = > local('/tmp/pytest-of-user42/pytest-22/test_files_with_unicode_conten0') > > def test_files_with_unicode_content_success(self, tmpdir): > """ > These tests should pass with no exception raised > """ > fail_data_2s_yaml = { > 'schema': { > 'type': 'map', > 'mapping': { > 'msg': { > 'type': 'int', > }, > } > }, > 'data': { > 'msg': 123, > }, > 'errors': [] > } > > source_f = tmpdir.join(u"2så.json") > > source_f.write(yaml.safe_dump(fail_data_2s_yaml, allow_unicode=True)) > > tests/test_unicode.py:50: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1262: in safe_dump > error_deprecation('safe_dump', 'dump', arg="typ='safe', pure=True") > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > fun = 'safe_dump', method = 'dump', arg = "typ='safe', pure=True" > comment = 'instead of' > > def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str > = 'instead of') -> None: # NOQA > import inspect > > s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n > yaml.{method}(...)\n\n{comment}' # NOQA > try: > info = inspect.getframeinfo(inspect.stack()[2][0]) > context = '' if info.code_context is None else > "".join(info.code_context) > s += f' file "{info.filename}", line {info.lineno}\n\n{context}' > except Exception as e: > _ = e > s += '\n' > if sys.version_info < (3, 10): > raise AttributeError(s) > else: > > raise AttributeError(s, name=None) > E AttributeError: > E "safe_dump()" has been removed, use > E > E yaml = YAML(typ='safe', pure=True) > E yaml.dump(...) > E > E instead of file > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/tests/test_unicode.py", line 50 > E > E source_f.write(yaml.safe_dump(fail_data_2s_yaml, > allow_unicode=True)) > > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1041: AttributeError > _____________ TestUnicode.test_files_with_unicode_content_failing > ______________ > > self = <tests.test_unicode.TestUnicode object at 0xffffa3f20a50> > tmpdir = > local('/tmp/pytest-of-user42/pytest-22/test_files_with_unicode_conten1') > > def test_files_with_unicode_content_failing(self, tmpdir): > """ > These tests should fail with the specified exception > """ > # To trigger schema exception we must pass in a source file > fail_data_2f_yaml = { > 'schema': { > 'type': 'map', > 'mapping': { > 'msg': { > 'type': 'int', > }, > } > }, > 'data': { > 'msg': 'Foobar', > }, > 'errors': ["Value 'Foobar' is not of type 'int'. Path: '/msg'"] > } > > source_f = tmpdir.join(u"2få.json") > > source_f.write(yaml.safe_dump(fail_data_2f_yaml, allow_unicode=True)) > > tests/test_unicode.py:105: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1262: in safe_dump > error_deprecation('safe_dump', 'dump', arg="typ='safe', pure=True") > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > fun = 'safe_dump', method = 'dump', arg = "typ='safe', pure=True" > comment = 'instead of' > > def error_deprecation(fun: Any, method: Any, arg: str = '', comment: str > = 'instead of') -> None: # NOQA > import inspect > > s = f'\n"{fun}()" has been removed, use\n\n yaml = YAML({arg})\n > yaml.{method}(...)\n\n{comment}' # NOQA > try: > info = inspect.getframeinfo(inspect.stack()[2][0]) > context = '' if info.code_context is None else > "".join(info.code_context) > s += f' file "{info.filename}", line {info.lineno}\n\n{context}' > except Exception as e: > _ = e > s += '\n' > if sys.version_info < (3, 10): > raise AttributeError(s) > else: > > raise AttributeError(s, name=None) > E AttributeError: > E "safe_dump()" has been removed, use > E > E yaml = YAML(typ='safe', pure=True) > E yaml.dump(...) > E > E instead of file > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/tests/test_unicode.py", line > 105 > E > E source_f.write(yaml.safe_dump(fail_data_2f_yaml, > allow_unicode=True)) > > /usr/lib/python3/dist-packages/ruamel/yaml/main.py:1041: AttributeError > =========================== short test summary info > ============================ > FAILED tests/test_core.py::TestCore::test_core_files - AttributeError: > FAILED > tests/test_unicode.py::TestUnicode::test_files_with_unicode_content_success > FAILED > tests/test_unicode.py::TestUnicode::test_files_with_unicode_content_failing > ========================= 3 failed, 45 passed in 0.55s > ========================= > E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m pytest 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/2024/04/20/pykwalify_1.8.0-2_unstable-arm64.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240420;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240420&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.