Am 23.11.23 um 09:56 schrieb Daniel Garcia:
Hi,
Dear Pythons,
as libtmux now requires python-gp-libs I started packaging it.
The package builds without tests and is usable, aka libtmux builds. But the tests are failing. Or rather aborted due to _pytest.pathlib.ImportPathMismatchError errors
https://build.opensuse.org/package/live_build_log/home:ojkastl_buildservice:... The main problem with tests is in the pyproject.toml file that configures testspaths with src folder there, so when running tests it imports from
On jue, 2023-11-23 at 07:07 +0100, Johannes Kastl wrote: there instead of from the installation.
I've created a request to solve that issue, simply moving the src folder.
https://build.opensuse.org/request/show/1128277
I've also fixed the requirements, that should be python-XXX, the macro does the replacement for every flavor.
To make it work I've also updated some outdated packages for you, so everything works:
* python-markdown-it-py * python-mdit-py-plugins * python-myst-parser
I have no clue why the tests are aborted. One thing I noted was tha t the package puts files into the %{python_sitelib}/ directory instead of into a subdirectory named after the package. Not sure if this is intended or related to the issues.
%{python_sitelib}/doctest_docutils.py %{python_sitelib}/docutils_compat.py %{python_sitelib}/gp_libs.py %{python_sitelib}/linkify_issues.py %{python_sitelib}/pytest_doctest_docutils.py This is okay, the package is providing those modules, IMHO it's not a good practice because it could lead to namespace collision, but it's okay.
Also, please don't own the toplevel __pycache__ folder, but only the generated pyc files in there. - Ben