[Checkins] SVN: grokproject/trunk/ do not use a console_script entry point for the interactive debugger, but have a buildout part generate the tool

Jan-Wijbrand Kolman janwijbrand at gmail.com
Tue May 18 10:01:42 EDT 2010


Log message for revision 112450:
  do not use a console_script entry point for the interactive debugger, but have a buildout part generate the tool

Changed:
  U   grokproject/trunk/CHANGES.txt
  U   grokproject/trunk/README.txt
  U   grokproject/trunk/grokproject/template/buildout.cfg_tmpl
  U   grokproject/trunk/grokproject/template/setup.py_tmpl
  U   grokproject/trunk/tests_paste.txt

-=-
Modified: grokproject/trunk/CHANGES.txt
===================================================================
--- grokproject/trunk/CHANGES.txt	2010-05-18 14:00:34 UTC (rev 112449)
+++ grokproject/trunk/CHANGES.txt	2010-05-18 14:01:42 UTC (rev 112450)
@@ -4,6 +4,9 @@
 1.0.4 (unreleased)
 ------------------
 
+* Remove the interactive debugger entry point in favor of a buildout part
+  that generates a similar commandline tool for the newly created project.
+
 * Use the zpassword functionality for the bin/zpasswd tool.
 
 * No longer build the zdaemon ctl.

Modified: grokproject/trunk/README.txt
===================================================================
--- grokproject/trunk/README.txt	2010-05-18 14:00:34 UTC (rev 112449)
+++ grokproject/trunk/README.txt	2010-05-18 14:01:42 UTC (rev 112450)
@@ -21,26 +21,26 @@
 
 After the project area has been created successfully, you will find an
 empty Python package in the ``src`` directory in which you can place
-the code for your web application.  
+the code for your web application.
 
 To start the application server, execute::
 
   $ cd MammothHerd
   $ bin/paster serve parts/etc/deploy.ini
-  
+
 Start/stop it in daemon mode::
 
   $ bin/paster serve parts/etc/deploy.ini --daemon
-  
-There is also an Ajax enabled debugger 
+
+There is also an Ajax enabled debugger
 (point your browser to http://localhost:8080/@@login.html when using this)::
 
   $ bin/paster serve parts/etc/debug.ini
-  
-Start the debugger::
 
-  $ bin/mammothherd-debug
+Start the interactive debugger::
 
+  $ bin/interactive_debugger
+
 For those who know paster: ``grokproject`` is just a wrapper around a
 paster template.  So instead of running the ``grokproject`` command,
 you can also run::

Modified: grokproject/trunk/grokproject/template/buildout.cfg_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/buildout.cfg_tmpl	2010-05-18 14:00:34 UTC (rev 112449)
+++ grokproject/trunk/grokproject/template/buildout.cfg_tmpl	2010-05-18 14:01:42 UTC (rev 112450)
@@ -13,6 +13,7 @@
     test
     zope_conf
     zpasswd
+    interactive_debugger
 # For backward compatibility, telling buildout not to throw away
 # the data and log subdirectories from the parts directory.
     data
@@ -93,6 +94,13 @@
 module = zope.password.zpasswd
 method = main
 
+[interactive_debugger]
+recipe = z3c.recipe.dev:script
+eggs = ${egg}
+module = grokcore.startup.startup
+method = interactive_debug_prompt
+arguments = zope_conf="$${zope_conf:output}"
+
 # The [data] and [log] parts are still in here to instruct buildout to not
 # unintentionally throw away the parts/data and parts/log subdirectories
 # that contain the Data.fs and the log files. These files should be

Modified: grokproject/trunk/grokproject/template/setup.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/setup.py_tmpl	2010-05-18 14:00:34 UTC (rev 112449)
+++ grokproject/trunk/grokproject/template/setup.py_tmpl	2010-05-18 14:01:42 UTC (rev 112450)
@@ -25,8 +25,4 @@
                         'grokcore.startup',
                         # Add extra requirements here
                         ],
-      entry_points = """
-      [console_scripts]
-      ${package}-debug = grokcore.startup:interactive_debug_prompt
-      """,
       )

Modified: grokproject/trunk/tests_paste.txt
===================================================================
--- grokproject/trunk/tests_paste.txt	2010-05-18 14:00:34 UTC (rev 112449)
+++ grokproject/trunk/tests_paste.txt	2010-05-18 14:01:42 UTC (rev 112450)
@@ -62,11 +62,11 @@
     >>> bin_dir = os.path.join(package_dir, 'bin')
     >>> ls(bin_dir)
     buildout
-    grokexample-debug
     i18ncompile
     i18nextract
     i18nmergeall
     i18nstats
+    interactive_debugger
     paster
     python-console
     test
@@ -241,15 +241,25 @@
     >>> print output
     Develop: '...'
     Updating app.
+    Generated script '...'.
+    Generated interpreter '...'.
     Updating site_zcml.
     Updating zope_conf.
     Updating debug_ini.
     Updating deploy_ini.
     Updating i18n.
     i18n: setting up i18n tools
+    Generated script '...'.
+    Generated script '...'.
+    Generated script '...'.
+    Generated script '...'.
     Updating mkdirs.
     Updating test.
+    Generated script '...'.
     Updating zpasswd.
+    Generated script '...'.
+    Updating interactive_debugger.
+    Generated script '...'.
     Updating data.
     Updating log.
     *************** PICKED VERSIONS ****************



More information about the checkins mailing list