Great Migration: spline.plugins => splinext veekun-promotions/2010051501
authorEevee <git@veekun.com>
Sun, 16 May 2010 03:28:54 +0000 (20:28 -0700)
committerEevee <git@veekun.com>
Sun, 16 May 2010 03:28:54 +0000 (20:28 -0700)
setup.py
spline/__init__.py [deleted file]
splinext/__init__.py [moved from spline/plugins/__init__.py with 100% similarity]
splinext/gts/__init__.py [moved from spline/plugins/gts/__init__.py with 83% similarity]
splinext/gts/controllers/__init__.py [moved from spline/plugins/gts/controllers/__init__.py with 100% similarity]
splinext/gts/controllers/gts.py [moved from spline/plugins/gts/controllers/gts.py with 99% similarity]
splinext/gts/model/__init__.py [moved from spline/plugins/gts/model/__init__.py with 100% similarity]
splinext/gts/templates/css/gts.mako [moved from spline/plugins/gts/templates/css/gts.mako with 100% similarity]

index 7dd0cfc..2f96d5b 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ setup(
     name = 'spline-gts',
     version = '0.1',
     packages = find_packages(),
-    
+
     install_requires = [
         'spline',
         'spline-users',
@@ -14,7 +14,7 @@ setup(
 
     zip_safe = False,
 
-    entry_points = {'spline.plugins': 'gts = spline.plugins.gts:GTSPlugin'},
+    entry_points = {'spline.plugins': 'gts = splinext.gts:GTSPlugin'},
 
-    namespace_packages = ['spline', 'spline.plugins'],
+    namespace_packages = ['splinext'],
 )
diff --git a/spline/__init__.py b/spline/__init__.py
deleted file mode 100644 (file)
index de40ea7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-__import__('pkg_resources').declare_namespace(__name__)
similarity index 83%
rename from spline/plugins/gts/__init__.py
rename to splinext/gts/__init__.py
index c1b0fb5..bd10c07 100644 (file)
@@ -7,8 +7,8 @@ from spline.lib.plugin import PluginBase, PluginLink, Priority
 import spline.model as model
 import spline.model.meta as meta
 
-import spline.plugins.gts.controllers.gts
-import spline.plugins.gts.model
+import splinext.gts.controllers.gts
+import splinext.gts.model
 
 def add_routes_hook(map, *args, **kwargs):
     """Hook to inject some of our behavior into the routes configuration."""
@@ -20,12 +20,12 @@ def add_routes_hook(map, *args, **kwargs):
 class GTSPlugin(PluginBase):
     def controllers(self):
         return dict(
-            gts = spline.plugins.gts.controllers.gts.GTSController,
+            gts = splinext.gts.controllers.gts.GTSController,
         )
 
     def model(self):
         return [
-            spline.plugins.gts.model.GTSPokemon,
+            splinext.gts.model.GTSPokemon,
         ]
 
     def template_dirs(self):
similarity index 99%
rename from spline/plugins/gts/controllers/gts.py
rename to splinext/gts/controllers/gts.py
index 98526a8..a9262f0 100644 (file)
@@ -25,7 +25,7 @@ from spline.model import meta
 from spline.lib.base import BaseController, render
 from spline.lib import helpers as h
 
-from spline.plugins.gts.model import GTSPokemon
+from splinext.gts.model import GTSPokemon
 
 log = logging.getLogger(__name__)