Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803023 - app-text/xapers-0.9.0: src_test gets ran with unsupported python interpreter
Summary: app-text/xapers-0.9.0: src_test gets ran with unsupported python interpreter
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Pettersson
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-07-20 10:28 UTC by Joonas Niilola
Modified: 2021-07-22 07:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)