From 519c002bb83f1bb6e8eb9ec09c514aff3723e79a Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Wed, 22 Aug 2012 16:34:11 +0200
Subject: [PATCH] Change project name; Use namespaces

---
 setup.py                                    | 15 ++++++++++-----
 xbob/__init__.py                            |  2 ++
 {bob_buildout => xbob/buildout}/__init__.py |  0
 {bob_buildout => xbob/buildout}/external.py |  0
 {bob_buildout => xbob/buildout}/nose.py     |  0
 {bob_buildout => xbob/buildout}/sphx.py     |  0
 {bob_buildout => xbob/buildout}/tools.py    |  0
 7 files changed, 12 insertions(+), 5 deletions(-)
 create mode 100644 xbob/__init__.py
 rename {bob_buildout => xbob/buildout}/__init__.py (100%)
 rename {bob_buildout => xbob/buildout}/external.py (100%)
 rename {bob_buildout => xbob/buildout}/nose.py (100%)
 rename {bob_buildout => xbob/buildout}/sphx.py (100%)
 rename {bob_buildout => xbob/buildout}/tools.py (100%)

diff --git a/setup.py b/setup.py
index 7effb88..5d064c6 100644
--- a/setup.py
+++ b/setup.py
@@ -6,10 +6,10 @@
 from setuptools import setup, find_packages
 
 setup(
-    name='bob.buildout.recipes',
+    name='xbob.buildout',
     version='0.1.0',
     description="zc.buildout recipes to perform a variety of tasks required by Bob satellite packages",
-    keywords=['buildout', 'sphinx', 'nose', 'recipe', 'eggs'],
+    keywords=['buildout', 'sphinx', 'nose', 'recipe', 'eggs', 'bob'],
     url='http://github.com/bioidiap/bob.buildout.recipes',
     license='GPLv3',
     author='Andre Anjos',
@@ -22,15 +22,20 @@ setup(
     include_package_data=True,
     zip_safe=False,
 
+    namespace_packages = [
+      'xbob',
+    ],
+
     entry_points = {
       'zc.buildout': [
-        'external = bob_buildout.external:Recipe',
-        'sphinx = bob_buildout.sphx:Recipe',
-        'nose = bob_buildout.nose:Recipe',
+        'external = xbob.buildout.external:Recipe',
+        'sphinx = xbob.buildout.sphx:Recipe',
+        'nose = xbob.buildout.nose:Recipe',
         ],
       },
 
     install_requires=[
+      'setuptools',
       'Sphinx >= 1.0',
       'nose',
       'zc.recipe.egg',
diff --git a/xbob/__init__.py b/xbob/__init__.py
new file mode 100644
index 0000000..60381ea
--- /dev/null
+++ b/xbob/__init__.py
@@ -0,0 +1,2 @@
+#see http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+__import__('pkg_resources').declare_namespace(__name__)
diff --git a/bob_buildout/__init__.py b/xbob/buildout/__init__.py
similarity index 100%
rename from bob_buildout/__init__.py
rename to xbob/buildout/__init__.py
diff --git a/bob_buildout/external.py b/xbob/buildout/external.py
similarity index 100%
rename from bob_buildout/external.py
rename to xbob/buildout/external.py
diff --git a/bob_buildout/nose.py b/xbob/buildout/nose.py
similarity index 100%
rename from bob_buildout/nose.py
rename to xbob/buildout/nose.py
diff --git a/bob_buildout/sphx.py b/xbob/buildout/sphx.py
similarity index 100%
rename from bob_buildout/sphx.py
rename to xbob/buildout/sphx.py
diff --git a/bob_buildout/tools.py b/xbob/buildout/tools.py
similarity index 100%
rename from bob_buildout/tools.py
rename to xbob/buildout/tools.py
-- 
GitLab