Add Runner interface.

This commit is contained in:
Anthony Sottile 2014-03-23 16:22:24 -07:00
parent ae1d1681b2
commit 88686d298f
25 changed files with 282 additions and 148 deletions

View file

@ -0,0 +1,6 @@
import sys
def func():
print repr(sys.argv[1:])
print 'Hello World'
return 0

View file

@ -0,0 +1,4 @@
- id: foo
name: Foo
entry: foo
language: python

View file

@ -0,0 +1,11 @@
from setuptools import find_packages
from setuptools import setup
setup(
name='Foo',
version='0.0.0',
packages=find_packages('.'),
entry_points={
'console_scripts': ['foo = foo.main:func'],
},
)