Changeset 103
- Timestamp:
- 08/03/06 06:32:11 (2 years ago)
- Files:
-
- streamservice/trunk/lib/streamservice/Dispatch.js.json (modified) (1 diff)
- streamservice/trunk/lib/streamservice/streamservice.include.js (modified) (3 diffs)
- streamservice/trunk/lib/streamservice/streamservice.json (added)
- streamservice/trunk/setup.py (modified) (2 diffs)
- streamservice/trunk/src-python/streamservice/json_provides.py (moved) (moved from streamservice/trunk/scripts/json-provides.py) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
streamservice/trunk/lib/streamservice/Dispatch.js.json
r100 r103 1 1 [{ 2 "streamservice" : { 3 "NAME" : "streamservice", 4 "VERSION" : "0.9.0", 5 "provide" : ["streamservice"], 6 "require" : ["MochiKit.Base", "MochiKit.Iter", "MochiKit.Async"], 2 "streamservice.Dispatch" : { 3 "NAME" : "streamservice.Dispatch", 4 "provide" : ["streamservice.Dispatch"], 5 "require" : ["streamservice"], 7 6 "EXPORT" : [ 8 7 "prepare_protocol", streamservice/trunk/lib/streamservice/streamservice.include.js
r101 r103 1 1 /* BEGIN: provides 2 * GENERATED BY: <http://svn.wiretooth.com/svn/open/scripts/json-provides .py>2 * GENERATED BY: <http://svn.wiretooth.com/svn/open/scripts/json-provides> 3 3 */ 4 4 if (typeof(dojo) != 'undefined') { … … 7 7 dojo.require('MochiKit.Iter'); 8 8 dojo.require('MochiKit.Async'); 9 dojo.provide('streamservice.Dispatch'); 9 10 dojo.provide('streamservice.Loopback'); 10 11 } … … 17 18 streamservice = {}; 18 19 } 20 if (typeof(streamservice.Dispatch) == 'undefined') { 21 streamservice.Dispatch = {}; 22 } 19 23 if (typeof(streamservice.Loopback) == 'undefined') { 20 24 streamservice.Loopback = {}; 21 25 } 22 /* GENERATED BY: <http://svn.wiretooth.com/svn/open/scripts/json-provides .py>26 /* GENERATED BY: <http://svn.wiretooth.com/svn/open/scripts/json-provides> 23 27 * END: provides */ streamservice/trunk/setup.py
r86 r103 6 6 from setuptools import setup, find_packages 7 7 8 desc=get_descriptors_rst(9 'streamservice.rst',10 short='streamservice:',11 long=':Abstract:',12 version=':Version:',13 includeprefix='.. _',14 excludeprefix='============')15 16 8 setup( 17 name = desc.get('short').split(' ',1)[0].replace(':','').strip(), 18 version = desc.get('version').split()[-1], 9 name = 'streamservice', 10 version = eval(file('lib/streamservice/streamservice.json').read())[0][ 11 'streamservice']['VERSION'], 19 12 install_requires = [ 20 #"mochikit >= 1. 1"13 #"mochikit >= 1.3.1" 21 14 "simplejson>=1.3" 22 15 ], 23 16 extras_require = dict( 24 17 CLI=['slavetools>=0.1.dev']), 25 description = desc.get('short').split(' ',1)[-1].strip(),26 18 license = 'MIT', 27 19 author = "Wiretooth Ltd", … … 31 23 entry_points = { 32 24 'console_scripts': [ 25 'json-provides = streamservice.json_provides:run_json_provides', 33 26 # python implementation to ease testing server implementations 34 27 'streamservice-client = streamservice.client_tool:run [CLI]', streamservice/trunk/src-python/streamservice/json_provides.py
r102 r103 1 1 #!/usr/bin/env python 2 """usage: %prog Lib.js.json 2 import os 3 BASENAME=os.path.splitext(os.path.basename(__file__))[0].replace('_','-') 4 __doc__="""usage: %(BASENAME)s Lib.js.json 3 5 4 6 For vim users; To explicitly inject the boiler plate for the current buffer:: 5 7 6 :!r % prog%.json8 :!r %(BASENAME)s %%.json 7 9 8 """ 10 """ % dict(BASENAME=BASENAME) 9 11 10 12 import os, sys, optparse 11 13 from simplejson import load 12 14 13 BASENAME=os.path.splitext(os.path.basename(__file__))[0]14 15 GENERATORID='<http://svn.wiretooth.com/svn/open/scripts/%s>' % BASENAME 15 16