Package: python-django-authority Followup-For: Bug #634923 Hi,
I had a similar issue with one of my packages, and I am sending a patch that is removing example from packaging it as a module, and putting that directory as example under documentation. Best, Janos -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.3.0-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
>From da45d000526bfb38dd2c034d628e379d9861cf6d Mon Sep 17 00:00:00 2001 From: Janos Guljas <ja...@resenje.org> Date: Thu, 7 Jun 2012 19:06:00 +0200 Subject: [PATCH] Exclude example directory from packaging in global python namespace. --- debian/examples | 1 + debian/patches/exclude-example-module.patch | 17 +++++++++++++++++ debian/patches/series | 1 + 3 files changed, 19 insertions(+) create mode 100644 debian/examples create mode 100644 debian/patches/exclude-example-module.patch create mode 100644 debian/patches/series diff --git a/debian/examples b/debian/examples new file mode 100644 index 0000000..33a9488 --- /dev/null +++ b/debian/examples @@ -0,0 +1 @@ +example diff --git a/debian/patches/exclude-example-module.patch b/debian/patches/exclude-example-module.patch new file mode 100644 index 0000000..0ebf1e7 --- /dev/null +++ b/debian/patches/exclude-example-module.patch @@ -0,0 +1,17 @@ +Description: Exclude example directory from packaging in global python namespace. +Author: Janos Guljas <ja...@resenje.org> +Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634923 +Last-Update: 2012-06-07 + + +--- a/setup.py ++++ b/setup.py +@@ -14,7 +14,7 @@ + license='BSD', + url='http://bitbucket.org/jezdez/django-authority/', + download_url='http://bitbucket.org/jezdez/django-authority/downloads/', +- packages=find_packages(), ++ packages=find_packages(exclude=('example','example.exampleapp')), + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Environment :: Web Environment', diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..93e6129 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +exclude-example-module.patch -- 1.7.10