Hello community,

here is the log from the commit of package python-patsy for openSUSE:Factory 
checked in at 2017-05-08 19:02:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-patsy (Old)
 and      /work/SRC/openSUSE:Factory/.python-patsy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-patsy"

Mon May  8 19:02:51 2017 rev:2 rq:492899 version:0.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-patsy/python-patsy.changes        
2016-11-20 18:18:20.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-patsy.new/python-patsy.changes   
2017-05-08 19:03:49.237307687 +0200
@@ -1,0 +2,6 @@
+Sun May  8 07:03:49 UTC 2016 - [email protected]
+
+- specfile:
+  * updated source url to files.pythonhosted.org
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-patsy.spec ++++++
--- /var/tmp/diff_new_pack.IWVW8L/_old  2017-05-08 19:03:49.949207120 +0200
+++ /var/tmp/diff_new_pack.IWVW8L/_new  2017-05-08 19:03:49.957205989 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-patsy
 #
-# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,7 +15,10 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+# Tests have dependency loop with pandas
+%bcond_with tests
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-patsy
 Version:        0.4.1
 Release:        0
@@ -24,21 +27,24 @@
 Group:          Development/Languages/Python
 Url:            https://github.com/pydata/patsy
 Source:         
https://files.pythonhosted.org/packages/source/p/patsy/patsy-%{version}.zip
-BuildRequires:  python-devel
-BuildRequires:  python-numpy
-BuildRequires:  python-scipy
-BuildRequires:  python-setuptools
-BuildRequires:  python-six
+BuildRequires:  fdupes
 BuildRequires:  unzip
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module numpy-devel}
+BuildRequires:  %{python_module scipy}
+BuildRequires:  %{python_module six}
+%if %{with tests}
+BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module pandas}
+%endif
 Requires:       python-numpy
 Requires:       python-six
 Recommends:     python-scipy
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 A Python package for describing statistical models and for
@@ -51,12 +57,18 @@
 %setup -q -n patsy-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%if %{with tests}
+%check
+%python_expand nosetests-%{$python_bin_suffix} --all-modules patsy
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst LICENSE.txt
 %{python_sitelib}/patsy/



Reply via email to