Commits

Lynn Rees committed 7b12386 Merge
  • Participants
  • Parent commits f079e7f, 4317905
  • Branches default
  • Tags 0.1.2

Comments (0)

Files changed (7)

 syntax:glob
+.DS_Store
 *.pyc
 *.egg-info
 *~
 .coverage
 build/
 dist/
-
-syntax: glob
 .project
-syntax: glob
-.pydevproject
+.pydevproject
+.git/
+.settings/
+f0a9a73e3e104ab7d44bb179718544e6c0ee7d59 0.1-release
+752b41c35e596093971fe162b7774943a52083b1 0.1.1
+0.1
+
+Release
+Copyright (c) 2006-2011 L. C. Rees.  All rights reserved.
+Copyright (c) 2009 Raymond Hettinger
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+Allows arbitrary combinations of Python imports to be aggregated into a single
+application. This application is defined using an application configuration file
+("appconf") similar to Django's urlconf:
+
+>>> from appspace import patterns
+>>> apps = patterns(
+...    'helpers',
+...    ('square', 'math.sqrt'),
+...    ('fabulous', 'math.fabs'),
+...    include('subapp', 'foo.bar')
+... )
+
+Members of an application objects can be accessed as object attributes,
+dictionary keys, or through the application object's __call__ interface:
+
+>>> fab1 = plug.helpers.fabulous
+>>> fab2 = plug['helpers']['fabulous']
+>>> fab1(2)
+2.0
+>>> fab2(2)
+2.0
+>>> plug.helpers.fabulous(2)
+2.0
+>>> plug('fabulous', 2)
+2.0

appspace/builder.py

         @param path: something to load
         '''
         try:
-            if self._prefix is not None: name = '.'.join([self._prefix, path])
+            if self._prefix is not None: path = '.'.join([self._prefix, path])
             name = path.split('.')
             used = name.pop(0)
             found = __import__(used)
 '''setup for appspace'''
 
-from setuptools import setup
+import os
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.util import setup
 
 setup(
     name='appspace',
-    version='0.1',
-    description='''Loosely coupled application plumbing''',
-    long_description='''Loosely coupled application plumbing''',
+    version='0.1.1',
+    description='Loosely coupled application plumbing',
+    long_description=open(os.path.join(os.getcwd(), 'README'), 'rb').read(),
     author='L. C. Rees',
     author_email='lcrees@gmail.com',
-    license='ZPL',
-    packages = ['appspace'],
+    license='MIT',
+    url='https://bitbucket.org/lcrees/appspace',
     packages = ['appspace', 'appspace.test'],
     test_suite='appspace.test',
     zip_safe = False,
-    keywords='component injection aspect-oriented spring',
+    keywords='component injection aspect-oriented programming',
     classifiers=[
         'Development Status :: 4 - Beta',
         'Intended Audience :: Developers',
-        'License :: OSI Approved :: ZPL License',
+        'License :: OSI Approved :: MIT License',
         'Natural Language :: English',
         'Operating System :: OS Independent',
-        'Programming Language :: Python',
+        'Programming Language :: Python',
+        'Topic :: Software Development',
+        'Topic :: Software Development :: Libraries',
+        'Topic :: Utilities',
     ],
-    install_requires = ['zope.component>=3.10.0']
+    install_requires=['zope.component>=3.10.0']
 )