FS#79988 - [python-pytoolconfig] mssing checkdepends 'python-platformdirs'

Attached to Project: Arch Linux
Opened by Xeonacid (Xeonacid) - Tuesday, 17 October 2023, 14:23 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

=================================== FAILURES ===================================
_________________________________ test_global __________________________________

cwd = PosixPath('/build/python-pytoolconfig/src/pytoolconfig-1.2.5/tests/configfiles')

def test_global(cwd):
if sys.platform != "linux":
pytest.skip()
os.environ["XDG_CONFIG_HOME"] = cwd.as_posix()
> config = PyToolConfig("bogus", cwd, NestedModel, global_config=True)

tests/test_pytoolconfig.py:86:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pytoolconfig/pytoolconfig.py:63: in __init__
self.sources.append(PyTool(tool))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pytoolconfig.sources.pytool.PyTool object at 0x7fb4c26f7550>
tool = 'bogus'

def __init__(self, tool: str):
"""Initialize the TOML configuration.

:param tool: name of your tool. Will read configuration from [tool.yourtool]
"""
> import platformdirs
E ModuleNotFoundError: No module named 'platformdirs'

pytoolconfig/sources/pytool.py:25: ModuleNotFoundError
=========================== short test summary info ============================
FAILED tests/test_pytoolconfig.py::test_global - ModuleNotFoundError: No modu...
========================= 1 failed, 14 passed in 0.16s =========================
==> ERROR: A failure occurred in check().



A PKGBUILD patch is attached.
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:20 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/python-pytoolconfig/is sues/2

Loading...