[Checkins] SVN: Sandbox/baijum/bluebream/trunk/ Fix LP #502529: Update wizard to ask all package meta to

Baiju M baiju.m.mail at gmail.com
Sun Jan 3 03:38:30 EST 2010


Log message for revision 107580:
  Fix LP #502529: Update wizard to ask all package meta to
  be updated in setup.py
  

Changed:
  U   Sandbox/baijum/bluebream/trunk/CHANGES.txt
  U   Sandbox/baijum/bluebream/trunk/src/bluebream/template.py
  U   Sandbox/baijum/bluebream/trunk/src/bluebream/tests/bluebream.txt

-=-
Modified: Sandbox/baijum/bluebream/trunk/CHANGES.txt
===================================================================
--- Sandbox/baijum/bluebream/trunk/CHANGES.txt	2010-01-03 06:34:39 UTC (rev 107579)
+++ Sandbox/baijum/bluebream/trunk/CHANGES.txt	2010-01-03 08:38:30 UTC (rev 107580)
@@ -6,6 +6,8 @@
 
 - Added functional testing support for project
 - Sphinx based documentation infrastruture improvements
+- LP #502529: Update wizard to ask all package meta to
+  be updated in setup.py
 
 0.1.1 (2010-01-02)
 ------------------

Modified: Sandbox/baijum/bluebream/trunk/src/bluebream/template.py
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/template.py	2010-01-03 06:34:39 UTC (rev 107579)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/template.py	2010-01-03 08:38:30 UTC (rev 107580)
@@ -20,5 +20,18 @@
 
     _template_dir = 'project_template'
     summary = "A Zope project"
-    vars = [var('namespace_package', '')]
+    vars = [
+        var('namespace_package', 'Namespace package name'),
+        var('version', 'Version (like 0.1)'),
+        var('description', 'One-line description of the package'),
+        var('long_description', 'Multi-line description (in reST)'),
+        var('keywords', 'Space-separated keywords/tags'),
+        var('author', 'Author name'),
+        var('author_email', 'Author email'),
+        var('url', 'URL of homepage'),
+        var('license_name', 'License name'),
+        var('zip_safe',
+            'True/False: if the package can be distributed as a .zip file',
+            default=False),
+        ]
 

Modified: Sandbox/baijum/bluebream/trunk/src/bluebream/tests/bluebream.txt
===================================================================
--- Sandbox/baijum/bluebream/trunk/src/bluebream/tests/bluebream.txt	2010-01-03 06:34:39 UTC (rev 107579)
+++ Sandbox/baijum/bluebream/trunk/src/bluebream/tests/bluebream.txt	2010-01-03 08:38:30 UTC (rev 107580)
@@ -7,16 +7,36 @@
 >>> cmd = commands['create'].load()
 >>> runner = cmd('create')
 >>> option_args = []
->>> extra_args = ["namespace_package=testname"]
+>>> extra_args = [
+...            "namespace_package=test_name",
+...            "version=0.1",
+...            "description=test_description",
+...            "long_description=test_long_description",
+...            "keywords=test_keyword",
+...            "author=test_author",
+...            "author_email=test_author_email",
+...            "url=http://example.com",
+...            "license_name=Test Public License",
+...            "zip_safe=False",
+...            ]
 >>> exit_code = runner.run(option_args + ['-t', 'bluebream', project] + extra_args)
 Selected and implied templates:
   bluebream#bluebream  A Zope project
 <BLANKLINE>
 Variables:
+  author:             test_author
+  author_email:       test_author_email
+  description:        test_description
   egg:                sample
-  namespace_package:  testname
+  keywords:           test_keyword
+  license_name:       Test Public License
+  long_description:   test_long_description
+  namespace_package:  test_name
   package:            sample
   project:            sample
+  url:                http://example.com
+  version:            0.1
+  zip_safe:           False
 Creating template bluebream
 Creating directory ./sample
   Copying bootstrap.py to ./sample/bootstrap.py
@@ -30,16 +50,19 @@
   Recursing into src
     Creating ./sample/src/
     Recursing into +namespace_package+
-      Creating ./sample/src/testname/
-      Copying __init__.py to ./sample/src/testname/__init__.py
+      Creating ./sample/src/test_name/
+      Copying __init__.py to ./sample/src/test_name/__init__.py
       Recursing into main
-        Creating ./sample/src/testname/main/
-        Copying __init__.py to ./sample/src/testname/main/__init__.py
-        Copying application.zcml_tmpl to ./sample/src/testname/main/application.zcml
-        Copying configure.zcml_tmpl to ./sample/src/testname/main/configure.zcml
-        Copying securitypolicy.zcml_tmpl to ./sample/src/testname/main/securitypolicy.zcml
-        Copying startup.py to ./sample/src/testname/main/startup.py
-        Copying views.py to ./sample/src/testname/main/views.py
+        Creating ./sample/src/test_name/main/
+        Copying README.txt_tmpl to ./sample/src/test_name/main/README.txt
+        Copying __init__.py to ./sample/src/test_name/main/__init__.py
+        Copying application.zcml_tmpl to ./sample/src/test_name/main/application.zcml
+        Copying configure.zcml_tmpl to ./sample/src/test_name/main/configure.zcml
+        Copying ftesting.zcml_tmpl to ./sample/src/test_name/main/ftesting.zcml
+        Copying securitypolicy.zcml_tmpl to ./sample/src/test_name/main/securitypolicy.zcml
+        Copying startup.py to ./sample/src/test_name/main/startup.py
+        Copying tests.py_tmpl to ./sample/src/test_name/main/tests.py
+        Copying views.py to ./sample/src/test_name/main/views.py
     Recursing into +package+.egg-info
       Creating ./sample/src/sample.egg-info/
   Recursing into templates



More information about the checkins mailing list