Attached is a patch to fix this.

I have not attempted to update the standards version.

I also have not attempted to update the git repository, if you want I can
redo the change using git as a reference, and commit the changes to git
also.

I plan to upload this tomorrow as a NMU. It will get stuck in new for a
while, so you can raise any objections if I have done anything wrong.

Thanks
-- 
Brian May <br...@microcomaustralia.com.au>
diff -Nru python-argh-0.25.0/debian/changelog python-argh-0.25.0/debian/changelog
--- python-argh-0.25.0/debian/changelog	2014-10-09 12:28:11.000000000 +1100
+++ python-argh-0.25.0/debian/changelog	2015-02-16 09:14:56.000000000 +1100
@@ -1,3 +1,10 @@
+python-argh (0.25.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Python3 package.
+
+ -- Brian May <b...@debian.org>  Mon, 16 Feb 2015 09:14:35 +1100
+
 python-argh (0.25.0-1) unstable; urgency=medium
 
   * Imported Upstream version 0.25.0
diff -Nru python-argh-0.25.0/debian/control python-argh-0.25.0/debian/control
--- python-argh-0.25.0/debian/control	2014-10-09 12:28:11.000000000 +1100
+++ python-argh-0.25.0/debian/control	2015-02-16 09:18:53.000000000 +1100
@@ -2,7 +2,9 @@
 Section: python
 Priority: extra
 Maintainer: Marco Nenciarini <mnen...@debian.org>
-Build-Depends: debhelper (>= 7), python-all, python-setuptools (>= 0.6b3)
+Build-Depends: debhelper (>= 7), dh-python,
+ python-all, python-setuptools (>= 0.6b3), python-pytest, python-mock,
+ python3-all, python3-setuptools (>= 0.6b3), python3-pytest, python3-mock,
 Standards-Version: 3.9.5.0
 Homepage: http://pypi.python.org/pypi/argh
 Vcs-Git: git://anonscm.debian.org/collab-maint/python-argh.git
@@ -16,6 +18,32 @@
 Description: simple argparse wrapper
  Argh provides a very simple wrapper for argparse.
  .
+ Argparse is a very powerful tool; argh just makes it easy to use.
+ .
+ Here’s a list of features that argh adds to argparse:
+ .
+  * mark a function as a CLI command and specify its arguments before
+    the parser is instantiated;
+  * nested commands made easy: no messing with subparsers;
+  * infer command name from function name;
+  * infer agrument type from the default value;
+  * infer argument action from the default value (for booleans);
+  * infer arguments from function signature;
+  * add an alias root command help for the --help argument;
+  * enable passing unwrapped arguments to certain functions instead of
+    an argparse.Namespace object.
+ .
+ Argh is fully compatible with argparse. You can mix argh-agnostic and
+ argh-aware code. Just keep in mind that dispatch() does some extra
+ work that a custom dispatcher may not do.
+
+Package: python3-argh
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Recommends: python3-argcomplete
+Description: simple argparse wrapper
+ Argh provides a very simple wrapper for argparse.
+ .
  Argparse is a very powerful tool; argh just makes it easy to use.
  .
  Here’s a list of features that argh adds to argparse:
diff -Nru python-argh-0.25.0/debian/control.bak python-argh-0.25.0/debian/control.bak
diff -Nru python-argh-0.25.0/debian/rules python-argh-0.25.0/debian/rules
--- python-argh-0.25.0/debian/rules	2014-10-09 12:28:11.000000000 +1100
+++ python-argh-0.25.0/debian/rules	2015-02-16 09:12:43.000000000 +1100
@@ -3,8 +3,7 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-
-WITH_PYTHON2 = $(shell test -f /usr/bin/dh_python2 && echo "--with python2")
+export PYBUILD_NAME=argh
 
 %:
-	dh ${WITH_PYTHON2} $@
+	dh $@ --with python2,python3 --buildsystem=pybuild
diff -Nru python-argh-0.25.0/debian/rules.bak python-argh-0.25.0/debian/rules.bak

Reply via email to