Bug#934870: statsmodels: Please drop python2 support

2019-12-20 Thread peter green

Severity 934870 serious
Thanks

statsmodels in testing build-depends on python-cvxopt, which is no longer 
present in testing or unstable.

This is fixed in the unstable statsmodels package (by dropping the python 2 
binary package), unfortunately that is failing to migrate due to an autopkgtest 
failure.



Bug#934870: statsmodels: Please drop python2 support

2019-11-02 Thread Steve Langasek
Package: statsmodels
Version: 0.9.0-6
Followup-For: Bug #934870
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

Sorry, missed a spot in the source.  This should be a complete patch.

-- 
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/
slanga...@ubuntu.com vor...@debian.org
diff -Nru statsmodels-0.9.0/debian/control statsmodels-0.9.0/debian/control
--- statsmodels-0.9.0/debian/control2019-09-15 09:56:31.0 -0700
+++ statsmodels-0.9.0/debian/control2019-11-01 22:19:07.0 -0700
@@ -8,23 +8,6 @@
 Priority: optional
 Build-Depends: debhelper-compat (= 12),
sphinx-common,
-# for Python 3 only (untested) remove here...
-   python-all-dev,
-   python-setuptools,
-   python-colorama ,
-   python-dateutil ,
-   python-numpy,
-   python-scipy,
-   python-nose ,
-   python-pytest ,
-   python-matplotlib,
-   python-pandas,
-   python-patsy ,
-   python-joblib ,
-   cython,
-   python-tk ,
-   python-cvxopt ,
-# ...to here
dh-python (>= 3.20180313~),
cython3,
python3-all-dev,
@@ -71,47 +54,6 @@
 Vcs-Git: https://salsa.debian.org/science-team/statsmodels.git
 Homepage: https://www.statsmodels.org
 
-# Reminder: when this goes away, the links in python-statsmodels-doc.links and 
python-statsmodels-doc.doc-base need updating
-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-colorama,
-python-cvxopt
-Suggests: python-statsmodels-doc
-Breaks: python-scikits-statsmodels
-Provides: ${python:Provides}
-Replaces: python-scikits-statsmodels
-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
-Multi-Arch: same
-Depends: ${misc:Depends},
- ${python:Depends},
- ${shlibs:Depends},
- python-numpy
-Breaks: python-scikits-statsmodels
-Replaces: python-scikits-statsmodels
-Description: Python2 low-level implementations and bindings for statsmodels
- Statsmodels is a Python module for the estimation of statistical models.
- .
- This package contains internal libraries for python-statsmodels.  Users
- should not need to install it directly.
-
 Package: python-statsmodels-doc
 Architecture: all
 Section: doc
