public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/quantities/, dev-python/quantities/files/
@ 2022-02-17 21:52 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2022-02-17 21:52 UTC (permalink / raw
  To: gentoo-commits

commit:     3b7aeba20698dfe1bdbb4ecfc97249ab13ddb79c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 17 21:52:03 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 17 21:52:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b7aeba2

dev-python/quantities: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/quantities/Manifest                     |  1 -
 .../files/quantities-0.12.5-numpy-1.21.patch       | 29 -----------------
 dev-python/quantities/quantities-0.12.5.ebuild     | 36 ----------------------
 3 files changed, 66 deletions(-)

diff --git a/dev-python/quantities/Manifest b/dev-python/quantities/Manifest
index e4e1eb9c9b3c..0495c7ec9fe7 100644
--- a/dev-python/quantities/Manifest
+++ b/dev-python/quantities/Manifest
@@ -1,2 +1 @@
-DIST python-quantities-0.12.5.tar.gz 105130 BLAKE2B db1cf09fa2efc249bc722abe34ed71d0f59d85595f70baf44203785c32179a3598be8aac225adadfd7d5f09c44ec077dcef310ee2fe7ce4d49a1533b04cb9de6 SHA512 db81e45d464e65d6b144d05e1b990fccc5c17ab7fdd47c7bb0c0094ebcacd6af52a3692492561af3a694741810ddac03e4c887d7c6effed833f196493da5f156
 DIST python-quantities-0.13.0.tar.gz 107187 BLAKE2B ead5c223892f65c68ced2265356f8c1e5374f80a1507ec561370e56e28e8965217a7b99f5c46cb83a5f6a1b1f12eb9f501844650488871d48794f13a4383df38 SHA512 ec0a61d8df8e48e7ee08cab5c899a8c8ad96b964ee0132ab130f272f062436d91e6370aac9d85453eeb3d95e17e79e8dfb80412397eada1f0a4310c0494fa217

diff --git a/dev-python/quantities/files/quantities-0.12.5-numpy-1.21.patch b/dev-python/quantities/files/quantities-0.12.5-numpy-1.21.patch
deleted file mode 100644
index 34dd5a075412..000000000000
--- a/dev-python/quantities/files/quantities-0.12.5-numpy-1.21.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From f32e0ce2feeb588eb8b7236700c8c1176e2bc499 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Tue, 17 Aug 2021 08:24:07 +0200
-Subject: [PATCH] fix expected np.arctan2() exception for numpy 1.21
-
-NumPy 1.21 has changed the exception type for incorrect np.arctan2()
-arguments from ValueError to TypeError.  Adjust the test appropriately.
-
-Fixes #190
----
- quantities/tests/test_umath.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/quantities/tests/test_umath.py b/quantities/tests/test_umath.py
-index f5aeb78..a7ebb18 100644
---- a/quantities/tests/test_umath.py
-+++ b/quantities/tests/test_umath.py
-@@ -226,7 +226,7 @@ class TestUmath(TestCase):
-             np.arctan2(3*pq.V, 3*pq.V),
-             np.radians(45)*pq.dimensionless
-             )
--        self.assertRaises(ValueError, np.arctan2, (1*pq.m, 1*pq.m))
-+        self.assertRaises((TypeError, ValueError), np.arctan2, (1*pq.m, 1*pq.m))
- 
-     def test_hypot(self):
-         self.assertQuantityEqual(np.hypot(3 * pq.m, 4 * pq.m),  5 * pq.m)
--- 
-2.32.0
-

