[Checkins] SVN: z3c.viewtemplate/trunk/ Fix up the package meta-data and get ready for a new release.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Nov 1 16:05:06 EDT 2007


Log message for revision 81368:
  Fix up the package meta-data and get ready for a new release.
  

Changed:
  U   z3c.viewtemplate/trunk/CHANGES.txt
  U   z3c.viewtemplate/trunk/README.txt
  U   z3c.viewtemplate/trunk/buildout.cfg
  U   z3c.viewtemplate/trunk/setup.py
  _U  z3c.viewtemplate/trunk/src/
  U   z3c.viewtemplate/trunk/src/z3c/viewtemplate/README.txt

-=-
Modified: z3c.viewtemplate/trunk/CHANGES.txt
===================================================================
--- z3c.viewtemplate/trunk/CHANGES.txt	2007-11-01 19:49:11 UTC (rev 81367)
+++ z3c.viewtemplate/trunk/CHANGES.txt	2007-11-01 20:05:05 UTC (rev 81368)
@@ -1,24 +1,28 @@
-============================
-Changes for z3c.viewtemplate
-============================
+=======
+CHANGES
+=======
 
+0.3.2 (2007-11-01)
+------------------
 
-Version 0.3.1 (2007-10-31)
-========================
+- Fix package meta-data.
 
-- bugfix: options did not get passed in to macro templates
+0.3.1 (2007-10-31)
+------------------
 
+- Bugfix: Options did not get passed in to macro templates.
 
-Version 0.3.0 (2007-09-27)
-========================
 
-- Add the request to BeforeUpdateEvent, this requires a recent
+0.3.0 (2007-09-27)
+------------------
+
+- Add the request to ``BeforeUpdateEvent``, this requires a recent
   zope.contentprovider package.
 
-- no dev release anymore
+- No dev release anymore.
 
 
-Version 0.2 (2007-05-01)
-========================
+0.2 (2007-05-01)
+----------------
 
-- Fire a BeforeUpdateEvent in the base views. This requires zope 3.4
+- Fire a ``BeforeUpdateEvent`` in the base views. This requires zope 3.4.

Modified: z3c.viewtemplate/trunk/README.txt
===================================================================
--- z3c.viewtemplate/trunk/README.txt	2007-11-01 19:49:11 UTC (rev 81367)
+++ z3c.viewtemplate/trunk/README.txt	2007-11-01 20:05:05 UTC (rev 81368)
@@ -10,10 +10,10 @@
 other hand contain the resources to generate the UI, for example templates,
 images and CSS files.
 
-The problem of the existing infrastructure is that code, template and layer are all
-hardlinked in one zcml configuration directive of the view component  -- page,
-content provider, viewlet. This package separates this triplet -- code, template,
-layer -- into two pairs, code/layer and template/skin. No additional
-components are introduced, since skins and layers are physically the same
-components.
+The problem of the existing infrastructure is that code, template and layer
+are all hardlinked in one zcml configuration directive of the view component
+-- page, content provider, viewlet. This package separates this triplet --
+code, template, layer -- into two pairs, code/layer and template/skin. No
+additional components are introduced, since skins and layers are physically
+the same components.
 

Modified: z3c.viewtemplate/trunk/buildout.cfg
===================================================================
--- z3c.viewtemplate/trunk/buildout.cfg	2007-11-01 19:49:11 UTC (rev 81367)
+++ z3c.viewtemplate/trunk/buildout.cfg	2007-11-01 20:05:05 UTC (rev 81368)
@@ -1,11 +1,7 @@
 [buildout]
 develop = .
 parts = test
-versions = versions
 
 [test]
 recipe = zc.recipe.testrunner
 eggs = z3c.viewtemplate [test]
-
-[versions]
-zope.contentprovider = 3.4.0b1.dev-r75494

