When updating, the following errors are displayed:
==> Starting check()...
================================================================== test session starts ==================================================================
platform linux -- Python 3.11.6, pytest-8.0.0, pluggy-1.4.0
rootdir: /var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core
collected 0 items / 27 errors
======================================================================== ERRORS =========================================================================
____________________________________________________ ERROR collecting gitlint/tests/cli/test_cli.py _____________________________________________________
ImportError while importing test module '/var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core/gitlint/tests/cli/test_cli.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
gitlint/tests/cli/test_cli.py:11: in <module>
from gitlint.tests.base import BaseTestCase
E ModuleNotFoundError: No module named 'gitlint.tests'
_________________________________________________ ERROR collecting gitlint/tests/cli/test_cli_hooks.py __________________________________________________
ImportError while importing test module '/var/home/yorickpeterse/homes/arch/.cache/yay/gitlint/src/gitlint-0.19.1/gitlint-core/gitlint/tests/cli/test_cli_hooks.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
gitlint/tests/cli/test_cli_hooks.py:8: in <module>
from gitlint.tests.base import BaseTestCase
E ModuleNotFoundError: No module named 'gitlint.tests'
To fix this I had to remove the check
function.
Pinned Comments
carsme commented on 2023-07-25 06:39 (UTC)
Updating to version 0.17.0-6 requires manual intervention - gitlint must be explicitly uninstalled and installed from scratch. Updating in-place from 0.17.0-5 to 0.17.0-6 causes a conflict for the completion files.