Source: python-makefun
Version: 1.15.2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240702 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules build
> dh build --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
> module
> I: pybuild base:311: python3.12 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12  
> * Building wheel...
> <string>:19: DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml 
> does not contain a tool.setuptools_scm section'
> Traceback (most recent call last):
>   File 
> "/usr/lib/python3/dist-packages/setuptools_scm/_integration/pyproject_reading.py",
>  line 36, in read_pyproject
>     section = defn.get("tool", {})[tool_name]
>               ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
> KeyError: 'setuptools_scm'
> running bdist_wheel
> running build
> running build_py
> creating build
> creating build/lib
> creating build/lib/makefun
> copying src/makefun/main.py -> build/lib/makefun
> copying src/makefun/_main_legacy_py.py -> build/lib/makefun
> copying src/makefun/_version.py -> build/lib/makefun
> copying src/makefun/_main_py35_and_higher.py -> build/lib/makefun
> copying src/makefun/__init__.py -> build/lib/makefun
> copying src/makefun/_main_py36_and_higher.py -> build/lib/makefun
> copying src/makefun/py.typed -> build/lib/makefun
> installing to build/bdist.linux-x86_64/wheel
> running install
> running install_lib
> creating build/bdist.linux-x86_64
> creating build/bdist.linux-x86_64/wheel
> creating build/bdist.linux-x86_64/wheel/makefun
> copying build/lib/makefun/main.py -> build/bdist.linux-x86_64/wheel/makefun
> copying build/lib/makefun/_main_legacy_py.py -> 
> build/bdist.linux-x86_64/wheel/makefun
> copying build/lib/makefun/_version.py -> 
> build/bdist.linux-x86_64/wheel/makefun
> copying build/lib/makefun/py.typed -> build/bdist.linux-x86_64/wheel/makefun
> copying build/lib/makefun/_main_py35_and_higher.py -> 
> build/bdist.linux-x86_64/wheel/makefun
> copying build/lib/makefun/__init__.py -> 
> build/bdist.linux-x86_64/wheel/makefun
> copying build/lib/makefun/_main_py36_and_higher.py -> 
> build/bdist.linux-x86_64/wheel/makefun
> running install_egg_info
> running egg_info
> creating src/makefun.egg-info
> writing src/makefun.egg-info/PKG-INFO
> writing dependency_links to src/makefun.egg-info/dependency_links.txt
> writing requirements to src/makefun.egg-info/requires.txt
> writing top-level names to src/makefun.egg-info/top_level.txt
> writing manifest file 'src/makefun.egg-info/SOURCES.txt'
> reading manifest file 'src/makefun.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'src/makefun.egg-info/SOURCES.txt'
> Copying src/makefun.egg-info to 
> build/bdist.linux-x86_64/wheel/makefun-1.15.2.egg-info
> running install_scripts
> creating build/bdist.linux-x86_64/wheel/makefun-1.15.2.dist-info/WHEEL
> creating 
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/.tmp-8h9lkgha/makefun-1.15.2-py2.py3-none-any.whl'
>  and adding 'build/bdist.linux-x86_64/wheel' to it
> adding 'makefun/__init__.py'
> adding 'makefun/_main_legacy_py.py'
> adding 'makefun/_main_py35_and_higher.py'
> adding 'makefun/_main_py36_and_higher.py'
> adding 'makefun/_version.py'
> adding 'makefun/main.py'
> adding 'makefun/py.typed'
> adding 'makefun-1.15.2.dist-info/LICENSE'
> adding 'makefun-1.15.2.dist-info/METADATA'
> adding 'makefun-1.15.2.dist-info/WHEEL'
> adding 'makefun-1.15.2.dist-info/top_level.txt'
> adding 'makefun-1.15.2.dist-info/RECORD'
> removing build/bdist.linux-x86_64/wheel
> Successfully built makefun-1.15.2-py2.py3-none-any.whl
> I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with 
> "installer" module
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; 
> python3.12 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- 
> /usr/bin/python3.12
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> collecting ... collected 96 items
> 
> tests/test_advanced.py::test_non_representable_defaults PASSED           [  
> 1%]
> tests/test_advanced.py::test_preserve_attributes PASSED                  [  
> 2%]
> tests/test_advanced.py::test_empty_name_in_string PASSED                 [  
> 3%]
> tests/test_advanced.py::test_same_than_wraps_basic PASSED                [  
> 4%]
> tests/test_advanced.py::tests_wraps_sigchange PASSED                     [  
> 5%]
> tests/test_advanced.py::tests_wraps_lambda PASSED                        [  
> 6%]
> tests/test_advanced.py::tests_wraps_renamed_lambda PASSED                [  
> 7%]
> tests/test_advanced.py::test_lambda_signature_str PASSED                 [  
> 8%]
> tests/test_advanced.py::test_co_name PASSED                              [  
> 9%]
> tests/test_advanced.py::test_with_signature_lambda PASSED                [ 
> 10%]
> tests/test_advanced.py::test_create_wrapper_lambda PASSED                [ 
> 11%]
> tests/test_advanced.py::test_invalid_co_name PASSED                      [ 
> 12%]
> tests/test_advanced.py::test_invalid_func_name PASSED                    [ 
> 13%]
> tests/test_advanced.py::test_qualname_when_nested PASSED                 [ 
> 14%]
> tests/test_advanced.py::test_type_hint_error PASSED                      [ 
> 15%]
> tests/test_advanced.py::test_type_hint_error2 PASSED                     [ 
> 16%]
> tests/test_advanced.py::test_type_hint_error_sigchange PASSED            [ 
> 17%]
> tests/test_compile_deco.py::test_compilefun PASSED                       [ 
> 18%]
> tests/test_compile_deco.py::test_compilefun_nested PASSED                [ 
> 19%]
> tests/test_compile_deco.py::test_compilefun_nested_already_compiled PASSED [ 
> 20%]
> tests/test_compile_deco.py::test_compilefun_nested_exclude[variant=all] 
> PASSED [ 21%]
> tests/test_compile_deco.py::test_compilefun_nested_exclude[variant=named] 
> PASSED [ 22%]
> tests/test_compile_deco.py::test_compilefun_co_names PASSED              [ 
> 23%]
> tests/test_compile_deco.py::test_compilefun_nameerror PASSED             [ 
> 25%]
> tests/test_compile_deco.py::test_compilefun_method PASSED                [ 
> 26%]
> tests/test_compile_deco.py::test_compileclass_decorator PASSED           [ 
> 27%]
> tests/test_create_from_signature.py::test_positional_only PASSED         [ 
> 28%]
> tests/test_create_from_string.py::test_basic[type_hints=False-self_ref=True] 
> PASSED [ 29%]
> tests/test_create_from_string.py::test_basic[type_hints=False-self_ref=False] 
> PASSED [ 30%]
> tests/test_create_from_string.py::test_basic[type_hints=1-self_ref=True] 
> PASSED [ 31%]
> tests/test_create_from_string.py::test_basic[type_hints=1-self_ref=False] 
> PASSED [ 32%]
> tests/test_create_from_string.py::test_basic[type_hints=2-self_ref=True] 
> PASSED [ 33%]
> tests/test_create_from_string.py::test_basic[type_hints=2-self_ref=False] 
> PASSED [ 34%]
> tests/test_create_from_string.py::test_type_comments SKIPPED (This t...) [ 
> 35%]
> tests/test_create_from_string.py::TestArguments::test_case_simple PASSED [ 
> 36%]
> tests/test_create_from_string.py::TestArguments::test_case_simple_with_star 
> PASSED [ 37%]
> tests/test_create_from_string.py::TestArguments::test_case_simple_with_star_args1
>  PASSED [ 38%]
> tests/test_create_from_string.py::TestArguments::test_case_simple_with_star_args2
>  PASSED [ 39%]
> tests/test_create_from_string.py::TestArguments::test_case_with_type_comments_and_newlines
>  PASSED [ 40%]
> tests/test_doc.py::test_ex_nihilo[type=str-decorator=False] PASSED       [ 
> 41%]
> tests/test_doc.py::test_ex_nihilo[type=str-decorator=True] PASSED        [ 
> 42%]
> tests/test_doc.py::test_ex_nihilo[type=Signature-decorator=False] PASSED [ 
> 43%]
> tests/test_doc.py::test_ex_nihilo[type=Signature-decorator=True] PASSED  [ 
> 44%]
> tests/test_doc.py::test_ex_nihilo_kw_only PASSED                         [ 
> 45%]
> tests/test_doc.py::test_from_sig_wrapper[use_decorator=False] PASSED     [ 
> 46%]
> tests/test_doc.py::test_from_sig_wrapper[use_decorator=True] PASSED      [ 
> 47%]
> tests/test_doc.py::test_helper_functions PASSED                          [ 
> 48%]
> tests/test_doc.py::test_injection PASSED                                 [ 
> 50%]
> tests/test_doc.py::test_var_length PASSED                                [ 
> 51%]
> tests/test_doc.py::test_positional_only PASSED                           [ 
> 52%]
> tests/test_doc.py::test_with_signature PASSED                            [ 
> 53%]
> tests/test_doc.py::test_with_signature_none PASSED                       [ 
> 54%]
> tests/test_doc.py::test_wraps hello!
> b=2
> hello!
> b=0
> hello!
> b=1
> 
> PASSED                                     [ 55%]
> tests/test_doc.py::test_wraps_functools hello!
> b=0
> hello!
> 
> PASSED                           [ 56%]
> tests/test_doc.py::test_wraps_remove PASSED                              [ 
> 57%]
> tests/test_doc.py::test_wraps_add_doc PASSED                             [ 
> 58%]
> tests/test_doc.py::test_wraps_add[prepend=True] PASSED                   [ 
> 59%]
> tests/test_doc.py::test_wraps_add[prepend=False] PASSED                  [ 
> 60%]
> tests/test_generators_coroutines.py::test_generator PASSED               [ 
> 61%]
> tests/test_generators_coroutines.py::test_generator_with_signature PASSED [ 
> 62%]
> tests/test_generators_coroutines.py::test_generator_based_coroutine PASSED [ 
> 63%]
> tests/test_generators_coroutines.py::test_native_coroutine PASSED        [ 
> 64%]
> tests/test_generators_coroutines.py::test_issue_96 PASSED                [ 
> 65%]
> tests/test_issues.py::test_wraps_varpositional SKIPPED (known to fail)   [ 
> 66%]
> tests/test_issues.py::test_varpositional2 PASSED                         [ 
> 67%]
> tests/test_issues.py::test_invalid_signature_str PASSED                  [ 
> 68%]
> tests/test_issues.py::test_invalid_signature_str_py3 PASSED              [ 
> 69%]
> tests/test_issues.py::test_return_annotation_in_py2 PASSED               [ 
> 70%]
> tests/test_issues.py::test_init_replaced PASSED                          [ 
> 71%]
> tests/test_issues.py::test_issue_55 PASSED                               [ 
> 72%]
> tests/test_issues.py::test_partial_noargs PASSED                         [ 
> 73%]
> tests/test_issues.py::test_wraps_dict PASSED                             [ 
> 75%]
> tests/test_issues.py::test_issue_62 PASSED                               [ 
> 76%]
> tests/test_issues.py::test_issue_63 PASSED                               [ 
> 77%]
> tests/test_issues.py::test_issue_66 PASSED                               [ 
> 78%]
> tests/test_issues.py::test_issue_pr_67 PASSED                            [ 
> 79%]
> tests/test_issues.py::test_issue_76 PASSED                               [ 
> 80%]
> tests/test_issues.py::test_issue_77_async_generator_wraps PASSED         [ 
> 81%]
> tests/test_issues.py::test_issue_77_async_generator_partial PASSED       [ 
> 82%]
> tests/test_issues.py::test_issue_85_wrapped_forwardref_annotation PASSED [ 
> 83%]
> tests/test_issues.py::test_issue_91 PASSED                               [ 
> 84%]
> tests/test_partial_and_macros.py::test_doc PASSED                        [ 
> 85%]
> tests/test_partial_and_macros.py::test_partial PASSED                    [ 
> 86%]
> tests/test_partial_and_macros.py::test_issue_57 PASSED                   [ 
> 87%]
> tests/test_partial_and_macros.py::test_create_with_partial PASSED        [ 
> 88%]
> tests/test_partial_and_macros.py::test_args_order_and_kind FAILED        [ 
> 89%]
> tests/test_partial_and_macros.py::test_simple_partial_copy[False] PASSED [ 
> 90%]
> tests/test_partial_and_macros.py::test_simple_partial_copy[True] PASSED  [ 
> 91%]
> tests/test_so.py::test_create_facades This is generic impl called by func1
> called from func1 !
> This is generic impl called by func2
> This is generic impl called by func3
> 
> PASSED                             [ 92%]
> tests/test_so.py::test_so_decorator PASSED                               [ 
> 93%]
> tests/test_so.py::test_so_facade PASSED                                  [ 
> 94%]
> tests/test_so.py::test_so_sig_preserving Help on function my_func in module 
> tests.test_so:
> 
> my_func(x)
>     my function
> 
> 
> PASSED                          [ 95%]
> tests/test_so.py::test_sig_preserving_2 wrapper executes
> 22
> Help on function funny_function in module tests.test_so:
> 
> funny_function(x, y, z=3)
>     Computes x*y + 2*z
> 
> 
> PASSED                           [ 96%]
> tests/test_so.py::test_so_partial Help on function foo in module 
> tests.test_so:
> 
> foo(a, *, b=10, c=1)
>     <This function is equivalent to 'foo(a, b=10, c=1)', see original 'foo' 
> doc below.>
>     Return (a+b)*c.
> 
> 
> PASSED                                 [ 97%]
> tests/test_so.py::test_so_partial2 hello world
> 1 2
> Help on function test in module tests.test_so:
> 
> test(*, a='hello', b='world', x, y)
>     <This function is equivalent to 'test(a='hello', b='world', x, y)'.>
> 
> Help on function test in module tests.test_so:
> 
> test(*, a='hello', b='world', x, y)
>     <This function is equivalent to 'test(a='hello', b='world', x, y)', see 
> original 'test' doc below.>
>     Here is a doc
> 
> 
> PASSED                                [ 98%]
> tests/test_so.py::test_so_partial_posargs Help on function test in module 
> tests.test_so:
> 
> test(*, b='world', x, y)
>     <This function is equivalent to 'test('hello', b='world', x, y)'.>
> 
> 
> PASSED                         [100%]
> 
> =================================== FAILURES 
> ===================================
> ___________________________ test_args_order_and_kind 
> ___________________________
> 
>     def test_args_order_and_kind():
>         """Make sure that the order remains ok"""
>     
>         def f(a, b, c, **d):
>             return a + b + c + sum(d)
>     
>         # reference: functools.partial
>         fp_ref = functools.partial(f, b=0)
>     
>         # except in python 2, all kwargs following the predefined arg become 
> kw-only
>         if sys.version_info < (3,):
>             assert str(signature(fp_ref)) == "(a, b=0, c, **d)"
>         else:
>             assert str(signature(fp_ref)) == "(a, *, b=0, c, **d)"
>     
>         # our makefun.partial
>         fp = makefun.partial(f, b=0)
>     
>         # same behaviour - except in python 2 where our "KW_ONLY_ARG!" appear
>         assert str(signature(fp_ref)) == 
> str(signature(fp)).replace("=KW_ONLY_ARG!", "")
>     
>         # positional-only behaviour
>         if sys.version_info >= (3, 8):
>             from ._test_py38 import make_pos_only_f
>             f = make_pos_only_f()
>     
>             # it is possible to keyword-partialize a positional-only 
> argument...
>             fp_ref = functools.partial(f, b=0)
>     
>             # but 'signature' does not support it !
> >           with pytest.raises(ValueError):
> E           Failed: DID NOT RAISE <class 'ValueError'>
> 
> tests/test_partial_and_macros.py:165: Failed
> =============================== warnings summary 
> ===============================
> .pybuild/cpython3_3.12/build/tests/test_generators_coroutines.py::test_native_coroutine
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/tests/test_generators_coroutines.py:96:
>  DeprecationWarning: There is no current event loop
>     out = get_event_loop().run_until_complete(dynamic_fun(0.1))
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED tests/test_partial_and_macros.py::test_args_order_and_kind - Failed: 
> D...
> ============== 1 failed, 93 passed, 2 skipped, 1 warning in 0.53s 
> ==============
> E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2024/07/02/python-makefun_1.15.2-1_unstable.log

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

Reply via email to