Changeset 103

Show
Ignore:
Timestamp:
08/03/06 06:32:11 (2 years ago)
Author:
robin
Message:

setup.py tweaks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • streamservice/trunk/lib/streamservice/Dispatch.js.json

    r100 r103  
    11[{ 
    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"], 
    76    "EXPORT" : [ 
    87        "prepare_protocol", 
  • streamservice/trunk/lib/streamservice/streamservice.include.js

    r101 r103  
    11/* 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
    33 */ 
    44if (typeof(dojo) != 'undefined') { 
     
    77    dojo.require('MochiKit.Iter'); 
    88    dojo.require('MochiKit.Async'); 
     9    dojo.provide('streamservice.Dispatch'); 
    910    dojo.provide('streamservice.Loopback'); 
    1011} 
     
    1718    streamservice = {}; 
    1819} 
     20if (typeof(streamservice.Dispatch) == 'undefined') { 
     21    streamservice.Dispatch = {}; 
     22} 
    1923if (typeof(streamservice.Loopback) == 'undefined') { 
    2024    streamservice.Loopback = {}; 
    2125} 
    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>  
    2327 * END: provides */ 
  • streamservice/trunk/setup.py

    r86 r103  
    66from setuptools import setup, find_packages 
    77 
    8 desc=get_descriptors_rst( 
    9     'streamservice.rst', 
    10     short='streamservice:', 
    11     long=':Abstract:', 
    12     version=':Version:', 
    13     includeprefix='.. _', 
    14     excludeprefix='============') 
    15  
    168setup( 
    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'], 
    1912    install_requires = [ 
    20         #"mochikit >= 1.1" 
     13        #"mochikit >= 1.3.1" 
    2114        "simplejson>=1.3" 
    2215        ], 
    2316    extras_require = dict( 
    2417        CLI=['slavetools>=0.1.dev']), 
    25     description = desc.get('short').split(' ',1)[-1].strip(), 
    2618    license = 'MIT', 
    2719    author = "Wiretooth Ltd", 
     
    3123    entry_points = { 
    3224        'console_scripts': [ 
     25        'json-provides = streamservice.json_provides:run_json_provides', 
    3326        # python implementation to ease testing server implementations 
    3427        'streamservice-client = streamservice.client_tool:run [CLI]', 
  • streamservice/trunk/src-python/streamservice/json_provides.py

    r102 r103  
    11#!/usr/bin/env python 
    2 """usage: %prog Lib.js.json 
     2import os 
     3BASENAME=os.path.splitext(os.path.basename(__file__))[0].replace('_','-') 
     4__doc__="""usage: %(BASENAME)s Lib.js.json 
    35 
    46For vim users; To explicitly inject the boiler plate for the current buffer:: 
    57 
    6     :!r %prog %.json 
     8    :!r %(BASENAME)s %%.json 
    79 
    8 """ 
     10""" % dict(BASENAME=BASENAME) 
    911 
    1012import os, sys, optparse 
    1113from simplejson import load 
    1214 
    13 BASENAME=os.path.splitext(os.path.basename(__file__))[0] 
    1415GENERATORID='<http://svn.wiretooth.com/svn/open/scripts/%s>' % BASENAME 
    1516