[Python-modules-commits] [humanfriendly] 05/17: Separate the command into a separate package

Gaurav Juvekar gauravjuvekar-guest at moszumanska.debian.org
Sun Mar 12 19:58:50 UTC 2017


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

gauravjuvekar-guest pushed a commit to branch master
in repository humanfriendly.

commit e0686edf66a83855cfdc29ff01805378f636b169
Author: Gaurav Juvekar <gauravjuvekar at gmail.com>
Date:   Sat Jan 21 23:54:36 2017 +0530

    Separate the command into a separate package
---
 debian/control                                           | 16 ++++++++++++++++
 debian/humanfriendly.install                             |  1 +
 ...hon-humanfriendly.manpages => humanfriendly.manpages} |  0
 debian/python-humanfriendly.install                      |  1 +
 debian/python3-humanfriendly.install                     |  1 +
 debian/python3-humanfriendly.manpages                    |  1 -
 debian/rules                                             |  9 +++++++--
 7 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 95b1de2..db8cb7c 100644
--- a/debian/control
+++ b/debian/control
@@ -44,3 +44,19 @@ Description: Python3 library to make user friendly text interfaces
  friendly rendering of usage messages and querying the terminal for its size.
  .
  This package installs the library for Python 3.
+
+Package: humanfriendly
+Architecture: all
+Depends: python3-humanfriendly, ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: Python3 library to make user friendly text interfaces
+ A Python3 library that can be used to make text interfaces more user friendly.
+ It provides parsing and formatting numbers, file sizes, pathnames and
+ timespans in simple human friendly formats. It provides easy to use timers for
+ long running operations, prompts for selecting a choice from a list of options
+ by typing the option's number or a unique substring of the option, and
+ terminal interaction including text styling (ANSI escape sequences), user
+ friendly rendering of usage messages and querying the terminal for its size.
+ .
+ This package provides a command to access the functions in the library.
diff --git a/debian/humanfriendly.install b/debian/humanfriendly.install
new file mode 100644
index 0000000..1df36c6
--- /dev/null
+++ b/debian/humanfriendly.install
@@ -0,0 +1 @@
+usr/bin/*
diff --git a/debian/python-humanfriendly.manpages b/debian/humanfriendly.manpages
similarity index 100%
rename from debian/python-humanfriendly.manpages
rename to debian/humanfriendly.manpages
diff --git a/debian/python-humanfriendly.install b/debian/python-humanfriendly.install
new file mode 100644
index 0000000..04e8e83
--- /dev/null
+++ b/debian/python-humanfriendly.install
@@ -0,0 +1 @@
+usr/lib/python2*/dist-packages/humanfriendly/*.py*
diff --git a/debian/python3-humanfriendly.install b/debian/python3-humanfriendly.install
new file mode 100644
index 0000000..eb83097
--- /dev/null
+++ b/debian/python3-humanfriendly.install
@@ -0,0 +1 @@
+usr/lib/python3*/dist-packages/humanfriendly/*.py*
diff --git a/debian/python3-humanfriendly.manpages b/debian/python3-humanfriendly.manpages
deleted file mode 100644
index d5d720d..0000000
--- a/debian/python3-humanfriendly.manpages
+++ /dev/null
@@ -1 +0,0 @@
-debian/humanfriendly.1
diff --git a/debian/rules b/debian/rules
index 36af0b0..e82ec95 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,12 @@
 #! /usr/bin/make -f
 
-export PYBUILD_NAME=humanfriendly
-export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin/
+# Used as per the example from www.v13.gr/blog/?p=412
+DPKG_EXPORT_BUILDFLAGS = 1
+
+# export PYBUILD_NAME=humanfriendly
+# export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin/
+export PYBUILD_INSTALL_ARGS_python2 = --install-scripts=/dev/null
+
 %:
 	dh $@ --with python3,python2 --buildsystem=pybuild
 

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



More information about the Python-modules-commits mailing list