Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2158278e3f |
@@ -1,3 +1,10 @@
|
|||||||
|
# No matplot yet in EPEL10
|
||||||
|
%if 0%{?rhel} >= 10
|
||||||
|
%bcond_with matplotlib
|
||||||
|
%else
|
||||||
|
%bcond_without matplotlib
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: python-numpydoc
|
Name: python-numpydoc
|
||||||
Version: 1.8.0
|
Version: 1.8.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@@ -29,6 +36,9 @@ Summary: %{summary}
|
|||||||
# let's not measure coverage:
|
# let's not measure coverage:
|
||||||
sed -i '/pytest-cov/d' requirements/test.txt pyproject.toml
|
sed -i '/pytest-cov/d' requirements/test.txt pyproject.toml
|
||||||
sed -Ei 's/\s+--cov\S+//g' 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
|
# Remove a useless shebang
|
||||||
sed -i '\,#!/usr/bin/env python,d' numpydoc/validate.py
|
sed -i '\,#!/usr/bin/env python,d' numpydoc/validate.py
|
||||||
|
|||||||
Reference in New Issue
Block a user