[Python-modules-commits] [pyjokes] 05/09: Change binary to only have python 3

Ethan Ward ethanward-guest at moszumanska.debian.org
Fri Aug 11 18:13:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

ethanward-guest pushed a commit to branch master
in repository pyjokes.

commit 272b9bdc1a8545783074c3bf527a602af2330c5b
Author: Ethan Ward <ethan.ward at mycroft.ai>
Date:   Fri Aug 11 12:08:56 2017 -0500

    Change binary to only have python 3
---
 debian/control | 3 +--
 debian/rules   | 7 +++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index bfdf29d..f5bdd81 100644
--- a/debian/control
+++ b/debian/control
@@ -23,8 +23,7 @@ Architecture: all
 Depends: ${misc:Depends}, ${python:Depends}
 XB-Python-Version: ${python:Versions}
 Description: One line jokes for programmers (Python 2)
- Import this library to generate random jokes for programmers, or
- run the command line utility to generate a random joke.
+ Import this library to generate random jokes for programmers.
  .
  This package contains the module for Python 2.
 
diff --git a/debian/rules b/debian/rules
index 530e74c..10933c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,10 @@ export PYBUILD_DISABLE=test
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_python3:
+	dh_python3 --shebang=/usr/bin/python3
+
+override_dh_auto_install:
+	dh_auto_install
+	rm debian/python-pyjokes/usr/bin/pyjoke

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyjokes.git



More information about the Python-modules-commits mailing list