Hello community, here is the log from the commit of package python-annoy for openSUSE:Factory checked in at 2019-09-17 13:37:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-annoy (Old) and /work/SRC/openSUSE:Factory/.python-annoy.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-annoy" Tue Sep 17 13:37:17 2019 rev:6 rq:730764 version:1.16.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-annoy/python-annoy.changes 2019-05-15 12:34:23.232535073 +0200 +++ /work/SRC/openSUSE:Factory/.python-annoy.new.7948/python-annoy.changes 2019-09-17 13:37:20.041843577 +0200 @@ -1,0 +2,8 @@ +Fri Sep 13 12:57:37 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 1.16.0: + * Various warning fixes + * Cleanups +- Rebase patch reproducible.patch + +------------------------------------------------------------------- Old: ---- annoy-1.15.2.tar.gz New: ---- v1.16.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-annoy.spec ++++++ --- /var/tmp/diff_new_pack.sNriJR/_old 2019-09-17 13:37:20.685843474 +0200 +++ /var/tmp/diff_new_pack.sNriJR/_new 2019-09-17 13:37:20.689843474 +0200 @@ -12,23 +12,26 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-annoy -Version: 1.15.2 +Version: 1.16.0 Release: 0 Summary: Approximation of Nearest Neighbors License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/spotify/annoy -Source: https://files.pythonhosted.org/packages/source/a/annoy/annoy-%{version}.tar.gz +Source: https://github.com/spotify/annoy/archive/v%{version}.tar.gz # PATCH-FIX-OPENSUSE boo#1100677 Patch0: reproducible.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module h5py} BuildRequires: %{python_module nose >= 1.0} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: c++_compiler BuildRequires: fdupes @@ -45,6 +48,8 @@ %prep %setup -q -n annoy-%{version} %patch0 -p1 +# fix testdata location +sed -i -e "s:'test/test:'test:g" test/index_test.py %build export CFLAGS="%{optflags} -fno-strict-aliasing" @@ -54,6 +59,11 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +# online tests: test_fashion_mnist, test_glove_25, test_nytimes_16 +cd test +%pytest_arch -k 'not (test_fashion_mnist or test_glove_25 or test_nytimes_16)' + %files %{python_files} %doc README.rst %license LICENSE ++++++ reproducible.patch ++++++ --- /var/tmp/diff_new_pack.sNriJR/_old 2019-09-17 13:37:20.705843471 +0200 +++ /var/tmp/diff_new_pack.sNriJR/_new 2019-09-17 13:37:20.705843471 +0200 @@ -3,11 +3,11 @@ https://bugzilla.opensuse.org/show_bug.cgi?id=1100677 -Index: annoy-1.15.2/setup.py +Index: annoy-1.16.0/setup.py =================================================================== ---- annoy-1.15.2.orig/setup.py -+++ annoy-1.15.2/setup.py -@@ -36,26 +36,10 @@ with codecs.open('README.rst', encoding= +--- annoy-1.16.0.orig/setup.py ++++ annoy-1.16.0/setup.py +@@ -36,29 +36,10 @@ with codecs.open('README.rst', encoding= long_description = readme_note + fobj.read() # Various platform-dependent extras @@ -24,6 +24,9 @@ -if platform.machine() == 'ppc64le': - extra_compile_args += ['-mcpu=native',] - +-if platform.machine() == 'x86_64': +- extra_compile_args += cputune +- -if os.name != 'nt': - extra_compile_args += ['-O3', '-ffast-math', '-fno-associative-math'] - @@ -33,5 +36,5 @@ - extra_link_args += ['-stdlib=libc++', '-mmacosx-version-min=10.9'] - setup(name='annoy', - version='1.15.2', + version='1.16.0', description='Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk.',
