1.1 --- a/debian/compat Wed Mar 02 18:46:50 2022 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,1 +0,0 @@
1.4 -10
2.1 --- a/debian/control Wed Mar 02 18:46:50 2022 +0100
2.2 +++ b/debian/control Mon Mar 07 23:18:00 2022 +0100
2.3 @@ -3,13 +3,16 @@
2.4 Priority: optional
2.5 Maintainer: Paul Boddie <paul@boddie.org.uk>
2.6 Build-Depends:
2.7 - debhelper (>= 10),
2.8 + debhelper-compat (= 13),
2.9 dh-python,
2.10 python3-all,
2.11 - python3-setuptools
2.12 + python3-setuptools,
2.13 + python3-pytest,
2.14 + python3-six
2.15 Standards-Version: 3.9.8
2.16 X-Python3-Version: >= 3.7
2.17 Homepage: https://github.com/moinwiki/emeraldtree
2.18 +Testsuite: autopkgtest-pkg-python
2.19
2.20 Package: python3-emeraldtree
2.21 Architecture: all
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/debian/patches/000-emeraldtree-tests-html Mon Mar 07 23:18:00 2022 +0100
3.3 @@ -0,0 +1,33 @@
3.4 +Description: Use absolute package imports to support testing
3.5 + Since the tests will be copied into another directory to be run, the
3.6 + package imports need to use absolute paths rather than relative ones.
3.7 + .
3.8 + emeraldtree (0.9.2-29-g116515a-1) unstable; urgency=low
3.9 + .
3.10 + * Initial release.
3.11 +Author: Paul Boddie <paul@boddie.org.uk>
3.12 +
3.13 +---
3.14 +The information above should follow the Patch Tagging Guidelines, please
3.15 +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
3.16 +are templates for supplementary fields that you might want to add:
3.17 +
3.18 +Origin: <vendor|upstream|other>, <url of original patch>
3.19 +Bug: <url in upstream bugtracker>
3.20 +Bug-Debian: https://bugs.debian.org/<bugnumber>
3.21 +Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
3.22 +Forwarded: <no|not-needed|url proving that it has been forwarded>
3.23 +Reviewed-By: <name and email of someone who approved the patch>
3.24 +Last-Update: 2022-03-04
3.25 +
3.26 +--- emeraldtree-0.9.2-29-g116515a.orig/emeraldtree/tests/test_html.py
3.27 ++++ emeraldtree-0.9.2-29-g116515a/emeraldtree/tests/test_html.py
3.28 +@@ -1,7 +1,7 @@
3.29 + import six
3.30 + from six import StringIO
3.31 +
3.32 +-from .. import html, tree
3.33 ++from emeraldtree import html, tree
3.34 +
3.35 + def serialize(elem, method):
3.36 + file = StringIO()
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/debian/patches/series Mon Mar 07 23:18:00 2022 +0100
4.3 @@ -0,0 +1,1 @@
4.4 +000-emeraldtree-tests-html
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/debian/pybuild.testfiles Mon Mar 07 23:18:00 2022 +0100
5.3 @@ -0,0 +1,2 @@
5.4 +emeraldtree/tests/test_html.py
5.5 +emeraldtree/tests/test_tree.py
6.1 --- a/debian/rules Wed Mar 02 18:46:50 2022 +0100
6.2 +++ b/debian/rules Mon Mar 07 23:18:00 2022 +0100
6.3 @@ -4,3 +4,6 @@
6.4
6.5 %:
6.6 dh $@ --with python3 --buildsystem pybuild
6.7 +
6.8 +override_dh_auto_test:
6.9 + dh_auto_test -- --test-pytest