# HG changeset patch # User Paul Boddie # Date 1646691480 -3600 # Node ID 00cfefc56f9e7d828a93a1dac38f6e19ccb83e45 # Parent eaef795b56fde80c74ddf2a61ff42e224c703dd0 Removed debian/compat, attempted to introduce test files. diff -r eaef795b56fd -r 00cfefc56f9e debian/compat --- a/debian/compat Wed Mar 02 18:46:50 2022 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -10 diff -r eaef795b56fd -r 00cfefc56f9e debian/control --- a/debian/control Wed Mar 02 18:46:50 2022 +0100 +++ b/debian/control Mon Mar 07 23:18:00 2022 +0100 @@ -3,13 +3,16 @@ Priority: optional Maintainer: Paul Boddie Build-Depends: - debhelper (>= 10), + debhelper-compat (= 13), dh-python, python3-all, - python3-setuptools + python3-setuptools, + python3-pytest, + python3-six Standards-Version: 3.9.8 X-Python3-Version: >= 3.7 Homepage: https://github.com/moinwiki/emeraldtree +Testsuite: autopkgtest-pkg-python Package: python3-emeraldtree Architecture: all diff -r eaef795b56fd -r 00cfefc56f9e debian/patches/000-emeraldtree-tests-html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/000-emeraldtree-tests-html Mon Mar 07 23:18:00 2022 +0100 @@ -0,0 +1,33 @@ +Description: Use absolute package imports to support testing + Since the tests will be copied into another directory to be run, the + package imports need to use absolute paths rather than relative ones. + . + emeraldtree (0.9.2-29-g116515a-1) unstable; urgency=low + . + * Initial release. +Author: Paul Boddie + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: https://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: 2022-03-04 + +--- emeraldtree-0.9.2-29-g116515a.orig/emeraldtree/tests/test_html.py ++++ emeraldtree-0.9.2-29-g116515a/emeraldtree/tests/test_html.py +@@ -1,7 +1,7 @@ + import six + from six import StringIO + +-from .. import html, tree ++from emeraldtree import html, tree + + def serialize(elem, method): + file = StringIO() diff -r eaef795b56fd -r 00cfefc56f9e debian/patches/series --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/patches/series Mon Mar 07 23:18:00 2022 +0100 @@ -0,0 +1,1 @@ +000-emeraldtree-tests-html diff -r eaef795b56fd -r 00cfefc56f9e debian/pybuild.testfiles --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/pybuild.testfiles Mon Mar 07 23:18:00 2022 +0100 @@ -0,0 +1,2 @@ +emeraldtree/tests/test_html.py +emeraldtree/tests/test_tree.py diff -r eaef795b56fd -r 00cfefc56f9e debian/rules --- a/debian/rules Wed Mar 02 18:46:50 2022 +0100 +++ b/debian/rules Mon Mar 07 23:18:00 2022 +0100 @@ -4,3 +4,6 @@ %: dh $@ --with python3 --buildsystem pybuild + +override_dh_auto_test: + dh_auto_test -- --test-pytest