diff -Nru statsmodels-0.9.0/debian/python3-statsmodels.examples 
statsmodels-0.9.0/debian/python3-statsmodels.examples
--- statsmodels-0.9.0/debian/python3-statsmodels.examples   1969-12-31 
16:00:00.0 -0800
+++ statsmodels-0.9.0/debian/python3-statsmodels.examples   2019-02-13 
13:33:01.0 -0800
@@ -0,0 +1 @@
+examples/*
diff -Nru statsmodels-0.9.0/debian/python-statsmodels-doc.links 
statsmodels-0.9.0/debian/python-statsmodels-doc.links
--- statsmodels-0.9.0/debian/python-statsmodels-doc.links   2019-08-10 
04:50:15.0 -0700
+++ statsmodels-0.9.0/debian/python-statsmodels-doc.links   2019-10-25 
22:24:26.0 -0700
@@ -1,4 +1,2 @@
-usr/share/doc/python-statsmodels/examples 
usr/share/doc/python-statsmodels-doc/examples
-usr/share/doc/python-statsmodels/examples 
usr/share/doc/python3-statsmodels/examples
-usr/share/doc/python-statsmodels/html usr/share/doc/python-statsmodels-doc/html
-usr/share/doc/python-statsmodels/html usr/share/doc/python3-statsmodels/html
+usr/share/doc/python3-statsmodels/examples 
usr/share/doc/python-statsmodels-doc/examples
+usr/share/doc/python3-statsmodels/html 
usr/share/doc/python-statsmodels-doc/html
diff -Nru statsmodels-0.9.0/debian/rules statsmodels-0.9.0/debian/rules
--- statsmodels-0.9.0/debian/rules  2019-08-10 04:50:15.0 -0700
+++ statsmodels-0.9.0/debian/rules  2019-11-01 22:18:49.0 -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 

Bug#934870: statsmodels: Please drop python2 support

2019-11-01 Thread Steve Langasek
Package: statsmodels
Version: 0.9.0-6
Followup-For: Bug #934870
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

Hello,

Here is an updated debdiff for 0.9.0-6.

Cheers,
-- 
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/
slanga...@ubuntu.com vor...@debian.org
diff -Nru statsmodels-0.9.0/debian/control statsmodels-0.9.0/debian/control
--- statsmodels-0.9.0/debian/control2019-09-15 09:56:31.0 -0700
+++ statsmodels-0.9.0/debian/control2019-11-01 13:04:59.0 -0700
@@ -8,23 +8,6 @@
 Priority: optional
 Build-Depends: debhelper-compat (= 12),
sphinx-common,
-# for Python 3 only (untested) remove here...
-   python-all-dev,
-   python-setuptools,
-   python-colorama ,
-   python-dateutil ,
-   python-numpy,
-   python-scipy,
-   python-nose ,
-   python-pytest ,
-   python-matplotlib,
-   python-pandas,
-   python-patsy ,
-   python-joblib ,
-   cython,
-   python-tk ,
-   python-cvxopt ,
-# ...to here
dh-python (>= 3.20180313~),
cython3,
python3-all-dev,
@@ -71,47 +54,6 @@
 Vcs-Git: https://salsa.debian.org/science-team/statsmodels.git
 Homepage: https://www.statsmodels.org
 
-# Reminder: when this goes away, the links in python-statsmodels-doc.links and 
python-statsmodels-doc.doc-base need updating
-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-colorama,
-python-cvxopt
-Suggests: python-statsmodels-doc
-Breaks: python-scikits-statsmodels
-Provides: ${python:Provides}
-Replaces: python-scikits-statsmodels
-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
-Multi-Arch: same
-Depends: ${misc:Depends},
- ${python:Depends},
- ${shlibs:Depends},
- python-numpy
-Breaks: python-scikits-statsmodels
-Replaces: python-scikits-statsmodels
-Description: Python2 low-level implementations and bindings for statsmodels
- Statsmodels is a Python module for the estimation of statistical models.
- .
- This package contains internal libraries for python-statsmodels.  Users
- should not need to install it directly.
-
 Package: python-statsmodels-doc
 Architecture: all
 Section: doc
diff -Nru statsmodels-0.9.0/debian/python3-statsmodels.examples 
statsmodels-0.9.0/debian/python3-statsmodels.examples
--- statsmodels-0.9.0/debian/python3-statsmodels.examples   1969-12-31 
16:00:00.0 -0800
+++ statsmodels-0.9.0/debian/python3-statsmodels.examples   2019-02-13 
13:33:01.0 -0800
@@ -0,0 +1 @@
+examples/*
diff -Nru statsmodels-0.9.0/debian/python-statsmodels-doc.links 
statsmodels-0.9.0/debian/python-statsmodels-doc.links
--- statsmodels-0.9.0/debian/python-statsmodels-doc.links   2019-08-10 
04:50:15.0 -0700
+++ statsmodels-0.9.0/debian/python-statsmodels-doc.links   2019-10-25 
22:24:26.0 -0700
@@ -1,4 +1,2 @@
-usr/share/doc/python-statsmodels/examples 
usr/share/doc/python-statsmodels-doc/examples
-usr/share/doc/python-statsmodels/examples 
usr/share/doc/python3-statsmodels/examples
-usr/share/doc/python-statsmodels/html usr/share/doc/python-statsmodels-doc/html
-usr/share/doc/python-statsmodels/html usr/share/doc/python3-statsmodels/html
+usr/share/doc/python3-statsmodels/examples 
usr/share/doc/python-statsmodels-doc/examples
+usr/share/doc/python3-statsmodels/html 
usr/share/doc/python-statsmodels-doc/html
diff -Nru statsmodels-0.9.0/debian/rules statsmodels-0.9.0/debian/rules
--- statsmodels-0.9.0/debian/rules  2019-08-10 04:50:15.0 -0700
+++ statsmodels-0.9.0/debian/rules  2019-11-01 13:04:59.0 -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 

Bug#934870: statsmodels: Please drop python2 support

2019-08-15 Thread Steve Langasek
Package: statsmodels
Version: 0.8.0-9
Severity: normal
Tags: patch
User: ubuntu-de...@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/
slanga...@ubuntu.com vor...@debian.org
diff -Nru statsmodels-0.8.0/debian/control statsmodels-0.8.0/debian/control
--- statsmodels-0.8.0/debian/control2019-02-16 07:47:16.0 -0800
+++ statsmodels-0.8.0/debian/control2019-08-15 19:44:08.0 -0700
@@ -5,19 +5,7 @@
 Uploaders: Yaroslav Halchenko , Michael Hanke 
, Diane Trout 
 Build-Depends: debhelper (>= 9),
sphinx-common,
-   python-all-dev, python-setuptools,
-   python-dateutil,
-   python-numpy (>= 1:1.4.0),
-   python-scipy,
-   python-nose ,
-   python-matplotlib,
-   python-pandas,
-   python-patsy,
-   python-joblib,
cython,
-   python-tk ,
-   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.0 -0800
+++ statsmodels-0.8.0/debian/python3-statsmodels.examples   2019-02-13 
13:33:01.0 -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.0 -0800
+++