Update python macros.

This commit is contained in:
Jerry James 2022-01-14 14:21:19 -07:00
parent 6b5ec99780
commit 8675fa775d
2 changed files with 4 additions and 13 deletions

View File

@ -1,11 +0,0 @@
# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors
# Zip files are not text
addFilter(r'W: file-not-utf8 .*.zip')
# Dangling font symlinks: the Requires ensures they will not dangle
addFilter(r'W: dangling-symlink .*fonts')
# We use the versions of jquery and js-underscore that sphinx gives us
addFilter(r'W: unversioned-explicit-provides bundled\((jquery|js-underscore)\)')

View File

@ -24,8 +24,10 @@ BuildRequires: python3-devel
BuildRequires: %{py3_dist matplotlib}
BuildRequires: %{py3_dist numpy}
BuildRequires: %{py3_dist pandas}
BuildRequires: %{py3_dist pip}
BuildRequires: %{py3_dist scipy}
BuildRequires: %{py3_dist setuptools}
BuildRequires: %{py3_dist wheel}
%if 0%{?rhel} == 0
BuildRequires: python-pygraphviz-doc
@ -105,7 +107,7 @@ sed -e 's|\("https://docs\.python\.org/3/", \)None|\1"%{_docdir}/python3-docs/ht
-i doc/conf.py
%build
%py3_build
%pyproject_wheel
%if 0%{?rhel} == 0
# Build the documentation
@ -114,7 +116,7 @@ rst2html --no-datestamp README.rst README.html
%endif
%install
%py3_install
%pyproject_install
mv %{buildroot}%{_docdir}/networkx-%{version} ./installed-docs
rm -f installed-docs/INSTALL.txt