Hello community,

here is the log from the commit of package python-gsw for openSUSE:Factory 
checked in at 2018-07-27 10:57:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gsw (Old)
 and      /work/SRC/openSUSE:Factory/.python-gsw.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gsw"

Fri Jul 27 10:57:31 2018 rev:3 rq:625435 version:3.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gsw/python-gsw.changes    2018-06-29 
22:27:46.486421225 +0200
+++ /work/SRC/openSUSE:Factory/.python-gsw.new/python-gsw.changes       
2018-07-27 10:58:16.873880698 +0200
@@ -1,0 +2,14 @@
+Thu Jul 26 13:56:17 UTC 2018 - [email protected]
+
+- Switch off test_check_function[cfcf71], which fails on 32bit archs
+  (https://github.com/TEOS-10/GSW-Python/issues/40).
+
+-------------------------------------------------------------------
+Thu Jul 26 13:21:09 UTC 2018 - [email protected]
+
+- Clean SPEC
+- Remove gsw_licence.html (license is inside the distribution tarball)
+- Add tests.tar.gz with tests from the upstream git repository and
+  enable tests
+
+-------------------------------------------------------------------

Old:
----
  gsw_licence.html

New:
----
  tests.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gsw.spec ++++++
--- /var/tmp/diff_new_pack.oP6vdh/_old  2018-07-27 10:58:17.385881678 +0200
+++ /var/tmp/diff_new_pack.oP6vdh/_new  2018-07-27 10:58:17.389881686 +0200
@@ -18,7 +18,6 @@
 
 # Note: this package is python3-only. There is a python2-compatible
 # version in the python2-gsw package.
-
 # Tests are not included in the source tarball
 %define skip_python2 1
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -31,18 +30,19 @@
 # MATLAB function names and documentation are BSD-3-Clause licensed (see 
http://teos-10.org/pubs/gsw/html/gsw_licence.html)
 License:        MIT AND BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            https://github.com/TEOS-10/GSW-python
-Source:         
https://files.pythonhosted.org/packages/source/g/gsw/gsw-%{version}.tar.gz
-Source1:        http://teos-10.org/pubs/gsw/html/gsw_licence.html
+URL:            https://github.com/TEOS-10/GSW-python
+Source0:        
https://files.pythonhosted.org/packages/source/g/gsw/gsw-%{version}.tar.gz
+# https://github.com/TEOS-10/GSW-Python/issues/39
+Source1:        tests.tar.gz
 BuildRequires:  %{python_module devel >= 3.5}
 BuildRequires:  %{python_module numpy-devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+Requires:       python-numpy
 # SECTION tests
 BuildRequires:  %{python_module pytest}
 # /SECTION
-Requires:       python-numpy
-%{python_subpackages}
+%python_subpackages
 
 %description
 Python implementation of the Thermodynamic Equation of
@@ -50,19 +50,25 @@
 
 %prep
 %setup -q -n gsw-%{version}
-cp %{SOURCE1} .
+tar xf %{SOURCE1}
 
 %build
 export CFLAGS="%{optflags}"
-%{python_build}
+%python_build
 
 %install
-%{python_install}
+%python_install
 %{python_expand %fdupes %{buildroot}%{$python_sitearch}}
 
+# https://github.com/TEOS-10/GSW-Python/issues/40
+%check
+%{python_expand export PYTHONPATH=%{buildroot}%{python_sitearch}
+py.test-%{$python_bin_suffix} -k 'not test_check_function[cfcf71]'
+}
+
 %files %{python_files}
 %doc README.rst
-%doc LICENSE src/c_gsw/LICENSE gsw_licence.html
+%license LICENSE src/c_gsw/LICENSE
 %{python_sitearch}/*
 
 %changelog


Reply via email to