Skip to content
Snippets Groups Projects
Commit 4b0c02d2 authored by Sandro Tosi's avatar Sandro Tosi
Browse files

Drop python2 support; Closes: #938068

parent fb936e01
No related branches found
No related tags found
No related merge requests found
python-pygraphviz (1.5-2) UNRELEASED; urgency=medium
[ Ondřej Nový ]
* d/changelog: Remove trailing whitespaces.
* Use debhelper-compat instead of debian/compat.
-- Ondřej Nový <onovy@debian.org> Wed, 09 Jan 2019 13:44:54 +0100
[ Sandro Tosi ]
* Drop python2 support; Closes: #938068
-- Sandro Tosi <morph@debian.org> Thu, 09 Jan 2020 10:34:52 -0500
python-pygraphviz (1.5-1) unstable; urgency=medium
......
......@@ -2,28 +2,30 @@ Source: python-pygraphviz
Section: python
Priority: optional
Maintainer: Sandro Tosi <morph@debian.org>
Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Build-Depends: debhelper-compat (= 10), dh-python, python-all-dev (>= 2.3.5-11), python-all-dbg, python3-all-dev, python3-all-dbg, libgraphviz-dev, python-setuptools, python3-setuptools, pkg-config, graphviz, python-nose, python3-nose, python3-sphinx, python-mock (>= 1.3), python3-mock (>= 1.3)
Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>,
Build-Depends: debhelper-compat (= 10),
dh-python,
graphviz,
libgraphviz-dev,
pkg-config,
python3-all-dbg,
python3-all-dev,
python3-mock (>= 1.3),
python3-nose,
python3-setuptools,
python3-sphinx,
Standards-Version: 4.2.1
Homepage: https://pygraphviz.github.io/
Vcs-Git: https://salsa.debian.org/python-team/modules/python-pygraphviz.git
Vcs-Browser: https://salsa.debian.org/python-team/modules/python-pygraphviz
Package: python-pygraphviz
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}, graphviz (>= 2.16), ${misc:Depends}
Suggests: python-pygraphviz-doc
Description: Python interface to the Graphviz graph layout and visualization package
Pygraphviz is a Python interface to the Graphviz graph layout and
visualization package.
.
With Pygraphviz you can create, edit, read, write, and draw graphs using
Python to access the Graphviz graph data structure and layout algorithms.
Package: python3-pygraphviz
Architecture: any
Depends: ${python3:Depends}, ${shlibs:Depends}, graphviz (>= 2.16), ${misc:Depends}
Suggests: python-pygraphviz-doc
Depends: graphviz (>= 2.16),
${misc:Depends},
${python3:Depends},
${shlibs:Depends},
Suggests: python-pygraphviz-doc,
Description: Python interface to the Graphviz graph layout and visualization package (Python 3)
Pygraphviz is a Python interface to the Graphviz graph layout and
visualization package.
......@@ -33,23 +35,13 @@ Description: Python interface to the Graphviz graph layout and visualization pac
.
This package contains the Python 3 version of python-pygraphviz.
Package: python-pygraphviz-dbg
Section: debug
Architecture: any
Depends: ${misc:Depends}, python-pygraphviz (= ${binary:Version}), python-dbg, ${shlibs:Depends}
Description: Python interface to the Graphviz graph layout and visualization package (debug extension)
Pygraphviz is a Python interface to the Graphviz graph layout and
visualization package.
.
With Pygraphviz you can create, edit, read, write, and draw graphs using
Python to access the Graphviz graph data structure and layout algorithms.
.
This package contains the debug extension for python-pygraphviz.
Package: python3-pygraphviz-dbg
Section: debug
Architecture: any
Depends: ${misc:Depends}, python3-pygraphviz (= ${binary:Version}), python3-dbg, ${shlibs:Depends}
Depends: python3-dbg,
python3-pygraphviz (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: Python interface to the Graphviz graph layout and visualization package (py3k debug extension)
Pygraphviz is a Python interface to the Graphviz graph layout and
visualization package.
......@@ -62,7 +54,8 @@ Description: Python interface to the Graphviz graph layout and visualization pac
Package: python-pygraphviz-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}, ${sphinxdoc:Depends}
Depends: ${misc:Depends},
${sphinxdoc:Depends},
Description: Python interface to the Graphviz graph layout and visualization package (doc)
Pygraphviz is a Python interface to the Graphviz graph layout and
visualization package.
......
#!/usr/bin/make -f
PYTHON2=$(shell pyversions -r)
PYTHON3=$(shell py3versions -r)
export PYBUILD_AFTER_BUILD_python3=cd doc ; PYTHONPATH={build_dir} $(MAKE) html ; cd ..
%:
dh $@ --with python2,python3,sphinxdoc
override_dh_install:
set -e; \
for python in $(PYTHON2); do \
$$python setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-pygraphviz; \
$$python-dbg setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-pygraphviz-dbg; \
done
for python in $(PYTHON3); do \
$$python setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-pygraphviz; \
$$python-dbg setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-pygraphviz-dbg; \
done
override_dh_auto_build:
set -e; \
for python in $(PYTHON2) $(PYTHON3); do \
$$python setup.py build; \
$$python-dbg setup.py build; \
done
PYTHONPATH=$(CURDIR)/`python3 -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)"` $(MAKE) -C doc html
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
dh_strip -ppython-pygraphviz --dbg-package=python-pygraphviz-dbg
dh_strip -ppython3-pygraphviz --dbg-package=python3-pygraphviz-dbg
endif
......@@ -35,26 +14,13 @@ override_dh_installexamples:
dh_installexamples -ppython-pygraphviz-doc examples/*
override_dh_installdocs:
dh_installdocs -ppython-pygraphviz-dbg --link-doc=python-pygraphviz
dh_installdocs -ppython3-pygraphviz-dbg --link-doc=python3-pygraphviz
dh_installdocs
dh_installdocs -ppython-pygraphviz-doc doc/build/html
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
set -e; \
for python in $(PYTHON2) $(PYTHON3); do \
echo "-- running tests for "$$python" plain --" ; \
LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)") ; \
touch $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \
cd build ; $$python -c "import sys ; sys.path.insert(0, '$(CURDIR)/$$LIB') ; import pygraphviz as t ; t.test(verbosity=2)" ; cd .. ; \
rm $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \
echo "-- running tests for "$$python" debug --" ; \
LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)") ; \
touch $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \
cd build ; $$python-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/$$LIB') ; import pygraphviz as t ; t.test(verbosity=2)" ; cd .. ; \
rm $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \
done
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="touch {build_dir}/pygraphviz/tests/__init__py ; cd {build_dir} ; {interpreter} -c \"import sys ; sys.path.insert(0, '{build_dir}') ; import pygraphviz as t ; t.test(verbosity=2)\" ; cd .." dh_auto_test
endif
override_dh_auto_clean:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment