Migrate patches for setup.py to pyproject.toml (rhbz#1899279)

Upstream migrated to pyproject.toml since 9fb26419ea2034460bf83efe3cc949e6eb6c3f5f.
This commit is contained in:
Zephyr Lykos 2023-11-25 20:33:49 +08:00
parent 04bdf3a358
commit e819bfc83a
No known key found for this signature in database
GPG Key ID: D3E9D31E2F77F04D

View File

@ -54,12 +54,12 @@ and source packages as well as spec files can be checked.
%autosetup -p1 -Sgit %autosetup -p1 -Sgit
# Replace python-magic dep with file-magic (rhbz#1899279) # Replace python-magic dep with file-magic (rhbz#1899279)
sed -i 's/python-magic/file-magic/g' setup.py sed -i 's/python-magic/file-magic/g' pyproject.toml
%if 0%{?rhel} %if 0%{?rhel}
# Avoid extra dependencies for checks not needed in RHEL # Avoid extra dependencies for checks not needed in RHEL
# pybeam: ErlangCheck # pybeam: ErlangCheck
sed -i -e '/pybeam/d' setup.py sed -i -e '/pybeam/d' pyproject.toml
sed -i -e '/ErlangCheck/d' rpmlint/configdefaults.toml test/test_lint.py sed -i -e '/ErlangCheck/d' rpmlint/configdefaults.toml test/test_lint.py
%endif %endif