Skip to content

Commit

Permalink
Move manage to package, add stutuzctl entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed Oct 22, 2010
1 parent 58d77f3 commit fd788ba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
@@ -1,5 +1,4 @@
include LICENSE
include README.rst
include manage.py
recursive-include stutuz/static *
recursive-include stutuz/templates *
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -59,7 +59,7 @@ Run the tests::

Start the development server::

./manage.py runserver
stutuzctl runserver

When you're done you might want to get out of the environment::

Expand Down
6 changes: 6 additions & 0 deletions setup.py
Expand Up @@ -32,6 +32,12 @@
include_package_data=True,
zip_safe=False,

entry_points={
'console_scripts': [
'stutuzctl = stutuz.manage:main',
],
},

install_requires=[
'Flask>=0.6',
'Flask-Genshi>=0.4',
Expand Down
6 changes: 5 additions & 1 deletion manage.py → stutuz/manage.py
Expand Up @@ -46,5 +46,9 @@ def shell():
bpython.embed(context, ['-i'], banner)


if __name__ == '__main__':
def main():
manager.run()


if __name__ == '__main__':
main()

0 comments on commit fd788ba

Please sign in to comment.