--- Begin Message ---
Source: python-docxcompose
Version: 1.4.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> LC_TIME=C dh_auto_test -- --test-pytest
> I: pybuild base:311: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_docxcompose/build; python3.12 -m
> pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0
> rootdir: /<<PKGBUILDDIR>>
> collected 108 items
>
> tests/test_command.py . [
> 0%]
> tests/test_content_controls.py ... [
> 3%]
> tests/test_embedded_excel.py . [
> 4%]
> tests/test_fields.py ................ [
> 19%]
> tests/test_footnotes.py .. [
> 21%]
> tests/test_header.py .... [
> 25%]
> tests/test_hyperlinks.py . [
> 25%]
> tests/test_images.py ... [
> 28%]
> tests/test_numberings.py ............... [
> 42%]
> tests/test_properties.py .............................F.F.F........FFF. [
> 85%]
> tests/test_section.py ..... [
> 89%]
> tests/test_shapes.py . [
> 90%]
> tests/test_smartart.py . [
> 91%]
> tests/test_styles.py ........ [
> 99%]
> tests/test_table.py .
> [100%]
>
> =================================== FAILURES
> ===================================
> ___________________________ test_get_doc_properties
> ____________________________
>
> def test_get_doc_properties():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> assert props['Text Property'] == 'Foo Bar'
> assert props['Number Property'] == 123
> assert props['Boolean Property'] is True
> > assert props['Date Property'] == datetime(2019, 6, 11, 10, 0)
> E assert datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 6, 11, 10, 0)
> E + where datetime.datetime(2019, 6, 11, 10, 0) = datetime(2019, 6,
> 11, 10, 0)
>
> tests/test_properties.py:766: AssertionError
> ___________________________ test_add_doc_properties
> ____________________________
>
> def test_add_doc_properties():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> props.add('My Text Property', 'foo bar')
> assert props.get('My Text Property') == 'foo bar'
>
> props.add('My Boolean Property', True)
> assert props.get('My Boolean Property') is True
>
> props.add('My Number Property', 123)
> assert props.get('My Number Property') == 123
>
> props.add('My Date Property', datetime(2019, 10, 23, 15, 44, 50))
> > assert props.get('My Date Property') == datetime(2019, 10, 23, 15,
> > 44, 50)
> E AssertionError: assert datetime.datetime(2019, 10, 23, 15, 44, 50,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 10, 23, 15, 44, 50)
> E + where datetime.datetime(2019, 10, 23, 15, 44, 50,
> tzinfo=datetime.timezone.utc) = <bound method CustomProperties.get of
> <docxcompose.properties.CustomProperties object at 0x7f85c9881670>>('My Date
> Property')
> E + where <bound method CustomProperties.get of
> <docxcompose.properties.CustomProperties object at 0x7f85c9881670>> =
> <docxcompose.properties.CustomProperties object at 0x7f85c9881670>.get
> E + and datetime.datetime(2019, 10, 23, 15, 44, 50) =
> datetime(2019, 10, 23, 15, 44, 50)
>
> tests/test_properties.py:796: AssertionError
> ___________________________ test_set_doc_properties
> ____________________________
>
> def test_set_doc_properties():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> props['Text Property'] = 'baz'
> assert props['Text Property'] == 'baz'
>
> props['Boolean Property'] = False
> assert props['Boolean Property'] is False
>
> props['Number Property'] = 456
> assert props['Number Property'] == 456
>
> props['Date Property'] = datetime(2019, 10, 20, 12, 0)
> > assert props['Date Property'] == datetime(2019, 10, 20, 12, 0)
> E assert datetime.datetime(2019, 10, 20, 12, 0,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 10, 20, 12, 0)
> E + where datetime.datetime(2019, 10, 20, 12, 0) = datetime(2019, 10,
> 20, 12, 0)
>
> tests/test_properties.py:821: AssertionError
> __________________________ test_doc_properties_values
> __________________________
>
> def test_doc_properties_values():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> > assert props.values() == [
> 'Foo Bar', 123, True, datetime(2019, 6, 11, 10, 0), 1.1]
> E AssertionError: assert ['Foo Bar', 1...one.utc), 1.1] == ['Foo Bar',
> 1..., 10, 0), 1.1]
> E
> E At index 3 diff: datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) != datetime.datetime(2019, 6, 11, 10, 0)
> E Use -v to get more diff
>
> tests/test_properties.py:915: AssertionError
> __________________________ test_doc_properties_items
> ___________________________
>
> def test_doc_properties_items():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> > assert props.items() == [
> ('Text Property', 'Foo Bar'),
> ('Number Property', 123),
> ('Boolean Property', True),
> ('Date Property', datetime(2019, 6, 11, 10, 0)),
> ('Float Property', 1.1),
> ]
> E AssertionError: assert [('Text Prope...operty', 1.1)] == [('Text
> Prope...operty', 1.1)]
> E
> E At index 3 diff: ('Date Property', datetime.datetime(2019, 6, 11,
> 10, 0, tzinfo=datetime.timezone.utc)) != ('Date Property',
> datetime.datetime(2019, 6, 11, 10, 0))
> E Use -v to get more diff
>
> tests/test_properties.py:923: AssertionError
> _______________________ test_vt2value_value2vt_roundtrip
> _______________________
>
> def test_vt2value_value2vt_roundtrip():
> assert vt2value(value2vt(42)) == 42
> assert vt2value(value2vt(True)) is True
> assert vt2value(value2vt(1.1)) == pytest.approx(1.1)
> dt = datetime(2019, 6, 11, 10, 0)
> > assert vt2value(value2vt(dt)) == dt
> E assert datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 6, 11, 10, 0)
> E + where datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) = vt2value(<Element
> {http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}filetime
> at 0x7f85c960a580>)
> E + where <Element
> {http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}filetime
> at 0x7f85c960a580> = value2vt(datetime.datetime(2019, 6, 11, 10, 0))
>
> tests/test_properties.py:937: AssertionError
> =============================== warnings summary
> ===============================
> docxcompose/properties.py:18
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_docxcompose/build/docxcompose/properties.py:18:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> import pkg_resources
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED tests/test_properties.py::test_get_doc_properties - assert
> datetime.da...
> FAILED tests/test_properties.py::test_add_doc_properties - AssertionError:
> as...
> FAILED tests/test_properties.py::test_set_doc_properties - assert
> datetime.da...
> FAILED tests/test_properties.py::test_doc_properties_values -
> AssertionError:...
> FAILED tests/test_properties.py::test_doc_properties_items - AssertionError:
> ...
> FAILED tests/test_properties.py::test_vt2value_value2vt_roundtrip - assert
> da...
> =================== 6 failed, 102 passed, 1 warning in 1.56s
> ===================
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_docxcompose/build; python3.12 -m
> pytest tests
> I: pybuild base:311: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_docxcompose/build; python3.11 -m
> pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.9, pytest-8.2.2, pluggy-1.5.0
> rootdir: /<<PKGBUILDDIR>>
> collected 108 items
>
> tests/test_command.py . [
> 0%]
> tests/test_content_controls.py ... [
> 3%]
> tests/test_embedded_excel.py . [
> 4%]
> tests/test_fields.py ................ [
> 19%]
> tests/test_footnotes.py .. [
> 21%]
> tests/test_header.py .... [
> 25%]
> tests/test_hyperlinks.py . [
> 25%]
> tests/test_images.py ... [
> 28%]
> tests/test_numberings.py ............... [
> 42%]
> tests/test_properties.py .............................F.F.F........FFF. [
> 85%]
> tests/test_section.py ..... [
> 89%]
> tests/test_shapes.py . [
> 90%]
> tests/test_smartart.py . [
> 91%]
> tests/test_styles.py ........ [
> 99%]
> tests/test_table.py .
> [100%]
>
> =================================== FAILURES
> ===================================
> ___________________________ test_get_doc_properties
> ____________________________
>
> def test_get_doc_properties():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> assert props['Text Property'] == 'Foo Bar'
> assert props['Number Property'] == 123
> assert props['Boolean Property'] is True
> > assert props['Date Property'] == datetime(2019, 6, 11, 10, 0)
> E assert datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 6, 11, 10, 0)
> E + where datetime.datetime(2019, 6, 11, 10, 0) = datetime(2019, 6,
> 11, 10, 0)
>
> tests/test_properties.py:766: AssertionError
> ___________________________ test_add_doc_properties
> ____________________________
>
> def test_add_doc_properties():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> props.add('My Text Property', 'foo bar')
> assert props.get('My Text Property') == 'foo bar'
>
> props.add('My Boolean Property', True)
> assert props.get('My Boolean Property') is True
>
> props.add('My Number Property', 123)
> assert props.get('My Number Property') == 123
>
> props.add('My Date Property', datetime(2019, 10, 23, 15, 44, 50))
> > assert props.get('My Date Property') == datetime(2019, 10, 23, 15,
> > 44, 50)
> E AssertionError: assert datetime.datetime(2019, 10, 23, 15, 44, 50,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 10, 23, 15, 44, 50)
> E + where datetime.datetime(2019, 10, 23, 15, 44, 50,
> tzinfo=datetime.timezone.utc) = <bound method CustomProperties.get of
> <docxcompose.properties.CustomProperties object at 0x7fb5bef09f50>>('My Date
> Property')
> E + where <bound method CustomProperties.get of
> <docxcompose.properties.CustomProperties object at 0x7fb5bef09f50>> =
> <docxcompose.properties.CustomProperties object at 0x7fb5bef09f50>.get
> E + and datetime.datetime(2019, 10, 23, 15, 44, 50) =
> datetime(2019, 10, 23, 15, 44, 50)
>
> tests/test_properties.py:796: AssertionError
> ___________________________ test_set_doc_properties
> ____________________________
>
> def test_set_doc_properties():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> props['Text Property'] = 'baz'
> assert props['Text Property'] == 'baz'
>
> props['Boolean Property'] = False
> assert props['Boolean Property'] is False
>
> props['Number Property'] = 456
> assert props['Number Property'] == 456
>
> props['Date Property'] = datetime(2019, 10, 20, 12, 0)
> > assert props['Date Property'] == datetime(2019, 10, 20, 12, 0)
> E assert datetime.datetime(2019, 10, 20, 12, 0,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 10, 20, 12, 0)
> E + where datetime.datetime(2019, 10, 20, 12, 0) = datetime(2019, 10,
> 20, 12, 0)
>
> tests/test_properties.py:821: AssertionError
> __________________________ test_doc_properties_values
> __________________________
>
> def test_doc_properties_values():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> > assert props.values() == [
> 'Foo Bar', 123, True, datetime(2019, 6, 11, 10, 0), 1.1]
> E AssertionError: assert ['Foo Bar', 1...one.utc), 1.1] == ['Foo Bar',
> 1..., 10, 0), 1.1]
> E
> E At index 3 diff: datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) != datetime.datetime(2019, 6, 11, 10, 0)
> E Use -v to get more diff
>
> tests/test_properties.py:915: AssertionError
> __________________________ test_doc_properties_items
> ___________________________
>
> def test_doc_properties_items():
> document = Document(docx_path('docproperties.docx'))
> props = CustomProperties(document)
>
> > assert props.items() == [
> ('Text Property', 'Foo Bar'),
> ('Number Property', 123),
> ('Boolean Property', True),
> ('Date Property', datetime(2019, 6, 11, 10, 0)),
> ('Float Property', 1.1),
> ]
> E AssertionError: assert [('Text Prope...operty', 1.1)] == [('Text
> Prope...operty', 1.1)]
> E
> E At index 3 diff: ('Date Property', datetime.datetime(2019, 6, 11,
> 10, 0, tzinfo=datetime.timezone.utc)) != ('Date Property',
> datetime.datetime(2019, 6, 11, 10, 0))
> E Use -v to get more diff
>
> tests/test_properties.py:923: AssertionError
> _______________________ test_vt2value_value2vt_roundtrip
> _______________________
>
> def test_vt2value_value2vt_roundtrip():
> assert vt2value(value2vt(42)) == 42
> assert vt2value(value2vt(True)) is True
> assert vt2value(value2vt(1.1)) == pytest.approx(1.1)
> dt = datetime(2019, 6, 11, 10, 0)
> > assert vt2value(value2vt(dt)) == dt
> E assert datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) == datetime.datetime(2019, 6, 11, 10, 0)
> E + where datetime.datetime(2019, 6, 11, 10, 0,
> tzinfo=datetime.timezone.utc) = vt2value(<Element
> {http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}filetime
> at 0x7fb5beb40e40>)
> E + where <Element
> {http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes}filetime
> at 0x7fb5beb40e40> = value2vt(datetime.datetime(2019, 6, 11, 10, 0))
>
> tests/test_properties.py:937: AssertionError
> =============================== warnings summary
> ===============================
> docxcompose/properties.py:18
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_docxcompose/build/docxcompose/properties.py:18:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> import pkg_resources
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED tests/test_properties.py::test_get_doc_properties - assert
> datetime.da...
> FAILED tests/test_properties.py::test_add_doc_properties - AssertionError:
> as...
> FAILED tests/test_properties.py::test_set_doc_properties - assert
> datetime.da...
> FAILED tests/test_properties.py::test_doc_properties_values -
> AssertionError:...
> FAILED tests/test_properties.py::test_doc_properties_items - AssertionError:
> ...
> FAILED tests/test_properties.py::test_vt2value_value2vt_roundtrip - assert
> da...
> =================== 6 failed, 102 passed, 1 warning in 2.80s
> ===================
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_docxcompose/build; python3.11 -m
> pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12
> 3.11" --test-pytest returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/python-docxcompose_1.4.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&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 ---