Package: sphinx-gallery
Version: 0.2.0-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch

Hi Sandro,

We are of course 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.

sphinx-gallery is a package that indirectly build-depends on python-pandas
(via python-seaborn), so I've gone ahead and uploaded the attached patch to
Ubuntu which drops the python2 module.  This makes the python2-only
matplotlib2 fail to build due to unsatisfiable build-dependencies, and
requires python-networkx to also drop its python2 module, but has no other
impact.

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 sphinx-gallery-0.2.0/debian/control 
sphinx-gallery-0.2.0/debian/control
--- sphinx-gallery-0.2.0/debian/control 2018-06-10 18:29:43.000000000 -0700
+++ sphinx-gallery-0.2.0/debian/control 2019-08-15 12:32:10.000000000 -0700
@@ -3,23 +3,12 @@
 Priority: optional
 Maintainer: Sandro Tosi <mo...@debian.org>
 Uploaders: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9), dh-python, python-all, python3-all, 
python-sphinx, python3-sphinx, python-matplotlib, python3-matplotlib, 
python-pil, python3-pil, python-seaborn, python3-seaborn, python-setuptools, 
python3-setuptools, python-pytest-runner, python3-pytest-runner
+Build-Depends: debhelper (>= 9), dh-python, python3-all, python3-sphinx, 
python3-matplotlib, python3-pil, python3-seaborn, python3-setuptools, 
python3-pytest-runner
 Standards-Version: 4.1.4
 Homepage: https://sphinx-gallery.github.io/
 Vcs-Git: https://salsa.debian.org/python-team/modules/sphinx-gallery.git
 Vcs-Browser: https://salsa.debian.org/python-team/modules/sphinx-gallery
 
-Package: python-sphinx-gallery
-Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-matplotlib, python-pil, 
python-sphinx
-Suggests: python-sphinx-gallery-doc, mayavi2, python-seaborn
-Description: extension that builds an HTML gallery of examples from Python 
scripts
- * Simple examples that run out of the box are the best way to learn a library
- * Pleasing, organized, visual layouts
- * Links, searching, backlinks throughout examples and documentation
- .
- This package contains the Python 2 version of sphinx-gallery.
-
 Package: python3-sphinx-gallery
 Architecture: all
 Depends: ${python3:Depends}, ${misc:Depends}, python3-matplotlib, python3-pil, 
python3-sphinx
diff -Nru sphinx-gallery-0.2.0/debian/rules sphinx-gallery-0.2.0/debian/rules
--- sphinx-gallery-0.2.0/debian/rules   2018-06-10 18:29:43.000000000 -0700
+++ sphinx-gallery-0.2.0/debian/rules   2019-08-15 12:32:10.000000000 -0700
@@ -1,14 +1,13 @@
 #!/usr/bin/make -f
 
-PY2VERS := $(shell pyversions -s)
 PY3VERS := $(shell py3versions -s)
 
 %:
-       dh $@ --with sphinxdoc,python2,python3
+       dh $@ --with sphinxdoc,python3 --buildsystem=pybuild
 
 override_dh_auto_build:
        set -e ; \
-       for python in $(PY2VERS) $(PY3VERS); do \
+       for python in $(PY3VERS); do \
                $$python setup.py build; \
        done
 
@@ -16,10 +15,6 @@
 
 override_dh_auto_install:
        set -e ; \
-       for python in $(PY2VERS); do \
-               $$python setup.py install --root=debian/python-sphinx-gallery 
--install-layout=deb; \
-       done
-       set -e ; \
        for python in $(PY3VERS); do \
                $$python setup.py install --root=debian/python3-sphinx-gallery 
--install-layout=deb; \
        done

Reply via email to