[python-statsmodels] New upstream source (0.6.0)

Sergio Pascual sergiopr at fedoraproject.org
Mon Nov 17 10:21:59 UTC 2014


commit 019e1e1cbed6e1f6fdddd5ba8021551b16ea00e1
Author: Sergio Pascual <sergiopr at fis.ucm.es>
Date:   Mon Nov 17 11:21:36 2014 +0100

    New upstream source (0.6.0)

 .gitignore              |    1 +
 python-statsmodels.spec |   81 ++++++++++++++--------------------------------
 sources                 |    2 +-
 3 files changed, 27 insertions(+), 57 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2bb8e57..91c7aea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /statsmodels-0.5.0.tar.gz
+/statsmodels-0.6.0.tar.gz
diff --git a/python-statsmodels.spec b/python-statsmodels.spec
index 0e7a5a1..dfd32e1 100644
--- a/python-statsmodels.spec
+++ b/python-statsmodels.spec
@@ -2,8 +2,8 @@
 %global upname statsmodels
 
 Name: python-%{upname}
-Version: 0.5.0
-Release: 12%{?dist}
+Version: 0.6.0
+Release: 1%{?dist}
 Summary: Statistics in Python
 # Package is licensed under BSD (3 clauses)
 # except the following files in Public Domain
@@ -13,16 +13,6 @@ License: BSD and Public Domain
 
 URL: http://statsmodels.sourceforge.net/
 Source0: http://pypi.python.org/packages/source/s/statsmodels/%{upname}-%{version}.tar.gz
-# Disable the tests that fail
-# https://github.com/statsmodels/statsmodels/issues/1320
-# https://github.com/statsmodels/statsmodels/issues/1319
-# https://github.com/statsmodels/statsmodels/issues/1316
-Patch0: statsmodels-skiptests.patch
-# This tests fails in F21 ARM, but no in F20 ARM
-Patch1: statsmodels-f21-arm.patch
-# This tests fails in F20 i686, but no in F21 i686
-Patch2: statsmodels-f20-32.patch
-Patch3: statsmodels-ipython-doc.patch
 
 BuildRequires: python2-devel python-nose
 BuildRequires: numpy scipy Cython python-patsy python-pandas
@@ -31,9 +21,6 @@ BuildRequires: python-matplotlib
 
 Requires: numpy scipy python-patsy python-pandas
 
-# we don't want to provide private python extension libs
-%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
-
 %description
 statsmodels is a Python module that provides classes and functions for the 
 estimation of many different statistical models, as well as for conducting 
@@ -75,42 +62,25 @@ This package contains the full API documentation for %{name}.
 
 %prep
 %setup -qn %{upname}-%{version}
-%patch0 -p1
-%ifarch %{arm}
-%patch1 -p1
-%endif
-%ifarch %{ix86}
-%patch2 -p1
-%endif
-%patch3 -p1
-
-# Remove cython generated code, doesn't work with python3.4
-# C files are regenerated
+
 pushd statsmodels
-for i in $(find -name "*.pyx"); do
- rm ${i/pyx/c}
-done
+# Copy license files
+cp -a stats/libqsturng/LICENSE.txt ../LICENSE.libqsturng.txt
+cp -a datasets/README.txt ../README.datasets.txt
+cp -a datasets/COPYING ../COPYING.datasets
+
 # remove shebang
+sed -i -e "1d" datasets/co2/data.py
 sed -i -e "1d" datasets/engel/data.py
 sed -i -e "1d" datasets/fair/data.py
+sed -i -e "1d" datasets/modechoice/data.py
 sed -i -e "1d" datasets/statecrime/data.py
 sed -i -e "1d" datasets/strikes/data.py
 sed -i -e "1d" datasets/template_data.py
-sed -i -e "1d" sandbox/examples/example_pca.py
-sed -i -e "1d" tools/print_version.py
 sed -i -e "1d" regression/quantile_regression.py
