Your message dated Mon, 24 Mar 2025 15:13:52 +0000
with message-id <e1twjuu-00fruz...@fasolo.debian.org>
and subject line Bug#1069386: fixed in pykwalify 1.8.0-3
has caused the Debian Bug report #1069386,
regarding pykwalify: FTBFS: "safe_load_all()" has been removed, use 
YAML(typ='safe', pure=True) instead
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.)


-- 
1069386: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069386
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Source: pykwalify
Source-Version: 1.8.0-3
Done: Jakob Haufe <su...@debian.org>

We believe that the bug you reported is fixed in the latest version of
pykwalify, 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 1069...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jakob Haufe <su...@debian.org> (supplier of updated pykwalify 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: Mon, 24 Mar 2025 15:25:40 +0100
Source: pykwalify
Architecture: source
Version: 1.8.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Jakob Haufe <su...@debian.org>
Closes: 1061403 1069386
Changes:
 pykwalify (1.8.0-3) unstable; urgency=medium
 .
   * Team upload.
   * Add patch to fix tests for ruamel yaml >=0.18 (Closes: #1069386)
   * Add missing dependencies (Closes: #1061403)
Checksums-Sha1:
 63e92ed0aeccd01f6e3addd88f9da4747f6555e3 2200 pykwalify_1.8.0-3.dsc
 e7e4b20ac2b15b315333da1b11fb33aa2af83c9e 4016 pykwalify_1.8.0-3.debian.tar.xz
 cc523d6a43db7b14dfbe8a88ce9067511605788c 6424 
pykwalify_1.8.0-3_source.buildinfo
Checksums-Sha256:
 923617b6fa885c4a441dc02fe047090e6a12e894a351ee03f809791f9ffbed74 2200 
pykwalify_1.8.0-3.dsc
 edb828a67a40c40bb2da847ff24f539cc423440658a86e49d402ccb8a84039bb 4016 
pykwalify_1.8.0-3.debian.tar.xz
 6766cb6e4f51d2aa215ae5129af1ca31180d82e21e347c5d0c5945d3db1c40c4 6424 
pykwalify_1.8.0-3_source.buildinfo
Files:
 b6795b42cf7b9fc0f5931f9a401f88df 2200 python optional pykwalify_1.8.0-3.dsc
 94eb0f3893e9062a1e10326bad1e08ff 4016 python optional 
pykwalify_1.8.0-3.debian.tar.xz
 6dcfd5fee413b59eb87541bae799fba2 6424 python optional 
pykwalify_1.8.0-3_source.buildinfo


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

iQIzBAEBCgAdFiEEe/X2rDZDH11A3BN6TPKyGPVNrj0FAmfhb9wACgkQTPKyGPVN
rj2GLA//a4DRiMSZg6QEayEbFkkOUcIq7fc936fi5izB3tOHwYWlDUmPlCbv+xUP
eYPG0PH65AWFDhg7RDL6LVsVFMM6irKK/3dHUCanZsL94h/NyHUz7nTT2t9ILUkq
Lw+IlMD+moweUzGO7Z6jwZ/rhCxToXE2Mi7uEau8lK3ArGBGnUgCOWKLQzGPUppr
BcdRDfFEyOy4xdOAWTUPs+Ja9nOVOtw3NLPpsXdTM+WjBz7VLX/4mnS3Nzz5PvV6
gB85ncRi06/C0whPnsHbyOoCwRecDIRaUPaJM7g1zzDgaX3MVgyk3ZGiCJpCHIwX
0t2+6eqnLS5cw69Mecb++j6WvfR5jesPpJp5kCzTzEpxuvhedvF8nu1a+p4H2b6R
Ni/YnMWWUi1ongaGg3b5f4TkbBjqPkL+SyZ2aY1xaYa4oQ44iW3RsH91Jt37sV/C
CwMZmst75u12I+IXGN/MWixZvZN44UUfbLfh0AaU326hmKlJ558vNvSyTe9AbnXz
MwFmcnb1QTKEYezS5TPTVjxkoq/M3WVXNNpvbAxGTtoc7riYwTxzYuKgjidl/00f
LC7WtSliESNpsGeqckMULvraLFWsybylsWWpEqHaP36oE6jzsVrQRorKRs9t0w9y
WWk02k5GYNy66Lfu0UNROsUKKS8XJL2q5ho4dJrEAVhRVwnacpA=
=I8Gb
-----END PGP SIGNATURE-----

Attachment: pgpaqqkY7vkco.pgp
Description: PGP signature


--- End Message ---

Reply via email to