From 44f23142738d485d4a33f7e461fc6a61a9f7020ae7bee1522901ca473e91735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 31 Aug 2019 13:41:39 +0000 Subject: [PATCH] Accepting request 727360 from home:apersaud:branches:devel:languages:python:numeric update to latest version OBS-URL: https://build.opensuse.org/request/show/727360 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numexpr?expand=0&rev=9 --- fix_test.patch | 20 ++++++++++++++++++++ numexpr-2.6.9.tar.gz | 3 --- numexpr-2.7.0.tar.gz | 3 +++ python-numexpr.changes | 20 ++++++++++++++++++++ python-numexpr.spec | 6 ++++-- 5 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 fix_test.patch delete mode 100644 numexpr-2.6.9.tar.gz create mode 100644 numexpr-2.7.0.tar.gz diff --git a/fix_test.patch b/fix_test.patch new file mode 100644 index 0000000..532a99e --- /dev/null +++ b/fix_test.patch @@ -0,0 +1,20 @@ +--- numexpr-2.7.0/numexpr/tests/test_numexpr.py.old 2019-08-30 21:56:34.913388358 -0700 ++++ numexpr-2.7.0/numexpr/tests/test_numexpr.py 2019-08-30 21:57:10.341563205 -0700 +@@ -967,7 +967,7 @@ + "import numexpr", + "assert(numexpr.nthreads <= 8)", + "exit(0)"]) +- subprocess.check_call(['python', '-c', script]) ++ subprocess.check_call([sys.executable, '-c', script]) + + def test_max_threads_set(self): + # Has to be done in a subprocess as `importlib.reload` doesn't let us +@@ -978,7 +978,7 @@ + "import numexpr", + "assert(numexpr.MAX_THREADS == 4)", + "exit(0)"]) +- subprocess.check_call(['python', '-c', script]) ++ subprocess.check_call([sys.executable, '-c', script]) + + def test_numexpr_num_threads(self): + with _environment('OMP_NUM_THREADS', '5'): diff --git a/numexpr-2.6.9.tar.gz b/numexpr-2.6.9.tar.gz deleted file mode 100644 index e17456a..0000000 --- a/numexpr-2.6.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc218b777cdbb14fa8cff8f28175ee631bacabbdd41ca34e061325b6c44a6fa6 -size 94419 diff --git a/numexpr-2.7.0.tar.gz b/numexpr-2.7.0.tar.gz new file mode 100644 index 0000000..b6da5f4 --- /dev/null +++ b/numexpr-2.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37324b5981b8962102bdc8640c4f05f5589da5d1df2702418783085cb78ca217 +size 95707 diff --git a/python-numexpr.changes b/python-numexpr.changes index 8bcc0b1..306f7eb 100644 --- a/python-numexpr.changes +++ b/python-numexpr.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Sat Aug 31 04:46:34 UTC 2019 - Arun Persaud + +- specfile: + * update copyright year + * added fix to call python in tests: fix_test.patch + +- update to version 2.7.0: + * The default number of 'safe' threads has been restored to the + historical limit of 8, if the environment variable + "NUMEXPR_MAX_THREADS" has not been set. + * Thanks to @eltoder who fixed a small memory leak. + * Support for Python 2.6 has been dropped, as it is no longer + available via TravisCI. + * A typo in the test suite that had a less than rather than greater + than symbol in the NumPy version check has been corrected thanks + to dhomeier. + * The file site.cfg was being accidently included in the sdists on + PyPi. It has now been excluded. + ------------------------------------------------------------------- Sat Dec 22 05:26:03 UTC 2018 - Todd R diff --git a/python-numexpr.spec b/python-numexpr.spec index 4ea9435..3067788 100644 --- a/python-numexpr.spec +++ b/python-numexpr.spec @@ -1,7 +1,7 @@ # # spec file for package python-numexpr # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-numexpr -Version: 2.6.9 +Version: 2.7.0 Release: 0 Summary: Numerical expression evaluator for NumPy License: MIT Group: Development/Languages/Python URL: https://github.com/pydata/numexpr/ Source: https://files.pythonhosted.org/packages/source/n/numexpr/numexpr-%{version}.tar.gz +Patch0: fix_test.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy-devel >= 1.6} BuildRequires: %{python_module setuptools} @@ -42,6 +43,7 @@ calculation in Python. %prep %setup -q -n numexpr-%{version} +%patch0 -p1 # wrong-file-end-of-line-encoding sed -i 's/\r$//' ANNOUNCE.rst AUTHORS.txt README.rst RELEASE_NOTES.rst site.cfg.example # remove unwanted shebang