Do not BR matplotlib on epel10

This commit is contained in:
Orion Poplawski
2024-11-11 09:56:45 -07:00
parent b8106ec856
commit 2158278e3f
+10
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