[Python-modules-commits] [fake-factory] 10/17: Package the faker script in a separate package

Christopher Baines cbaines-guest at moszumanska.debian.org
Sat Mar 19 17:22:06 UTC 2016


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

cbaines-guest pushed a commit to branch master
in repository fake-factory.

commit 710d43bc459987ca24a45715aa39ff81e4fe6de2
Author: Christopher Baines <mail at cbaines.net>
Date:   Sat Mar 19 16:27:11 2016 +0000

    Package the faker script in a separate package
---
 debian/control                       |  9 ++++++++
 debian/{faker2.1 => faker.1}         |  6 ++---
 debian/faker.manpages                |  1 +
 debian/faker3.1                      | 45 ------------------------------------
 debian/python-fake-factory.manpages  |  1 -
 debian/python3-fake-factory.manpages |  1 -
 debian/rules                         |  8 +++++++
 7 files changed, 21 insertions(+), 50 deletions(-)

diff --git a/debian/control b/debian/control
index f1da002..bc68153 100644
--- a/debian/control
+++ b/debian/control
@@ -31,3 +31,12 @@ Depends: ${misc:Depends},
 Description: Faker is a Python library that generates fake data (Python 3)
  The fake data can be used to bootstrap a database, create XML documents, or
  anonymize data taken from a production service.
+
+Package: faker
+Architecture: all
+Depends: ${misc:Depends}, python3, python3-fake-factory
+Description: Python program that generates fake data
+ The fake data can be used to bootstrap a database, create XML documents, or
+ anonymize data taken from a production service.
+ .
+ This script is powered by the Python faker library.
diff --git a/debian/faker2.1 b/debian/faker.1
similarity index 88%
rename from debian/faker2.1
rename to debian/faker.1
index 4996349..5154867 100644
--- a/debian/faker2.1
+++ b/debian/faker.1
@@ -1,8 +1,8 @@
-.TH FAKER2 "1" "February 2016" "faker2 0.5.3" "User Commands"
+.TH FAKER "1" "February 2016" "faker 0.5.3" "User Commands"
 .SH NAME
-faker2 \- Python library for generating fake data
+faker \- Python library for generating fake data
 .SH DESCRIPTION
-usage: faker2 [\-h] [\-\-version] [\-o output]
+usage: faker [\-h] [\-\-version] [\-o output]
 [\-l {dk_DK,ru_RU,...,sv_SE,pl_PL}]
 [\-r REPEAT] [\-s SEP] [\-i [INCLUDE [INCLUDE ...]]]
 [fake [fake argument ...]]
diff --git a/debian/faker.manpages b/debian/faker.manpages
new file mode 100644
index 0000000..c357bbf
--- /dev/null
+++ b/debian/faker.manpages
@@ -0,0 +1 @@
+debian/faker.1
diff --git a/debian/faker3.1 b/debian/faker3.1
deleted file mode 100644
index 21cda1a..0000000
--- a/debian/faker3.1
+++ /dev/null
@@ -1,45 +0,0 @@
-.TH FAKER3 "1" "February 2016" "faker3 0.5.3" "User Commands"
-.SH NAME
-faker3 \- Python library for generating fake data
-.SH DESCRIPTION
-usage: faker3 [\-h] [\-\-version] [\-o output]
-[\-l {dk_DK,ru_RU,...,sv_SE,pl_PL}]
-[\-r REPEAT] [\-s SEP] [\-i [INCLUDE [INCLUDE ...]]]
-[fake [fake argument ...]]
-.PP
-Faker is a python library that generates fake data.  That fake data can be used
-to bootstrap a database, create XML documents, or anonymize data taken from a
-production service.
-.SS "positional arguments:"
-.TP
-fake
-name of the fake to generate output for (e.g. profile)
-.TP
-fake argument
-optional arguments to pass to the fake (e.g. the
-profile fake takes an optional list of comma separated
-field names as the first argument)
-.SS "optional arguments:"
-.TP
-\fB\-h\fR, \fB\-\-help\fR
-show this help message and exit
-.TP
-\fB\-\-version\fR
-show program's version number and exit
-.TP
-\fB\-o\fR output
-redirect output to a file
-.TP
-\fB\-l\fR {fa_IR,fi_FI,...,pt_PT,nl_NL}
-specify the language for a localized provider (e.g. de_DE)
-.TP
-\fB\-r\fR REPEAT, \fB\-\-repeat\fR REPEAT
-generate the specified number of outputs
-.TP
-\fB\-s\fR SEP, \fB\-\-sep\fR SEP
-use the specified separator after each output
-.TP
-\fB\-i\fR [INCLUDE [INCLUDE ...]], \fB\-\-include\fR [INCLUDE [INCLUDE ...]]
-list of additional custom providers to user, given as
-the import path of the module containing your Provider
-class (not the provider class itself)
diff --git a/debian/python-fake-factory.manpages b/debian/python-fake-factory.manpages
deleted file mode 100644
index 3031e1f..0000000
--- a/debian/python-fake-factory.manpages
+++ /dev/null
@@ -1 +0,0 @@
-debian/faker2.1
diff --git a/debian/python3-fake-factory.manpages b/debian/python3-fake-factory.manpages
deleted file mode 100644
index ed764c1..0000000
--- a/debian/python3-fake-factory.manpages
+++ /dev/null
@@ -1 +0,0 @@
-debian/faker3.1
diff --git a/debian/rules b/debian/rules
index b39e9fe..ed60a6c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,14 @@ export PYBUILD_NAME=fake-factory
 %:
 	dh $@ --with python2 --with=python3 --buildsystem=pybuild
 
+override_dh_auto_install:
+	dh_auto_install
+	# Remove the faker script from the python 2 package
+	rm debian/python-fake-factory/usr/bin/faker
+	# Move the python 3 script to the faker package
+	mkdir -p debian/faker/usr/bin
+	mv debian/python3-fake-factory/usr/bin/faker debian/faker/usr/bin/
+
 override_dh_auto_test:
 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
 	set -ex ; for i in $(PYTHONS) $(PYTHON3S) ; do \

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



More information about the Python-modules-commits mailing list