[Checkins] SVN: zopyx.smartprintng.server/trunk/ entry point
Andreas Jung
andreas at andreas-jung.com
Sun Jul 5 08:39:22 EDT 2009
Log message for revision 101578:
entry point
Changed:
U zopyx.smartprintng.server/trunk/setup.py
U zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/cli.py
-=-
Modified: zopyx.smartprintng.server/trunk/setup.py
===================================================================
--- zopyx.smartprintng.server/trunk/setup.py 2009-07-05 12:35:35 UTC (rev 101577)
+++ zopyx.smartprintng.server/trunk/setup.py 2009-07-05 12:39:22 UTC (rev 101578)
@@ -25,9 +25,11 @@
install_requires=[
'setuptools',
'twisted',
+ 'uuid',
+ 'zopyx.convert2',
# -*- Extra requirements: -*-
],
- entry_points="""
- # -*- Entry points: -*-
- """,
+ entry_points=dict(
+ console_scripts=['smartprintng_server=zopyx.smartprintng.server.cli:main']
)
+ )
Modified: zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/cli.py
===================================================================
--- zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/cli.py 2009-07-05 12:35:35 UTC (rev 101577)
+++ zopyx.smartprintng.server/trunk/zopyx/smartprintng/server/cli.py 2009-07-05 12:39:22 UTC (rev 101578)
@@ -65,9 +65,11 @@
return output_filename
-if __name__ == '__main__':
+def main():
from twisted.internet import reactor
r = Server()
reactor.listenTCP(7080, server.Site(r))
reactor.run()
+if __name__ == '__main__':
+ main()
More information about the Checkins
mailing list