File 0001-Don-t-install-dummyserver-into-site-packages.patch of Package python-urllib3

From 3361f884456699c67bf4eef2eeafb14a071cc509 Mon Sep 17 00:00:00 2001
From: Sascha Peilicke <saschpe@mailbox.org>
Date: Thu, 20 Mar 2014 15:41:39 +0100
Subject: [PATCH] Don't install dummyserver into site-packages

It is pure example code with self-signed certificates. It pollutes the
global site-packages spaces and is potentially dangerous (if used
accidentally). It doesn't make sense to install it as 'package_data' or
'date_files' either. Since it servers as an example it should be part
of the source distribution.
---
 MANIFEST.in | 1 +
 setup.py    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index d1abae2..3f344d1 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1 +1,2 @@
 include README.rst CHANGES.rst LICENSE.txt CONTRIBUTORS.txt test-requirements.txt
+recursive-include dummyserver *.*
diff --git a/setup.py b/setup.py
index 392b885..84e6d5f 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ setup(name='urllib3',
       author_email='andrey.petrov@shazow.net',
       url='http://urllib3.readthedocs.org/',
       license='MIT',
-      packages=['urllib3', 'dummyserver',
+      packages=['urllib3',
                 'urllib3.packages', 'urllib3.packages.ssl_match_hostname',
                 'urllib3.contrib',
                 ],
-- 
1.9.0

openSUSE Build Service is sponsored by