public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Federico Pellegrin <fede@evolware.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pint] rpmlint-etc: Add new matplotlib extra, use tomcli to remove cov instead of sed.
Date: Sat, 12 Sep 2026 10:22:02 GMT	[thread overview]
Message-ID: <178920852202.1.1434111256596516170.rpms-python-pint-c59ae2ba3df9@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-12 10:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178920852202.1.1434111256596516170.rpms-python-pint-c59ae2ba3df9@fedoraproject.org \
    --to=fede@evolware.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox