Update rpmlintrc rules to match rpmlint 2 and the current pip

We got:

    python3-pip.noarch: E: unused-rpmlintrc-filter "(non-executable-script|wrong-script-interpreter) .+/pip/_vendor/appdirs.py\b"
    python3-pip.noarch: E: unused-rpmlintrc-filter "zero-length .+/site-packages/.+\.dist-info/REQUESTED\b"
    python3-pip.noarch: E: unused-rpmlintrc-filter "W: spelling-error .* venv"
    python3-pip.noarch: E: non-executable-script /usr/lib/python3.11/site-packages/pip/_vendor/distro/distro.py 644 /usr/bin/env python
This commit is contained in:
Miro Hrončok 2023-05-22 11:55:02 +02:00
parent f58b7e613e
commit a378787915

View File

@ -1,15 +1,9 @@
# This is just temporary, when upstream merges PRs it can be removed # This is just temporary, when upstream merges PRs it can be removed
# https://github.com/ActiveState/appdirs/pull/144
# https://github.com/psf/requests/pull/5410 # https://github.com/psf/requests/pull/5410
addFilter(r'(non-executable-script|wrong-script-interpreter) .+/pip/_vendor/appdirs.py\b')
addFilter(r'(non-executable-script|wrong-script-interpreter) .+/pip/_vendor/requests/certs.py\b') addFilter(r'(non-executable-script|wrong-script-interpreter) .+/pip/_vendor/requests/certs.py\b')
# REQUESTED dist-info file is not meant to have any content # This file is actually a script but in the vendored context of pip, it is never executed
# Discussion: https://src.fedoraproject.org/rpms/python-pip/pull-request/69#comment-52525 addFilter(r'non-executable-script .+/pip/_vendor/distro/distro.py\b')
addFilter(r'zero-length .+/site-packages/.+\.dist-info/REQUESTED\b')
# We ship README with the main package but not with the wheel # We ship README with the main package but not with the wheel
addFilter(r'python-pip-wheel.noarch: W: no-documentation') addFilter(r'python-pip-wheel.noarch: W: no-documentation')
# SPELLING ERRORS
addFilter(r'W: spelling-error .* venv')