[Pkg-voip-commits] [starpy] 29/40: Remove examples "module" (Closes: #825200)

tzafrir at debian.org tzafrir at debian.org
Sat Jul 9 21:26:27 UTC 2016


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

tzafrir pushed a commit to branch master
in repository starpy.

commit ee618aaceeae6ee4accbaa5ad32391a6ea6988cc
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Sat Jul 9 21:11:50 2016 +0200

    Remove examples "module" (Closes: #825200)
    
    Add no-examples-module.patch to avoid installing the directory examples/
    as a python module.
---
 debian/patches/no-examples-module.patch | 17 +++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/no-examples-module.patch b/debian/patches/no-examples-module.patch
new file mode 100644
index 0000000..320aac6
--- /dev/null
+++ b/debian/patches/no-examples-module.patch
@@ -0,0 +1,17 @@
+From: Tzafrir Cohen <tzafrir at debian.org>
+Subject: don't include examples/ as a package
+
+The subdirectory examples is detected as a package. Replace
+find_packages() with an explicit list.
+
+--- a/setup.py
++++ b/setup.py
+@@ -29,7 +29,7 @@ setup(
+     long_description=open('README.rst').read(),
+     keywords='asterisk manager fastagi twisted AMI',
+     url='https://github.com/asterisk/starpy',
+-    packages=find_packages(),
++    packages='starpy',
+     classifiers=[
+         "Development Status :: 5 - Production/Stable",
+         "Intended Audience :: Developers",
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a350d16
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no-examples-module.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/starpy.git



More information about the Pkg-voip-commits mailing list