Accepting request 727462 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/727462 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numexpr?expand=0&rev=11
This commit is contained in:
20
fix_test.patch
Normal file
20
fix_test.patch
Normal file
@@ -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'):
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fc218b777cdbb14fa8cff8f28175ee631bacabbdd41ca34e061325b6c44a6fa6
|
||||
size 94419
|
3
numexpr-2.7.0.tar.gz
Normal file
3
numexpr-2.7.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:37324b5981b8962102bdc8640c4f05f5589da5d1df2702418783085cb78ca217
|
||||
size 95707
|
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 31 04:46:34 UTC 2019 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
- 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 <toddrme2178@gmail.com>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user