Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936809 - [guru] sys-power/amdfan-0.2.1-r1 fails tests: ImportError: cannot import name Self from typing typing.py
Summary: [guru] sys-power/amdfan-0.2.1-r1 fails tests: ImportError: cannot import name...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mazunki Hoksaas
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-07-28 05:47 UTC by Agostino Sarubbo
Modified: 2024-07-28 21:21 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,58.95 KB, text/plain)
2024-07-28 05:47 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-07-28 05:47:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-power/amdfan-0.2.1-r1 fails tests.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-07-28 05:47:15 UTC
Created attachment 898431 [details]
build.log

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


ERROR: test_card (unittest.loader._FailedTest)
ERROR: test_cli (unittest.loader._FailedTest)
ERROR: test_curve (unittest.loader._FailedTest)
FAILED (errors=3)
ImportError: Failed to import test module: test_card
ImportError: Failed to import test module: test_cli
ImportError: Failed to import test module: test_curve
ImportError: cannot import name 'Self' from 'typing' (/usr/lib/python3.10/typing.py)
Comment 3 Philippe-Alexandre Mathieu 2024-07-28 18:25:48 UTC
`typing.Self`, as used in the test suite, was only added in Python3.11

Looking at the repo, it seems that support for 3.10 was dropped before 0.2.1 released. I've updated the PYTHON_COMPAT to exclude 3.10, and also include 3.13 as it is supported by the project.

(6fa58a9dddce)
Comment 4 Mazunki Hoksaas 2024-07-28 18:53:59 UTC
Hey, thanks for the revision, but the ebuild is still not ready.

I am currently in an active conversation with the main developer of the package, trying to sort out some issues with a recent merge I contributed.

If you look at the history of the package itself, you'll see the reason the version bump is available at its current state is because I accidentally pushed the manifest before it was ready, and stating I would revise the ebuild in a few days. 

I want to keep this bug open until I sort out the other leaks.
Comment 5 Larry the Git Cow gentoo-dev 2024-07-28 21:21:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6fa58a9dddce5d2d6f42c38c07a5bc596d028c83

commit 6fa58a9dddce5d2d6f42c38c07a5bc596d028c83
Author:     Philippe-Alexandre Mathieu <pamathieu@poum.ca>
AuthorDate: 2024-07-28 18:16:43 +0000
Commit:     Philippe-Alexandre Mathieu <pamathieu@poum.ca>
CommitDate: 2024-07-28 18:16:43 +0000

    sys-power/amdfan: remove py3.10 and add py3.13
    
    Closes: https://bugs.gentoo.org/936809
    Signed-off-by: Philippe-Alexandre Mathieu <pamathieu@poum.ca>

 sys-power/amdfan/{amdfan-0.2.1-r1.ebuild => amdfan-0.2.1-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)