[Python-modules-commits] [python-aiosmtpd] 02/02: Clean a previously wrongfully installed directory /usr/lib/p/d-p/examples
Pierre-Elliott Bécue
peb-guest at moszumanska.debian.org
Mon Jan 8 18:06:34 UTC 2018
This is an automated email from the git hooks/post-receive script.
peb-guest pushed a commit to branch master
in repository python-aiosmtpd.
commit 0ca2e6d546c3394cb370b9321e9a37436e1e0745
Author: Pierre-Elliott Bécue <becue at crans.org>
Date: Mon Jan 8 19:05:36 2018 +0100
Clean a previously wrongfully installed directory /usr/lib/p/d-p/examples
* Add specific pybuild rule to avoid installing
/usr/lib/pythonXX/dist-packages/examples. Instead, move it to
/usr/share/doc/python3-aiosmtpd/, and remove the __pycache__ compiled
files in it.
---
debian/changelog | 9 +++++++--
debian/python3-aiosmtpd.dirs | 1 +
debian/rules | 6 ++++++
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d789a3d..e1b99ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,16 @@
-python-aiosmtpd (1.1-4) UNRELEASED; urgency=medium
+python-aiosmtpd (1.1-4) unstable; urgency=medium
* d/watch: use uscan magic tags to fetch properly the gpg signature
* d/control:
- Bump Standards-Version to 4.1.3, no changes needed.
- Swap myself and DPMT as Maintainer/Uploaders
+ * d/rules:
+ - Add specific pybuild rule to avoid installing
+ /usr/lib/pythonXX/dist-packages/examples. Instead, move it to
+ /usr/share/doc/python3-aiosmtpd/, and remove the __pycache__ compiled
+ files in it.
- -- Pierre-Elliott Bécue <becue at crans.org> Mon, 11 Dec 2017 21:59:41 +0100
+ -- Pierre-Elliott Bécue <becue at crans.org> Mon, 08 Jan 2018 19:05:52 +0100
python-aiosmtpd (1.1-3) unstable; urgency=medium
diff --git a/debian/python3-aiosmtpd.dirs b/debian/python3-aiosmtpd.dirs
new file mode 100644
index 0000000..8b07ef8
--- /dev/null
+++ b/debian/python3-aiosmtpd.dirs
@@ -0,0 +1 @@
+usr/share/doc/python3-aiosmtpd
diff --git a/debian/rules b/debian/rules
index d1fcbfc..8c964ed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,11 +4,17 @@
#export DH_VERBOSE = 1
export PYBUILD_NAME=aiosmtpd
+export PYBUILD_AFTER_INSTALL=mv '{destdir}/{install_dir}/examples' \
+ '{destdir}/usr/share/doc/python3-aiosmtpd/'
# main packaging script based on dh7 syntax
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+override_dh_auto_install:
+ dh_auto_install
+ rm -rf debian/python3-aiosmtpd/usr/share/doc/python3-aiosmtpd/examples/__pycache__
+
override_dh_installdocs:
PYTHONPATH=. sphinx-build -N -q -E -c ./ -b html . debian/compiled_doc/temp
mv debian/compiled_doc/temp/aiosmtpd/docs debian/compiled_doc/html
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-aiosmtpd.git
More information about the Python-modules-commits
mailing list