feat: drop sphinx docs subpackage
since sphinx generated docs are not appropriate for packaging
This commit is contained in:
parent
bcc083daff
commit
d46165d7e6
1 changed files with 0 additions and 23 deletions
|
|
@ -46,14 +46,6 @@ BuildRequires: %{py3_dist matplotlib}
|
|||
%description -n python3-nixio
|
||||
%{description}
|
||||
|
||||
%package doc
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinx_rtd_theme
|
||||
|
||||
%description doc
|
||||
Documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%forgesetup
|
||||
|
||||
|
|
@ -68,17 +60,6 @@ cp %{SOURCE1} nixio/info.json -v -p
|
|||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
PYTHONPATH=. sphinx-build-3 docs/source html
|
||||
# Remove unneeded files
|
||||
rm -fr html/.{buildinfo,doctrees}
|
||||
|
||||
# Remove shebang from documentation examples
|
||||
for f in html/_downloads/*/*.py; do
|
||||
sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new &&
|
||||
touch -r $f $f.new &&
|
||||
mv $f.new $f
|
||||
done
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files nixio
|
||||
|
|
@ -89,9 +70,5 @@ done
|
|||
%files -n python3-nixio -f %{pyproject_files}
|
||||
%{_bindir}/nixio
|
||||
|
||||
%files doc
|
||||
%doc README.rst html
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue