[Checkins] SVN: z3c.menu/trunk/ Update package data.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Nov 1 16:47:03 EDT 2007
Log message for revision 81378:
Update package data.
Changed:
A z3c.menu/trunk/CHANGES.txt
U z3c.menu/trunk/README.txt
A z3c.menu/trunk/bootstrap.py
D z3c.menu/trunk/setup.cfg
U z3c.menu/trunk/setup.py
_U z3c.menu/trunk/src/
U z3c.menu/trunk/src/z3c/menu/simple/README.txt
-=-
Added: z3c.menu/trunk/CHANGES.txt
===================================================================
--- z3c.menu/trunk/CHANGES.txt (rev 0)
+++ z3c.menu/trunk/CHANGES.txt 2007-11-01 20:47:03 UTC (rev 81378)
@@ -0,0 +1,10 @@
+=======
+CHANGES
+=======
+
+0.2.0 (2007-11-01)
+------------------
+
+- Initial release.
+
+ * A simple menu implementation based on viewlets.
Property changes on: z3c.menu/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: z3c.menu/trunk/README.txt
===================================================================
--- z3c.menu/trunk/README.txt 2007-11-01 20:45:12 UTC (rev 81377)
+++ z3c.menu/trunk/README.txt 2007-11-01 20:47:03 UTC (rev 81378)
@@ -1,2 +1,2 @@
-The z3c.menu.simple package provides a simple menu implementation which
-allows you to implement simply menus based on content providers and viewlets.
+The z3c.menu package provides a simple menu implementation which allows you to
+implement simply menus based on content providers and viewlets.
Added: z3c.menu/trunk/bootstrap.py
===================================================================
--- z3c.menu/trunk/bootstrap.py (rev 0)
+++ z3c.menu/trunk/bootstrap.py 2007-11-01 20:47:03 UTC (rev 81378)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2006 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.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+ez = {}
+exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+import pkg_resources
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+ cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+ os.P_WAIT, sys.executable, sys.executable,
+ '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+ dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)
Property changes on: z3c.menu/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
+ Id
Deleted: z3c.menu/trunk/setup.cfg
===================================================================
--- z3c.menu/trunk/setup.cfg 2007-11-01 20:45:12 UTC (rev 81377)
+++ z3c.menu/trunk/setup.cfg 2007-11-01 20:47:03 UTC (rev 81378)
@@ -1,2 +0,0 @@
-[egg_info]
-tag_svn_revision = 1
Modified: z3c.menu/trunk/setup.py
===================================================================
--- z3c.menu/trunk/setup.py 2007-11-01 20:45:12 UTC (rev 81377)
+++ z3c.menu/trunk/setup.py 2007-11-01 20:47:03 UTC (rev 81378)
@@ -1,19 +1,57 @@
-#!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.menu package
+
+$Id: setup.py 81038 2007-10-24 14:34:17Z srichter $
+"""
+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.menu',
- version='0.1.1',
- author = "Zope Community",
- author_email = "zope3-dev at zope.org",
- description = open("README.txt").read(),
- license = "ZPL 2.1",
- keywords = "menu zope zope3",
- url='http://svn.zope.org/z3c.menu',
- zip_safe=False,
+ version = '0.2.0',
+ author='Zope Corporation and Contributors',
+ author_email='zope3-dev at zope.org',
+ description='Collection of Viewlet-based Menus',
+ long_description=(
+ read('README.txt')
+ + '\n\n' +
+ 'Detailed Dcoumentation\n' +
+ '======================\n'
+ + '\n\n' +
+ read('src', 'z3c', 'menu', 'simple', 'README.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ keywords = "zope3 menu viewlet simple",
+ 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.menu',
+ license='ZPL 2.1',
packages=find_packages('src'),
- include_package_data=True,
- package_dir = {'':'src'},
- namespace_packages=['z3c',],
+ package_dir = {'': 'src'},
+ namespace_packages=['z3c'],
install_requires = [
'setuptools',
'z3c.i18n',
@@ -35,5 +73,6 @@
'zope.traversing',
],
},
- )
-
+ include_package_data = True,
+ zip_safe = False,
+ )
Property changes on: z3c.menu/trunk/src
___________________________________________________________________
Name: svn:ignore
+ z3c.menu.egg-info
Modified: z3c.menu/trunk/src/z3c/menu/simple/README.txt
===================================================================
--- z3c.menu/trunk/src/z3c/menu/simple/README.txt 2007-11-01 20:45:12 UTC (rev 81377)
+++ z3c.menu/trunk/src/z3c/menu/simple/README.txt 2007-11-01 20:47:03 UTC (rev 81378)
@@ -2,11 +2,11 @@
Simple Menu
===========
-The z3c.menu.simple package provides a simple menu implementation which
+The z3c.menu.simple package provides a simple menu implementation which
allows you to implement simply menus based on content providers and viewlets.
Right now there are some ``SimpleMenuItem`` menu item implementations and
-a tabbed menu with tab/tab-item and action/action-item located in this
+a tabbed menu with tab/tab-item and action/action-item located in this
package.
Let's see what this means.
@@ -125,14 +125,14 @@
>>> class IMasterMenu(IViewletManager):
... """Master menu viewlet manager."""
-Let's create a viewlet manager using this interface and the TabMenu as base
+Let's create a viewlet manager using this interface and the TabMenu as base
class:
>>> from z3c.menu.simple.menu import TabMenu
- >>> MasterMenu = manager.ViewletManager('masterMenu', IMasterMenu,
+ >>> MasterMenu = manager.ViewletManager('masterMenu', IMasterMenu,
... bases=(TabMenu,))
-We use the same context, request and view like before:
+We use the same context, request and view like before:
>>> masterMenu = MasterMenu(content, request, view)
@@ -200,7 +200,7 @@
</span>
</div>
-After showing how a tab menu item get used, we will register a menu action
+After showing how a tab menu item get used, we will register a menu action
item.
>>> from z3c.menu.simple.menu import ActionItem
More information about the Checkins
mailing list