public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pint] rpmlint-etc: Add new matplotlib extra, use tomcli to remove cov instead of sed.
@ 2026-09-12 10:22 Federico Pellegrin
  0 siblings, 0 replies; only message in thread
From: Federico Pellegrin @ 2026-09-12 10:22 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pint
Branch : rpmlint-etc
Commit : c59ae2ba3df9f197c38a3192c87d118fceeaa1ab
Author : Federico Pellegrin <fede@evolware.org>
Date   : 2025-08-16T12:44:20+02:00
Stats  : +8/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pint/c/c59ae2ba3df9f197c38a3192c87d118fceeaa1ab?branch=rpmlint-etc

Log:
Add new matplotlib extra, use tomcli to remove cov instead of sed.

---
diff --git a/python-pint.spec b/python-pint.spec
index 76b168f..e430611 100644
--- a/python-pint.spec
+++ b/python-pint.spec
@@ -27,6 +27,9 @@ Source:         %{pypi_source pint}
 
 BuildArch:      noarch
 
+# To manipulate pyproject.toml
+BuildRequires:  tomcli
+
 %global _description %{expand:
 Pint is a Python package to define, operate and manipulate physical quantities:
 the product of a numerical value and a unit of measurement. It allows
@@ -61,12 +64,14 @@ Summary:        %{summary}
 %if %{with mip}
 %pyproject_extras_subpkg -n python3-pint mip
 %endif
+%pyproject_extras_subpkg -n python3-pint matplotlib
 
 %prep
 %autosetup -n pint-%{version} -p1
 
 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
-sed -r -i 's/ "pytest-cov",//g' pyproject.toml
+tomcli set pyproject.toml lists delitem project.optional-dependencies.test \
+    pytest-cov
 
 # This module is executable in the source, and it might make sense for upstream
 # to run it directly as a script during development, but this package will
@@ -96,7 +101,8 @@ sed -r -i '1{/^#!/d}' pint/pint_convert.py
 %if %{with mip}
     -x mip \
 %endif
-    -x test}
+    -x matplotlib \
+    -x test-all }
 
 %build
 %pyproject_wheel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-12 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12 10:22 [rpms/python-pint] rpmlint-etc: Add new matplotlib extra, use tomcli to remove cov instead of sed Federico Pellegrin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox