Bug#934870: statsmodels: Please drop python2 support
Steve Langasek
steve.langasek at canonical.com
Fri Aug 16 04:57:21 BST 2019
Package: statsmodels
Version: 0.8.0-9
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch
Dear maintainers,
As you may know, we are in the process of deprecating python2 in Debian for
the next release. In Ubuntu, I've identified that it may be useful to
accelerate this deprecation for pandas and its reverse-dependencies, because
the pandas tests appear to have bit-rotted for python2 on one architecture,
and it would be better to remove the python2 bits rather than invest in
fixing them.
python-statsmodels is a package that (build-)depends on python-pandas, so
I've gone ahead and uploaded the attached patch to Ubuntu which drops the
python2 module. python-statsmodels has many reverse-recommends, but only
two hard reverse-(build-)depends: pymvpa2 and seaborn.
pymvpa2 already fails to build in unstable and was not included in the last
Debian release, so should not block removal of python-statsmodels.
Removal of python2 support for seaborn is tracked in bug #934852.
Upload of this change to Debian should probably wait for seaborn to also
drop its python2 support.
Thanks for considering,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
diff -Nru statsmodels-0.8.0/debian/control statsmodels-0.8.0/debian/control
--- statsmodels-0.8.0/debian/control 2019-02-16 07:47:16.000000000 -0800
+++ statsmodels-0.8.0/debian/control 2019-08-15 19:44:08.000000000 -0700
@@ -5,19 +5,7 @@
Uploaders: Yaroslav Halchenko <debian at onerussian.com>, Michael Hanke <michael.hanke at gmail.com>, Diane Trout <diane at ghic.org>
Build-Depends: debhelper (>= 9),
sphinx-common,
- python-all-dev, python-setuptools,
- python-dateutil,
- python-numpy (>= 1:1.4.0),
- python-scipy,
- python-nose <!nocheck>,
- python-matplotlib,
- python-pandas,
- python-patsy,
- python-joblib,
cython,
- python-tk <!nocheck>,
- python-patsy,
- python-cvxopt,
dh-python (>= 3.20180313~),
cython3,
python3-all-dev,
@@ -48,39 +36,6 @@
Vcs-Browser: https://salsa.debian.org/science-team/statsmodels
Vcs-Git: https://salsa.debian.org/science-team/statsmodels.git
-Package: python-statsmodels
-Architecture: all
-Depends: ${misc:Depends}, ${python:Depends},
- python-numpy,
- python-scipy,
- python-statsmodels-lib (>= ${source:Version}),
- python-patsy,
- python-pandas
-Recommends: python-matplotlib,
- python-joblib,
- python-cvxopt,
-Suggests: python-statsmodels-doc,
-Provides: ${python:Provides}
-Breaks: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4)
-Replaces: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4)
-Description: Python module for the estimation of statistical models
- statsmodels Python module provides classes and functions for the
- estimation of several categories of statistical models. These
- currently include linear regression models, OLS, GLS, WLS and GLS
- with AR(p) errors, generalized linear models for several distribution
- families and M-estimators for robust linear models. An extensive list
- of result statistics are available for each estimation problem.
-
-Package: python-statsmodels-lib
-Architecture: any
-Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends},
- python-numpy
-Breaks: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4)
-Replaces: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4)
-Description: low-level implementations and bindings for statsmodels
- This package contains architecture dependent extensions for
- python-statsmodels.
-
Package: python-statsmodels-doc
Breaks: python-scikits-statsmodels-doc, python-scikits.statsmodels-doc
Replaces: python-scikits-statsmodels-doc, python-scikits.statsmodels-doc
@@ -88,7 +43,7 @@
Section: doc
Depends: ${misc:Depends}, libjs-requirejs, ${sphinxdoc:Depends},
libjs-mathjax
-Suggests: python-statsmodels,
+Suggests: python3-statsmodels,
python3-doc,
python-numpy-doc,
python-patsy-doc,
diff -Nru statsmodels-0.8.0/debian/python3-statsmodels.examples statsmodels-0.8.0/debian/python3-statsmodels.examples
--- statsmodels-0.8.0/debian/python3-statsmodels.examples 1969-12-31 16:00:00.000000000 -0800
+++ statsmodels-0.8.0/debian/python3-statsmodels.examples 2019-02-13 13:33:01.000000000 -0800
@@ -0,0 +1 @@
+examples/*
diff -Nru statsmodels-0.8.0/debian/python-statsmodels-doc.links statsmodels-0.8.0/debian/python-statsmodels-doc.links
--- statsmodels-0.8.0/debian/python-statsmodels-doc.links 2019-02-13 13:33:01.000000000 -0800
+++ statsmodels-0.8.0/debian/python-statsmodels-doc.links 2019-08-15 19:44:08.000000000 -0700
@@ -1,2 +1,2 @@
usr/share/javascript/jquery/jquery.js usr/share/doc/python-statsmodels-doc/html/_static/jquery.js
-usr/share/doc/python-statsmodels/examples usr/share/doc/python-statsmodels-doc/examples
+usr/share/doc/python3-statsmodels/examples usr/share/doc/python-statsmodels-doc/examples
diff -Nru statsmodels-0.8.0/debian/python-statsmodels.examples statsmodels-0.8.0/debian/python-statsmodels.examples
--- statsmodels-0.8.0/debian/python-statsmodels.examples 2019-02-13 13:33:01.000000000 -0800
+++ statsmodels-0.8.0/debian/python-statsmodels.examples 1969-12-31 16:00:00.000000000 -0800
@@ -1 +0,0 @@
-examples/*
diff -Nru statsmodels-0.8.0/debian/rules statsmodels-0.8.0/debian/rules
--- statsmodels-0.8.0/debian/rules 2019-03-02 05:00:04.000000000 -0800
+++ statsmodels-0.8.0/debian/rules 2019-08-15 19:44:08.000000000 -0700
@@ -16,7 +16,7 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
- dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+ dh $@ --with python3,sphinxdoc --buildsystem=pybuild
# To guarantee HOME existence with mpl 1.3.0
# See https://github.com/matplotlib/matplotlib/issues/2300
@@ -104,7 +104,7 @@
## move binary libraries into -lib
override_dh_auto_install:
dh_auto_install
- for PACKAGE_NAME in python-statsmodels python3-statsmodels; do \
+ for PACKAGE_NAME in python3-statsmodels; do \
for lib in $$(find debian/$${PACKAGE_NAME}/usr -name '*.so'); do \
sdir=$$(dirname $$lib) ; \
tdir=debian/$${PACKAGE_NAME}-lib/$${sdir#*$${PACKAGE_NAME}/} ; \
@@ -119,12 +119,10 @@
set -e; \
find debian -wholename \*scikits -type d | while read skd; do \
skbd=$$(dirname $$skd); \
- skbd_=$$(echo $$skbd | sed -e 's/python-statsmodels/python-scikits.statsmodels/g' \
- | sed -e 's/python3-statsmodels/python3-scikits.statsmodels/g'); \
+ skbd_=$$(echo $$skbd | sed -e 's/python3-statsmodels/python3-scikits.statsmodels/g'); \
mkdir -p $$skbd_; \
mv $$skd $$skbd_; \
done
- dh_numpy
dh_numpy3
get-orig-source:
diff -Nru statsmodels-0.8.0/debian/tests/control statsmodels-0.8.0/debian/tests/control
--- statsmodels-0.8.0/debian/tests/control 2019-02-24 01:26:54.000000000 -0800
+++ statsmodels-0.8.0/debian/tests/control 2019-08-15 19:44:08.000000000 -0700
@@ -1,12 +1,4 @@
Test-Command: set -e
- ; for py in $(pyversions -r 2>/dev/null)
- ; do cd "$ADTTMP" ; echo "Testing with $py:"
- ; $py -c "import statsmodels; print statsmodels"
- ; $py -c "import statsmodels.nonparametric._smoothers_lowess; print(statsmodels.nonparametric._smoothers_lowess)"
- ; done
-Depends: python-all, python-statsmodels
-
-Test-Command: set -e
; for py in $(py3versions -r 2>/dev/null)
; do cd "$ADTTMP" ; echo "Testing with $py:"
; $py -m nose -v statsmodels --exclude='(test_sarimax)|(test_structural)|(test_dynamic_factor)|(test_varmax)'
More information about the debian-science-maintainers
mailing list