public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pint] rpmlint-etc: Update to 0.24.4 (close RHBZ#2324435)
Date: Sat, 12 Sep 2026 10:21:59 GMT	[thread overview]
Message-ID: <178920851910.1.5518169497841757602.rpms-python-pint-c2be71b08785@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-pint
Branch : rpmlint-etc
Commit : c2be71b08785efd122ad9f7645f0fb8f6454170d
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2024-11-09T20:03:27-05:00
Stats  : +4/-110 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pint/c/c2be71b08785efd122ad9f7645f0fb8f6454170d?branch=rpmlint-etc

Log:
Update to 0.24.4 (close RHBZ#2324435)

---
diff --git a/.gitignore b/.gitignore
index faf843d..f549b13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@
 /pint-0.24.tar.gz
 /pint-0.24.1.tar.gz
 /pint-0.24.3.tar.gz
+/pint-0.24.4.tar.gz

diff --git a/dataclass-frozen.patch b/dataclass-frozen.patch
deleted file mode 100644
index 2712027..0000000
--- a/dataclass-frozen.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-diff --git a/pint/errors.py b/pint/errors.py
-index 59d3b45..f080f52 100644
---- a/pint/errors.py
-+++ b/pint/errors.py
-@@ -81,12 +81,12 @@ class WithDefErr:
-         return DefinitionError(self.name, self.__class__, msg)
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class PintError(Exception):
-     """Base exception for all Pint errors."""
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class DefinitionError(ValueError, PintError):
-     """Raised when a definition is not properly constructed."""
- 
-@@ -102,7 +102,7 @@ class DefinitionError(ValueError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class DefinitionSyntaxError(ValueError, PintError):
-     """Raised when a textual definition has a syntax error."""
- 
-@@ -115,7 +115,7 @@ class DefinitionSyntaxError(ValueError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class RedefinitionError(ValueError, PintError):
-     """Raised when a unit or prefix is redefined."""
- 
-@@ -130,7 +130,7 @@ class RedefinitionError(ValueError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UndefinedUnitError(AttributeError, PintError):
-     """Raised when the units are not defined in the unit registry."""
- 
-@@ -150,13 +150,13 @@ class UndefinedUnitError(AttributeError, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class PintTypeError(TypeError, PintError):
-     def __reduce__(self):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class DimensionalityError(PintTypeError):
-     """Raised when trying to convert between incompatible units."""
- 
-@@ -183,7 +183,7 @@ class DimensionalityError(PintTypeError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class OffsetUnitCalculusError(PintTypeError):
-     """Raised on ambiguous operations with offset units."""
- 
-@@ -208,7 +208,7 @@ class OffsetUnitCalculusError(PintTypeError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class LogarithmicUnitCalculusError(PintTypeError):
-     """Raised on inappropriate operations with logarithmic units."""
- 
-@@ -233,7 +233,7 @@ class LogarithmicUnitCalculusError(PintTypeError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UnitStrippedWarning(UserWarning, PintError):
-     msg: str
- 
-@@ -241,13 +241,13 @@ class UnitStrippedWarning(UserWarning, PintError):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UnexpectedScaleInContainer(Exception):
-     def __reduce__(self):
-         return self.__class__, tuple(getattr(self, f.name) for f in fields(self))
- 
- 
--@dataclass(frozen=False)
-+@dataclass(frozen=True)
- class UndefinedBehavior(UserWarning, PintError):
-     msg: str

diff --git a/python-pint.spec b/python-pint.spec
index 84b2609..12a13af 100644
--- a/python-pint.spec
+++ b/python-pint.spec
@@ -1,7 +1,7 @@
 %bcond xarray 1
 # Not yet packaged: python-uncertainties
 %bcond uncertainties 0
-# Requires babel <= 2.8; F41 has 2.15.0
+# Requires babel <= 2.8; F42 has 2.16.0
 %bcond babel 0
 # Not yet packaged: python-pint-pandas
 %bcond pandas 0
@@ -11,7 +11,7 @@
 %bcond dask 1
 
 Name:           python-pint
-Version:        0.24.3
+Version:        0.24.4
 Release:        %autorelease
 Summary:        Physical quantities module
 
@@ -19,9 +19,6 @@ License:        BSD-3-Clause
 URL:            https://github.com/hgrecco/pint
 Source:         %{pypi_source pint}
 
-# Workaround from https://github.com/hgrecco/pint/issues/1969
-Patch:          dataclass-frozen.patch
-
 BuildArch:      noarch
 
 %global _description %{expand:

diff --git a/sources b/sources
index 1f67c28..f25e0ea 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pint-0.24.3.tar.gz) = da5be874b4ea8aaedfcd9a424f5330f049a2545346f508eb197301650a968dc1af48325509ee25a721933544f3869a50a8faf22f605af401fc14c94231598c25
+SHA512 (pint-0.24.4.tar.gz) = ff663d361d358cd21c856fef3cd35da3afb286fc173a4a3e13c926b312636d109ca0543eb46a1bf76a83381889643ae0eac1c0a986f57b2026d8f9d4d127d8d6

                 reply	other threads:[~2026-09-12 10:21 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=178920851910.1.5518169497841757602.rpms-python-pint-c2be71b08785@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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