diff --git a/JPype1-1.5.0.tar.gz b/JPype1-1.5.0.tar.gz deleted file mode 100644 index 7885f78..0000000 --- a/JPype1-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:425a6e1966afdd5848b60c2688bcaeb7e40ba504a686f1114589668e0631e878 -size 819110 diff --git a/JPype1-numpy2compat.patch b/JPype1-numpy2compat.patch deleted file mode 100644 index 6fd8ec9..0000000 --- a/JPype1-numpy2compat.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff -rup JPype1-1.5.0.orig/test/jpypetest/test_conversionInt.py JPype1-1.5.0.new/test/jpypetest/test_conversionInt.py ---- JPype1-1.5.0.orig/test/jpypetest/test_conversionInt.py 2023-12-26 06:51:56.000000000 -0500 -+++ JPype1-1.5.0.new/test/jpypetest/test_conversionInt.py 2024-09-11 17:03:59.996582210 -0400 -@@ -76,7 +76,7 @@ class ConversionIntTestCase(common.JPype - def testIntFromNPFloat(self): - import numpy as np - with self.assertRaises(TypeError): -- self.Test.callInt(np.float_(2)) -+ self.Test.callInt(np.float64(2)) - - @common.unittest.skipUnless(haveNumpy(), "numpy not available") - def testIntFromNPFloat32(self): -diff -rup JPype1-1.5.0.orig/test/jpypetest/test_conversionLong.py JPype1-1.5.0.new/test/jpypetest/test_conversionLong.py ---- JPype1-1.5.0.orig/test/jpypetest/test_conversionLong.py 2023-12-26 06:51:56.000000000 -0500 -+++ JPype1-1.5.0.new/test/jpypetest/test_conversionLong.py 2024-09-11 17:03:59.996582210 -0400 -@@ -76,7 +76,7 @@ class ConversionLongTestCase(common.JPyp - def testLongFromNPFloat(self): - import numpy as np - with self.assertRaises(TypeError): -- self.Test.callLong(np.float_(2)) -+ self.Test.callLong(np.float64(2)) - - @common.unittest.skipUnless(haveNumpy(), "numpy not available") - def testLongFromNPFloat32(self): -diff -rup JPype1-1.5.0.orig/test/jpypetest/test_conversionShort.py JPype1-1.5.0.new/test/jpypetest/test_conversionShort.py ---- JPype1-1.5.0.orig/test/jpypetest/test_conversionShort.py 2023-12-26 06:51:56.000000000 -0500 -+++ JPype1-1.5.0.new/test/jpypetest/test_conversionShort.py 2024-09-11 17:03:59.996582210 -0400 -@@ -76,7 +76,7 @@ class ConversionShortTestCase(common.JPy - def testShortFromNPFloat(self): - import numpy as np - with self.assertRaises(TypeError): -- self.Test.callShort(np.float_(2)) -+ self.Test.callShort(np.float64(2)) - - @common.unittest.skipUnless(haveNumpy(), "numpy not available") - def testShortFromNPFloat32(self): -diff -rup JPype1-1.5.0.orig/test/jpypetest/test_jboolean.py JPype1-1.5.0.new/test/jpypetest/test_jboolean.py ---- JPype1-1.5.0.orig/test/jpypetest/test_jboolean.py 2023-12-26 06:51:56.000000000 -0500 -+++ JPype1-1.5.0.new/test/jpypetest/test_jboolean.py 2024-09-11 17:03:59.996582210 -0400 -@@ -103,7 +103,7 @@ class JBooleanTestCase(common.JPypeTestC - def testBooleanFromNPFloat(self): - import numpy as np - with self.assertRaises(TypeError): -- self.Test.callBoolean(np.float_(2)) -+ self.Test.callBoolean(np.float64(2)) - - @common.requireNumpy - def testBooleanFromNPFloat32(self): -diff -rup JPype1-1.5.0.orig/test/jpypetest/test_jbyte.py JPype1-1.5.0.new/test/jpypetest/test_jbyte.py ---- JPype1-1.5.0.orig/test/jpypetest/test_jbyte.py 2023-12-26 06:51:56.000000000 -0500 -+++ JPype1-1.5.0.new/test/jpypetest/test_jbyte.py 2024-09-11 17:03:59.996582210 -0400 -@@ -111,7 +111,7 @@ class JByteTestCase(common.JPypeTestCase - def testByteFromNPFloat(self): - import numpy as np - with self.assertRaises(TypeError): -- self.fixture.callByte(np.float_(2)) -+ self.fixture.callByte(np.float64(2)) - - @common.requireNumpy - def testByteFromNPFloat32(self): -diff -rup JPype1-1.5.0.orig/test/jpypetest/test_jdouble.py JPype1-1.5.0.new/test/jpypetest/test_jdouble.py ---- JPype1-1.5.0.orig/test/jpypetest/test_jdouble.py 2023-12-26 06:51:56.000000000 -0500 -+++ JPype1-1.5.0.new/test/jpypetest/test_jdouble.py 2024-09-11 17:03:59.996582210 -0400 -@@ -375,7 +375,7 @@ class JDoubleTestCase(common.JPypeTestCa - - @common.requireNumpy - def testArrayInitFromNPFloat(self): -- a = np.random.random(100).astype(np.float_) -+ a = np.random.random(100).astype(np.float64) - jarr = JArray(JDouble)(a) - self.assertElementsAlmostEqual(a, jarr) - -diff -rup JPype1-1.5.0.orig/test/jpypetest/test_jfloat.py JPype1-1.5.0.new/test/jpypetest/test_jfloat.py ---- JPype1-1.5.0.orig/test/jpypetest/test_jfloat.py 2023-12-26 06:51:56.000000000 -0500 -+++ JPype1-1.5.0.new/test/jpypetest/test_jfloat.py 2024-09-11 17:03:59.996582210 -0400 -@@ -383,7 +383,7 @@ class JFloatTestCase(common.JPypeTestCas - - @common.requireNumpy - def testArrayInitFromNPFloat(self): -- a = np.random.random(100).astype(np.float_) -+ a = np.random.random(100).astype(np.float64) - jarr = JArray(JFloat)(a) - self.assertElementsAlmostEqual(a, jarr) - diff --git a/jpype1-1.5.1.tar.gz b/jpype1-1.5.1.tar.gz new file mode 100644 index 0000000..f1da234 --- /dev/null +++ b/jpype1-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbb8ea952bf0a0c6011f21a31a97baed241c4aad0e2499db386edfd5cf2adece +size 856550 diff --git a/python-JPype1.changes b/python-JPype1.changes index 6ebfcee..2b3783f 100644 --- a/python-JPype1.changes +++ b/python-JPype1.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Sun Nov 24 23:13:17 UTC 2024 - Steve Kowalik + +- Update to 1.5.1: + * Make use of pyproject.toml for static project metadata + * Fix error in 3.12 during exception handling + * Changes for numpy 2.0 to fix test matrix. + * fix compatibility of jpype with setuptools==72.0.0 + * Update LICENSE + * prevent misuse of PyTuple_Pack + * Remove use of tp_new + * fix JUnpickler BufferOverflowException + * "Generic" JArray support + * Fix IllegalArgumentException with non-ascii paths + * Support extracting javadoc HTML files generated by Javadoc 17 + * [ci] allow to download missing Python versions + * Access to default methods in @JImplements + * handle non ascii classpath with system classloader + * free threaded build +- Drop patch JPype1-numpy2compat.patch, included upstream. + ------------------------------------------------------------------- Wed Sep 11 21:14:09 UTC 2024 - Fergal Mc Carthy diff --git a/python-JPype1.spec b/python-JPype1.spec index 17b6cdb..1f84426 100644 --- a/python-JPype1.spec +++ b/python-JPype1.spec @@ -21,14 +21,13 @@ %bcond_with test_jdbc %{?sle15_python_module_pythons} Name: python-JPype1 -Version: 1.5.0 +Version: 1.5.1 Release: 0 Summary: Python to Java bridge License: Apache-2.0 URL: https://github.com/jpype-project/jpype -Source: https://files.pythonhosted.org/packages/source/J/JPype1/JPype1-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/j/jpype1/jpype1-%{version}.tar.gz Patch0: JPype1-java8compat.patch -Patch1: JPype1-numpy2compat.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} @@ -63,7 +62,7 @@ BuildRequires: sqlite-jdbc A Python to Java bridge. %prep -%autosetup -p1 -n JPype1-%{version} +%autosetup -p1 -n jpype1-%{version} # Avoid build dependency on PyInstaller rm jpype/_pyinstaller/test_jpype_pyinstaller.py @@ -102,6 +101,6 @@ export CLASSPATH=${PWD}/test/classes:%{_libdir}/java/sqlite-jdbc.jar:%{_localsta %{python_sitearch}/jpype %{python_sitearch}/org.jpype.jar %{python_sitearch}/_jpype*.so -%{python_sitearch}/JPype1-%{version}.dist-info +%{python_sitearch}/jpype1-%{version}.dist-info %changelog