-sed -i -e "1d" tsa/setup.py
-# copy other files names LICENSE.txt
-cp -a stats/libqsturng/LICENSE.txt ../LICENSE.libqsturng.txt
-cp -a LICENSE.txt ../LICENSE.statsmodels.txt
-cp -a datasets/README.txt ../README.datasets.txt
-cp -a datasets/COPYING ../COPYING.datasets
-
-
-# this is not a module
-mv examples ../examples/statsmodels
-mv sandbox/examples ../examples/statsmodels/sandbox/
-mv sandbox/tsa/examples ../examples/statsmodels/sandbox/tsa
+sed -i -e "1d" tools/print_version.py
+# remove exec bit
+chmod -x datasets/cancer/cancer.csv
 popd
 
 %if 0%{?with_python3}
@@ -150,15 +120,11 @@ find %{buildroot} -name "*.so" | xargs chmod 755
 
 # Remove files that shouldn't be installed
 pushd %{buildroot}/%{python2_sitearch}/%{upname}
-rm LICENSE.txt TODO.txt
 rm stats/libqsturng/LICENSE.txt
-rm sandbox/tools/TODO.txt
-rm datasets/README.txt
-rm datasets/COPYING
+popd
 
-find -name "*.c" -delete 
-find -name "*.pyx" -delete
-rmdir src
+pushd %{buildroot}/%{python3_sitearch}/%{upname}
+rm stats/libqsturng/LICENSE.txt
 popd
 
 %check
@@ -167,32 +133,35 @@ mkdir matplotlib
 touch matplotlib/matplotlibrc
 export XDG_CONFIG_HOME=`pwd`
 pushd %{buildroot}/%{python2_sitearch}
-#nosetests-%{python2_version} %{upname}
+nosetests-%{python2_version} %{upname}
 popd
 %if 0%{?with_python3}
 pushd %{buildroot}/%{python3_sitearch}
-#nosetests-%{python3_version} %{upname}
+nosetests-%{python3_version} %{upname}
 popd
 %endif # with_python3
  
 %files
-%doc LICENSE.txt COPYRIGHTS.txt README_l1.txt README.txt LICENSE.libqsturng.txt LICENSE.statsmodels.txt README.datasets.txt COPYING.datasets
+%doc COPYRIGHTS.txt  README_l1.txt README.rst LICENSE.txt LICENSE.libqsturng.txt README.datasets.txt COPYING.datasets
 %{python2_sitearch}/*
 
 %files doc
-%doc LICENSE.txt COPYRIGHTS.txt README_l1.txt README.txt examples build/sphinx/html LICENSE.libqsturng.txt LICENSE.statsmodels.txt README.datasets.txt COPYING.datasets
+%doc COPYRIGHTS.txt  README_l1.txt README.rst LICENSE.txt LICENSE.libqsturng.txt README.datasets.txt COPYING.datasets build/sphinx/html
 
 %if 0%{?with_python3}
 %files -n python3-%{upname}
-%doc LICENSE.txt COPYRIGHTS.txt README_l1.txt README.txt LICENSE.libqsturng.txt LICENSE.statsmodels.txt README.datasets.txt COPYING.datasets
+%doc COPYRIGHTS.txt  README_l1.txt README.rst LICENSE.txt LICENSE.libqsturng.txt README.datasets.txt COPYING.datasets
 %{python3_sitearch}/*
 
 %files -n python3-%{upname}-doc
-%doc LICENSE.txt COPYRIGHTS.txt README_l1.txt README.txt examples build/sphinx3/html LICENSE.libqsturng.txt LICENSE.statsmodels.txt README.datasets.txt COPYING.datasets
+%doc COPYRIGHTS.txt  README_l1.txt README.rst LICENSE.txt LICENSE.libqsturng.txt README.datasets.txt COPYING.datasets build/sphinx3/html
 
 %endif # with_python3
 
 %changelog
+* Mon Nov 17 2014 Sergio Pascual <sergiopr at fedoraproject.org> - 0.6.0-1
+- New upstream source (0.6.0)
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.0-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
diff --git a/sources b/sources
index 01a8ed3..c116dea 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c65454d97f869ac0e5bb3a2757ec6bd5  statsmodels-0.5.0.tar.gz
+98dc4c1132ef2c231cd508d64b2e65c5  statsmodels-0.6.0.tar.gz


More information about the scm-commits mailing list