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
This commit is contained in:
Todd R
2020-01-08 18:16:36 +00:00
committed by Git OBS Bridge
parent 44f2314273
commit 2cc7f26ee2
5 changed files with 16 additions and 27 deletions

View File

@@ -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'):

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37324b5981b8962102bdc8640c4f05f5589da5d1df2702418783085cb78ca217
size 95707

3
numexpr-2.7.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b0d239d9827e1bcee08344fd05835823bc60aff97232e35a928214d03ff802b1
size 99196

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Jan 8 18:04:17 UTC 2020 - Todd R <toddrme2178@gmail.com>
- 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 <arun@gmx.de>

View File

@@ -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