Migrate patches for setup.py to pyproject.toml (rhbz#1899279)
Upstream migrated to pyproject.toml since 9fb26419ea2034460bf83efe3cc949e6eb6c3f5f.
This commit is contained in:
parent
04bdf3a358
commit
e819bfc83a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user