Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931741 - dev-python/ini2toml-0.14 fails tests: FAILED test_cli.py::test_auto_formatting - SystemExit: 2
Summary: dev-python/ini2toml-0.14 fails tests: FAILED test_cli.py::test_auto_formattin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-05-11 13:11 UTC by Agostino Sarubbo
Modified: 2024-05-13 12:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,137.67 KB, text/plain)
2024-05-11 13:11 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-05-11 13:11:09 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/ini2toml-0.14 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-05-11 13:11:10 UTC
Created attachment 892736 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-05-11 13:11:11 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
FAILED tests/test_cli.py::test_auto_formatting - SystemExit: 2
tests/test_cli.py::test_auto_formatting FAILED                          [51/72]
    self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-05-11 13:43:51 UTC
What do you get from:

  pypy3 -c 'from pyproject_fmt import Config, format_pyproject'
Comment 4 Agostino Sarubbo gentoo-dev 2024-05-13 12:36:16 UTC
(In reply to Michał Górny from comment #3)
> What do you get from:
> 
>   pypy3 -c 'from pyproject_fmt import Config, format_pyproject'

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'Config' from 'pyproject_fmt' (/usr/lib/pypy3.10/site-packages/pyproject_fmt/__init__.py)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-05-13 12:49:50 UTC
Ah, sorry, my bad.  I must've accidentally tested against -1.
Comment 6 Larry the Git Cow gentoo-dev 2024-05-13 12:53:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0820eebcad838498394f337123b2d18c2b81be0

commit f0820eebcad838498394f337123b2d18c2b81be0
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-05-13 12:51:22 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-05-13 12:53:44 +0000

    dev-python/ini2toml: Remove pyproject-fmt (<2) dep entirely
    
    The package currently does not support dev-python/pyproject-fmt-2 API.
    Let's remove the dependency to avoid forcing a downgrade, and instead
    skip the test if the correct version is not installed.
    
    Closes: https://bugs.gentoo.org/931741
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/ini2toml/ini2toml-0.14.ebuild | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)