Bug#1042307: python-outcome: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 returned exit code 13

2023-11-03 Thread Tianyu Chen

Control: tag -1 patch

diff -Nru python-outcome-1.2.0/debian/changelog 
python-outcome-1.2.0/debian/changelog
--- python-outcome-1.2.0/debian/changelog   2022-07-03 21:00:10.0 
+0800
+++ python-outcome-1.2.0/debian/changelog   2023-11-03 17:05:18.0 
+0800
@@ -1,3 +1,10 @@
+python-outcome (1.2.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Declare explict B-D on python3-attr. Closes: #1042307
+
+ -- Tianyu Chen   Fri, 03 Nov 2023 17:05:18 +0800
+
 python-outcome (1.2.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru python-outcome-1.2.0/debian/control 
python-outcome-1.2.0/debian/control
--- python-outcome-1.2.0/debian/control 2022-07-03 20:54:37.0 +0800
+++ python-outcome-1.2.0/debian/control 2023-11-03 17:05:14.0 +0800
@@ -8,6 +8,7 @@
dh-python,
python3,
python3-async-generator,
+   python3-attr,
python3-pytest,
python3-setuptools
 Homepage: https://github.com/python-trio/outcome


OpenPGP_0x361D0FCF29AEC6B8.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1042307: python-outcome: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 returned exit code 13

2023-10-10 Thread Tianyu Chen

On Wed, 26 Jul 2023 22:07:08 +0200 Lucas Nussbaum wrote:
> >  ERRORS 

> > __ ERROR collecting 
.pybuild/cpython3_3.11/build/tests/test_async.py ___
> > ImportError while importing test module 
'/<>/.pybuild/cpython3_3.11/build/tests/test_async.py'.

> > Hint: make sure your test modules/packages have valid Python names.
> > Traceback:
> > /usr/lib/python3.11/importlib/__init__.py:126: in import_module
> > return _bootstrap._gcd_import(name[level:], package, level)
> > tests/test_async.py:6: in
> > import outcome
> > outcome/__init__.py:3: in
> > from ._impl import Error, Outcome, Value, acapture, capture
> > outcome/_impl.py:3: in
> > import attr
> > E ModuleNotFoundError: No module named 'attr'


It seems that python-outcome should explicitly declare B-D on python3-attr.


Tianyu Chen @ Deepin


OpenPGP_0x361D0FCF29AEC6B8.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1042307: python-outcome: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 returned exit code 13

2023-07-26 Thread Lucas Nussbaum
Source: python-outcome
Version: 1.2.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230726 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
> I: pybuild base:240: python3.11 setup.py config 
> running config
>dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<>/.pybuild/cpython3_3.11/build/outcome
> copying src/outcome/_version.py -> 
> /<>/.pybuild/cpython3_3.11/build/outcome
> copying src/outcome/__init__.py -> 
> /<>/.pybuild/cpython3_3.11/build/outcome
> copying src/outcome/_util.py -> 
> /<>/.pybuild/cpython3_3.11/build/outcome
> copying src/outcome/_impl.py -> 
> /<>/.pybuild/cpython3_3.11/build/outcome
>dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<>/.pybuild/cpython3_3.11/build; 
> python3.11 -m pytest tests
> = test session starts 
> ==
> platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0
> rootdir: /<>
> configfile: setup.cfg
> collected 0 items / 2 errors
> 
>  ERRORS 
> 
> __ ERROR collecting .pybuild/cpython3_3.11/build/tests/test_async.py 
> ___
> ImportError while importing test module 
> '/<>/.pybuild/cpython3_3.11/build/tests/test_async.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> tests/test_async.py:6: in 
> import outcome
> outcome/__init__.py:3: in 
> from ._impl import Error, Outcome, Value, acapture, capture
> outcome/_impl.py:3: in 
> import attr
> E   ModuleNotFoundError: No module named 'attr'
> ___ ERROR collecting .pybuild/cpython3_3.11/build/tests/test_sync.py 
> ___
> ImportError while importing test module 
> '/<>/.pybuild/cpython3_3.11/build/tests/test_sync.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> tests/test_sync.py:6: in 
> import outcome
> outcome/__init__.py:3: in 
> from ._impl import Error, Outcome, Value, acapture, capture
> outcome/_impl.py:3: in 
> import attr
> E   ModuleNotFoundError: No module named 'attr'
> === warnings summary 
> ===
> ../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1373
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1373: 
> PytestConfigWarning: Unknown config option: asyncio_mode
>   
> self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> === short test summary info 
> 
> ERROR tests/test_async.py
> ERROR tests/test_sync.py
> !!! Interrupted: 2 errors during collection 
> 
> = 1 warning, 2 errors in 0.14s 
> =
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=2: cd 
> /<>/.pybuild/cpython3_3.11/build; python3.11 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/07/26/python-outcome_1.2.0-1_unstable.log

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