Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795474 - dev-python/js2py-0.70_p20210218 fails tests without pyjsparser installed for same PYTHON_TARGETS
Summary: dev-python/js2py-0.70_p20210218 fails tests without pyjsparser installed for ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-11 23:28 UTC by Jonathan Lovelace
Modified: 2021-06-12 05:51 UTC (History)
2 users (show)

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


Attachments
dev-python:js2py-0.70_p20210218:20210611-231511.log (dev-python:js2py-0.70_p20210218:20210611-231511.log,21.72 KB, text/x-log)
2021-06-11 23:28 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.02 KB, text/plain)
2021-06-11 23:28 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2021-06-11 23:28:01 UTC
Created attachment 715368 [details]
dev-python:js2py-0.70_p20210218:20210611-231511.log

When =dev-python/js2py-0.70_p20210218 is being built for a Python target that dev-python/pyjsparser is not yet installed for, and with tests enabled, its tests fail:

Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/js2py-0.70_p20210218/work/Js2Py-ea16b519a0f72e17416859a57890b8388fce6e39/tests/./run.py", 
line 2, in <module>
    import js2py
  File "/var/tmp/portage/dev-python/js2py-0.70_p20210218/work/Js2Py-ea16b519a0f72e17416859a57890b8388fce6e39-python3_9/lib/js2py/__init__.py", line 72, in <module>
    from .base import PyJsException
  File "/var/tmp/portage/dev-python/js2py-0.70_p20210218/work/Js2Py-ea16b519a0f72e17416859a57890b8388fce6e39-python3_9/lib/js2py/base.py", line 5, in <module>
    from .translators.friendly_nodes import REGEXP_CONVERTER
  File "/var/tmp/portage/dev-python/js2py-0.70_p20210218/work/Js2Py-ea16b519a0f72e17416859a57890b8388fce6e39-python3_9/lib/js2py/translators/__init__.py", line 27, in <module>
    from pyjsparser import PyJsParser
ModuleNotFoundError: No module named 'pyjsparser'

It looks to me like js2py needs to have "test? ( ${RDEPEND} )" added to its DEPEND?
Comment 1 Jonathan Lovelace 2021-06-11 23:28:22 UTC
Created attachment 715371 [details]
emerge-info.txt
Comment 2 Larry the Git Cow gentoo-dev 2021-06-12 05:51:50 UTC
The bug has been closed via the following commit(s):

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

commit c8b401fb344a92d409740a20413f14ad825e4960
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-12 05:51:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-12 05:51:43 +0000

    dev-python/js2py: add missing test BDEPEND
    
    Closes: https://bugs.gentoo.org/795474
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/js2py/js2py-0.70_p20210218.ebuild | 4 ++++
 1 file changed, 4 insertions(+)