Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 803023

Summary: app-text/xapers-0.9.0: src_test gets ran with unsupported python interpreter
Product: Gentoo Linux Reporter: Joonas Niilola <juippis>
Component: Current packagesAssignee: William Pettersson <william>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/21732
Whiteboard:
Package list:
Runtime testing required: ---

Description Joonas Niilola gentoo-dev 2021-07-20 10:28:22 UTC
Just noticed that src_test() phase gets ran with the latest selected python interpreter even though it's not available in xaper's PYTHON_COMPAT. You should try to define the test phase as python_test(), or do some manual python calls in src_test.
  https://dev.gentoo.org/~mgorny/python-guide/

Also,
 * QA Notice: DISTUTILS_USE_SETUPTOOLS value is probably incorrect
 *   have:     DISTUTILS_USE_SETUPTOOLS=rdepend
 *   expected: (unset)
Comment 1 Larry the Git Cow gentoo-dev 2021-07-22 07:49:01 UTC
The bug has been closed via the following commit(s):

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

commit dda9becf18900acf7a185224cc677b5835d9a212
Author:     William Pettersson <william@ewpettersson.se>
AuthorDate: 2021-07-20 18:49:39 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-07-22 07:47:53 +0000

    app-text/xapers: Use python_test() for testing
    
    Changing src_test() to python_test() so the correct interpreter is used
    for tests, instead of just using the latest selected python interpreter.
    Also addresses QA notice by adding DISTUTILS_USE_SETUPTOOLS=rdepend
    
    Closes: https://bugs.gentoo.org/803023
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: William Pettersson <william@ewpettersson.se>
    Closes: https://github.com/gentoo/gentoo/pull/21732
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-text/xapers/xapers-0.9.0.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)