Filter out empty py.typed files in Python site-packages

This commit is contained in:
Miro Hrončok 2021-01-25 15:05:32 +01:00
parent 00196912df
commit 77d737a57a
2 changed files with 6 additions and 1 deletions

View File

@ -461,6 +461,8 @@ addFilter("info-files-without-install-info-postun")
addFilter("postin-without-install-info")
# pip 20.2 generates PEP 376 "REQUESTED" marker (empty)
addFilter(r"zero-length .+/site-packages/.+\.dist-info/REQUESTED\b")
# py.typed files are empty
addFilter(r"zero-length .+/site-packages/.+/py\.typed\b")
bad_crypto_warning = \
'''This application package calls a function to explicitly set crypto ciphers

View File

@ -20,7 +20,7 @@
Name: rpmlint
Version: 1.11
Release: 12%{?dist}
Release: 13%{?dist}
Summary: Tool for checking common errors in RPM packages
License: GPLv2
URL: https://github.com/rpm-software-management/rpmlint
@ -163,6 +163,9 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8}
%{_mandir}/man1/rpmlint.1*
%changelog
* Mon Jan 25 2021 Miro Hrončok <mhroncok@redhat.com> - 1.11-13
- Filter out empty py.typed files in Python site-packages
* Fri Aug 21 2020 Miro Hrončok <mhroncok@redhat.com> - 1.11-12
- Filter out empty REQUESTED files in pip installed Python metadata dist-info dirs