diff --git a/dev-python/quantities/quantities-0.12.5.ebuild b/dev-python/quantities/quantities-0.12.5.ebuild
deleted file mode 100644
index 2697e7840c36..000000000000
--- a/dev-python/quantities/quantities-0.12.5.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2020-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_SETUPTOOLS=no
-
-inherit distutils-r1
-
-MY_P="python-quantities-${PV}"
-DESCRIPTION="Support for physical quantities with units, based on numpy"
-HOMEPAGE="https://github.com/python-quantities/python-quantities"
-SRC_URI="
-	https://github.com/python-quantities/python-quantities/archive/v${PV}.tar.gz
-		-> ${MY_P}.tar.gz"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-RDEPEND="
-	dev-python/numpy[$PYTHON_USEDEP]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-	"${FILESDIR}"/${P}-numpy-1.21.patch
-)
-
-EPYTEST_DESELECT=(
-	# unexpected success
-	quantities/tests/test_umath.py::TestUmath::test_fix
-)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/quantities/, dev-python/quantities/files/
@ 2023-04-05  8:19 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2023-04-05  8:19 UTC (permalink / raw
  To: gentoo-commits

commit:     498e4fd68b86a9069941f3fd9c651bc49372c5a3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  5 08:17:55 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr  5 08:17:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=498e4fd6

dev-python/quantities: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/quantities/Manifest                     |  2 -
 .../quantities/files/quantities-0.13.0-numpy.patch | 68 ----------------------
 dev-python/quantities/quantities-0.13.0-r2.ebuild  | 35 -----------
 dev-python/quantities/quantities-0.14.0.ebuild     | 36 ------------
 4 files changed, 141 deletions(-)

diff --git a/dev-python/quantities/Manifest b/dev-python/quantities/Manifest
index 26caee78e384..f2ffa4b2f7be 100644
--- a/dev-python/quantities/Manifest
+++ b/dev-python/quantities/Manifest
@@ -1,3 +1 @@
-DIST python-quantities-0.13.0.gh.tar.gz 107178 BLAKE2B f5fe69ed1d82bc90620a1cabf4c68f676330a2b09e8590bedf48ee8c46e3176d57e0dc6374d1112377056cd1138553d92f0bcaf0a68e2600e3631226e2262afc SHA512 d108b0f5bd834aeb7443693175d54b2b01fa9110cc57f0356681374ce95b5f57e39253d9c8166365aabc379f2f26bba3a827689ceb6c45595345e140b4cd7ad3
-DIST python-quantities-0.14.0.gh.tar.gz 84115 BLAKE2B 549ac64583ebac9a68069e678ee82ac3d9d4462dee4ebffe631c0c20d0819996b0172ceb2cb276aae52ad4dc963e3bfad8f6082d98b90bf6f94c27f807d91565 SHA512 78696938c10e613e1fd6f98f9158d51ec4e86928f9833b73321cde776d77735c119af854aaaff5542093175cd105a33266fba16b31b9e04b51c7f14f648b1e19
 DIST python-quantities-0.14.1.gh.tar.gz 84275 BLAKE2B 7760a46f9f893a87badcbfd8aaad6a5598013b0cc835f17e0b788d3329be35702532fa17dc581ab0db4064292d6521d39d3ada7819c9a6c7b0e8a9b568d343dd SHA512 16c12110c2a705e4016d9575beb7f3322c3590cd12091a2710eca48fd6927b07b0d564ef93eb8af0b21688a0e86df1e60abb45625234abfaf1fa414e8b9fd110

diff --git a/dev-python/quantities/files/quantities-0.13.0-numpy.patch b/dev-python/quantities/files/quantities-0.13.0-numpy.patch
deleted file mode 100644
index 940bc846d687..000000000000
--- a/dev-python/quantities/files/quantities-0.13.0-numpy.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From 29852b895d5d39006d1f129397cffae3578a694e Mon Sep 17 00:00:00 2001
-From: Andrew Davison <andrew.davison@cnrs.fr>
-Date: Thu, 7 Jul 2022 10:03:32 +0200
-Subject: [PATCH] fix failure to handle units with floordiv
-
-fixes #205
----
- quantities/dimensionality.py        |  2 +-
- quantities/tests/test_arithmetic.py | 16 +++++++++++++++-
- 2 files changed, 16 insertions(+), 2 deletions(-)
-
-diff --git a/quantities/dimensionality.py b/quantities/dimensionality.py
-index cea68ca..d54f96f 100644
---- a/quantities/dimensionality.py
-+++ b/quantities/dimensionality.py
-@@ -238,6 +238,7 @@ def _d_divide(q1, q2, out=None):
-             return q2.dimensionality**-1
- p_dict[np.divide] = _d_divide
- p_dict[np.true_divide] = _d_divide
-+p_dict[np.floor_divide] = _d_divide
- 
- def _d_check_uniform(q1, q2, out=None):
-     try:
-@@ -273,7 +274,6 @@ p_dict[np.subtract] = _d_check_uniform
- p_dict[np.mod] = _d_check_uniform
- p_dict[np.fmod] = _d_check_uniform
- p_dict[np.remainder] = _d_check_uniform
--p_dict[np.floor_divide] = _d_check_uniform
- p_dict[np.hypot] = _d_check_uniform
- p_dict[np.equal] = _d_check_uniform
- p_dict[np.not_equal] = _d_check_uniform
-diff --git a/quantities/tests/test_arithmetic.py b/quantities/tests/test_arithmetic.py
-index fe5670e..534702c 100644
---- a/quantities/tests/test_arithmetic.py
-+++ b/quantities/tests/test_arithmetic.py
-@@ -52,7 +52,7 @@ class iter_dtypes:
- 
-     def __init__(self):
-         self._i = 1
--        self._typeDict = np.typeDict.copy()
-+        self._typeDict = np.sctypeDict.copy()
-         self._typeDict[17] = int
-         self._typeDict[18] = long
-         self._typeDict[19] = float
-@@ -132,6 +132,20 @@ class TestDTypes(TestCase):
-                         self.check_rmul(x, y)
-             dtypes.pop(0)
- 
-+    def test_truediv(self):
-+        q = Quantity([44, 40, 36, 32], units=pq.ms)
-+        self.assertQuantityEqual(
-+            q/(4 * pq.ms),
-+            Quantity([11, 10, 9, 8], units=pq.dimensionless)
-+        )
-+
-+    def test_floordiv(self):
-+        q = Quantity([45, 43, 39, 32], units=pq.ms)
-+        self.assertQuantityEqual(
-+            q//(4 * pq.ms),
-+            Quantity([11, 10, 9, 8], units=pq.dimensionless)
-+        )
-+
-     def test_mixed_addition(self):
-         self.assertQuantityEqual(1*pq.ft + 1*pq.m, 4.280839895 * pq.ft)
-         self.assertQuantityEqual(1*pq.ft + pq.m, 4.280839895 * pq.ft)
--- 
-2.39.0
-

diff --git a/dev-python/quantities/quantities-0.13.0-r2.ebuild b/dev-python/quantities/quantities-0.13.0-r2.ebuild
deleted file mode 100644
index f5bb3ce8d977..000000000000
--- a/dev-python/quantities/quantities-0.13.0-r2.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit distutils-r1
-
-MY_P="python-quantities-${PV}"
-DESCRIPTION="Support for physical quantities with units, based on numpy"
-HOMEPAGE="
-	https://github.com/python-quantities/python-quantities/
-	https://pypi.org/project/quantities/
-"
-SRC_URI="
-	https://github.com/python-quantities/python-quantities/archive/v${PV}.tar.gz
-		-> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 x86"
-
-RDEPEND="
-	>=dev-python/numpy-1.16[$PYTHON_USEDEP]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-	"${FILESDIR}"/${P}-numpy.patch
-)

diff --git a/dev-python/quantities/quantities-0.14.0.ebuild b/dev-python/quantities/quantities-0.14.0.ebuild
deleted file mode 100644
index b6edadfcb852..000000000000
--- a/dev-python/quantities/quantities-0.14.0.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit distutils-r1
-
-MY_P="python-quantities-${PV}"
-DESCRIPTION="Support for physical quantities with units, based on numpy"
-HOMEPAGE="
-	https://github.com/python-quantities/python-quantities/
-	https://pypi.org/project/quantities/
-"
-SRC_URI="
-	https://github.com/python-quantities/python-quantities/archive/v${PV}.tar.gz
-		-> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
-	>=dev-python/numpy-1.19[$PYTHON_USEDEP]
-"
-BDEPEND="
-	dev-python/setuptools-scm[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-05  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-05  8:19 [gentoo-commits] repo/gentoo:master commit in: dev-python/quantities/, dev-python/quantities/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2022-02-17 21:52 Michał Górny

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