Modified: z3c.viewtemplate/trunk/setup.py
===================================================================
--- z3c.viewtemplate/trunk/setup.py	2007-11-01 19:49:11 UTC (rev 81367)
+++ z3c.viewtemplate/trunk/setup.py	2007-11-01 20:05:05 UTC (rev 81368)
@@ -1,23 +1,61 @@
-#!python
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Setup for z3c.viewtemplate package
+
+$Id$
+"""
+import os
 from setuptools import setup, find_packages
 
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
 setup(name='z3c.viewtemplate',
-      version='0.3.1',
-      author = "Zope Community",
-      author_email = "zope3-dev at zope.org",
-      description = open("README.txt").read(),
-      license = "ZPL 2.1",
-      keywords = "view template zope zope3",
-      url='http://svn.zope.org/z3c.viewtemplate',
-
-      zip_safe=False,
+      version = '0.3.2',
+      author='Zope Corporation and Contributors',
+      author_email='zope3-dev at zope.org',
+      description='View Templates',
+      long_description=(
+          read('README.txt')
+          + '\n\n' +
+          'Detailed Dcoumentation\n' +
+          '======================\n'
+          + '\n\n' +
+          read('src', 'z3c', 'viewtemplate', 'README.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      keywords = "zope3 view template pagetemplate macro",
+      classifiers = [
+          'Development Status :: 5 - Production/Stable',
+          'Environment :: Web Environment',
+          'Intended Audience :: Developers',
+          'License :: OSI Approved :: Zope Public License',
+          'Programming Language :: Python',
+          'Natural Language :: English',
+          'Operating System :: OS Independent',
+          'Topic :: Internet :: WWW/HTTP',
+          'Framework :: Zope3'],
+      url='http://cheeseshop.python.org/pypi/z3c.viewtemplate',
+      license='ZPL 2.1',
       packages=find_packages('src'),
-      include_package_data=True,
-      package_dir = {'':'src'},
-      namespace_packages=['z3c',],
-      extras_require = dict(test=['zope.app.testing',
-                                  'zope.testing',
-                                  ]),
+      package_dir = {'': 'src'},
+      namespace_packages=['z3c'],
+      extras_require = dict(
+          test=['zope.app.testing',
+                'zope.testing',
+                ]),
       install_requires=[
           'setuptools',
           'zope.app.pagetemplate',
@@ -29,5 +67,6 @@
           'zope.publisher',
           'zope.tal',
           ],
+      include_package_data = True,
+      zip_safe = False,
       )
-


Property changes on: z3c.viewtemplate/trunk/src
___________________________________________________________________
Name: svn:ignore
   + z3c.viewtemplate.egg-info


Modified: z3c.viewtemplate/trunk/src/z3c/viewtemplate/README.txt
===================================================================
--- z3c.viewtemplate/trunk/src/z3c/viewtemplate/README.txt	2007-11-01 19:49:11 UTC (rev 81367)
+++ z3c.viewtemplate/trunk/src/z3c/viewtemplate/README.txt	2007-11-01 20:05:05 UTC (rev 81368)
@@ -14,12 +14,12 @@
 other hand contain the resources to generate the UI, for example templates,
 images and CSS files.
 
-The problem of the existing infrastructure is that code, template and layer are all
-hardlinked in one zcml configuration directive of the view component  -- page,
-content provider, viewlet. This package separates this triplet -- code, template,
-layer -- into two pairs, code/layer and template/skin. No additional
-components are introduced, since skins and layers are physically the same
-components.
+The problem of the existing infrastructure is that code, template and layer
+are all hardlinked in one zcml configuration directive of the view component
+-- page, content provider, viewlet. This package separates this triplet --
+code, template, layer -- into two pairs, code/layer and template/skin. No
+additional components are introduced, since skins and layers are physically
+the same components.
 
 Before we can setup a view component using this new method, we have to first
 create a template ...
@@ -130,7 +130,7 @@
   <div>macro1</div>
 
 Since it is possible to pass options to the viewlet let's prove if this
-is possible for macros as well::
+is possible for macros as well:
 
   >>> factory = TemplateFactory(macroTemplate, 'macro2', 'text/html')
   >>> print factory(view, request)(foo='bar')



More information about the Checkins mailing list