1 Commits

Author SHA1 Message Date
Orion Poplawski
2158278e3f Do not BR matplotlib on epel10 2024-11-11 09:56:45 -07:00

View File

@@ -1,3 +1,10 @@
# No matplot yet in EPEL10
%if 0%{?rhel} >= 10
%bcond_with matplotlib
%else
%bcond_without matplotlib
%endif
Name: python-numpydoc
Version: 1.8.0
Release: 1%{?dist}
@@ -29,6 +36,9 @@ Summary: %{summary}
# let's not measure coverage:
sed -i '/pytest-cov/d' requirements/test.txt pyproject.toml
sed -Ei 's/\s+--cov\S+//g' pyproject.toml
%if %{without matplotlib}
sed -i '/matplotlib/d' requirements/test.txt pyproject.toml
%endif
# Remove a useless shebang
sed -i '\,#!/usr/bin/env python,d' numpydoc/validate.py