From 2cc7f26ee2482a2f21385ff5fd2bde3372e173df33f16d11002b60cc293cd41d Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 8 Jan 2020 18:16:36 +0000 Subject: [PATCH] Accepting request 761946 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to 2.7.1 * Python 3.8 support has been added. * Python 3.4 support is discontinued. * The tests are now compatible with NumPy 1.18. * site.cfg.example was updated to use the libraries tag instead of mkl_libs, which is recommended for newer version of NumPy. - Drop upstream-included fix_test.patch OBS-URL: https://build.opensuse.org/request/show/761946 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numexpr?expand=0&rev=11 --- fix_test.patch | 20 -------------------- numexpr-2.7.0.tar.gz | 3 --- numexpr-2.7.1.tar.gz | 3 +++ python-numexpr.changes | 11 +++++++++++ python-numexpr.spec | 6 ++---- 5 files changed, 16 insertions(+), 27 deletions(-) delete mode 100644 fix_test.patch delete mode 100644 numexpr-2.7.0.tar.gz create mode 100644 numexpr-2.7.1.tar.gz diff --git a/fix_test.patch b/fix_test.patch deleted file mode 100644 index 532a99e..0000000 --- a/fix_test.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- 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.7.0.tar.gz b/numexpr-2.7.0.tar.gz deleted file mode 100644 index b6da5f4..0000000 --- a/numexpr-2.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:37324b5981b8962102bdc8640c4f05f5589da5d1df2702418783085cb78ca217 -size 95707 diff --git a/numexpr-2.7.1.tar.gz b/numexpr-2.7.1.tar.gz new file mode 100644 index 0000000..4579e3d --- /dev/null +++ b/numexpr-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0d239d9827e1bcee08344fd05835823bc60aff97232e35a928214d03ff802b1 +size 99196 diff --git a/python-numexpr.changes b/python-numexpr.changes index 306f7eb..b6ee687 100644 --- a/python-numexpr.changes +++ b/python-numexpr.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Jan 8 18:04:17 UTC 2020 - Todd R + +- Update to 2.7.1 + * Python 3.8 support has been added. + * Python 3.4 support is discontinued. + * The tests are now compatible with NumPy 1.18. + * site.cfg.example was updated to use the libraries tag instead + of mkl_libs, which is recommended for newer version of NumPy. +- Drop upstream-included fix_test.patch + ------------------------------------------------------------------- Sat Aug 31 04:46:34 UTC 2019 - Arun Persaud diff --git a/python-numexpr.spec b/python-numexpr.spec index 3067788..9133bc7 100644 --- a/python-numexpr.spec +++ b/python-numexpr.spec @@ -1,7 +1,7 @@ # # spec file for package python-numexpr # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,14 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-numexpr -Version: 2.7.0 +Version: 2.7.1 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} @@ -43,7 +42,6 @@ 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