Right now, we would like to use some xml.etree functionality that
is there since 3.8.
Thus I'm suggesting using Python 3.8 that's out for quite some time.
addressing:
Traceback (most recent call last):
File "/home/msuchy/projects/rpmlint/lint.py", line 5, in <module>
lint()
File "/home/msuchy/projects/rpmlint/rpmlint/cli.py", line 173, in lint
lint = Lint(options)
File "/home/msuchy/projects/rpmlint/rpmlint/lint.py", line 53, in __init__
self.load_checks()
File "/home/msuchy/projects/rpmlint/rpmlint/lint.py", line 291, in load_checks
self.checks[check] = self.load_check(check)
File "/home/msuchy/projects/rpmlint/rpmlint/lint.py", line 295, in load_check
module = importlib.import_module(f'.{name}', package='rpmlint.checks')
File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/home/msuchy/projects/rpmlint/rpmlint/checks/ErlangCheck.py", line 3, in <module>
from pybeam import BeamFile
ModuleNotFoundError: No module named 'pybeam'
The podman is the solution on RHEL/SLE and present on Fedora/openSUSE
in a root-less mode.
This adds podman (projectatomic) ppa to be setup before install and
fetches the podman from there (as it is not natively on Ubuntu yet).
Now all the configs are loaded and based on toml specs the latest
config tages priority in overshadowing -> if section is specified
in the configuration it overrides section in any earlier config.
The order of configuration loading is:
defaults
/etc/xdg/
$HOME/.config/
user-specified-file