[Checkins] SVN: zope.broken/ New home for depended-upon IBroken interface.
Tres Seaver
tseaver at palladion.com
Wed Feb 4 15:54:05 EST 2009
Log message for revision 96085:
New home for depended-upon IBroken interface.
Changed:
A zope.broken/
A zope.broken/trunk/
A zope.broken/trunk/CHANGES.txt
A zope.broken/trunk/README.txt
A zope.broken/trunk/bootstrap.py
A zope.broken/trunk/buildout.cfg
A zope.broken/trunk/setup.py
A zope.broken/trunk/src/
A zope.broken/trunk/src/zope/
A zope.broken/trunk/src/zope/__init__.py
A zope.broken/trunk/src/zope/broken/
A zope.broken/trunk/src/zope/broken/__init__.py
A zope.broken/trunk/src/zope/broken/interfaces.py
-=-
Added: zope.broken/trunk/CHANGES.txt
===================================================================
--- zope.broken/trunk/CHANGES.txt (rev 0)
+++ zope.broken/trunk/CHANGES.txt 2009-02-04 20:54:04 UTC (rev 96085)
@@ -0,0 +1,8 @@
+=====================
+zope.broken Changelog
+=====================
+
+3.5.0 (2009-02-04)
+------------------
+
+- Created ``zope.broken`` to hold depended upon bits of ``zope.app.broken``.
Added: zope.broken/trunk/README.txt
===================================================================
--- zope.broken/trunk/README.txt (rev 0)
+++ zope.broken/trunk/README.txt 2009-02-04 20:54:04 UTC (rev 96085)
@@ -0,0 +1,12 @@
+==================
+zope.broken README
+==================
+
+This package defines a marker interface, ``zope.broken.IBroken``, used
+to identify objects which cannot be correctly loaded from the ZODB,
+typically because the class named in their pickle is not importable.
+
+The package exists as a dependency inversion, preventing packages which
+need to use this interface (e.g., ``zope.container``) from inheriting
+the dependencies of ``zope.app.broken`` (where the interface used to be
+defined).
Added: zope.broken/trunk/bootstrap.py
===================================================================
--- zope.broken/trunk/bootstrap.py (rev 0)
+++ zope.broken/trunk/bootstrap.py 2009-02-04 20:54:04 UTC (rev 96085)
@@ -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: bootstrap.py 73528 2007-03-25 07:03:34Z dobe $
+"""
+
+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)
Added: zope.broken/trunk/buildout.cfg
===================================================================
--- zope.broken/trunk/buildout.cfg (rev 0)
+++ zope.broken/trunk/buildout.cfg 2009-02-04 20:54:04 UTC (rev 96085)
@@ -0,0 +1,2 @@
+[buildout]
+develop = .
Added: zope.broken/trunk/setup.py
===================================================================
--- zope.broken/trunk/setup.py (rev 0)
+++ zope.broken/trunk/setup.py 2009-02-04 20:54:04 UTC (rev 96085)
@@ -0,0 +1,55 @@
+##############################################################################
+#
+# Copyright (c) 2009 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 zope.broken package
+
+$Id: setup.py 96059 2009-02-04 08:09:40Z wosc $
+"""
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(name='zope.broken',
+ version = '3.5.0dev',
+ author='Zope Corporation and Contributors',
+ author_email='zope3-dev at zope.org',
+ description='Zope Broken Object Interfaces',
+ long_description=(
+ read('README.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ keywords = "zope3 broken",
+ 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/zope.broken',
+ license='ZPL 2.1',
+ packages=find_packages('src'),
+ package_dir = {'': 'src'},
+ namespace_packages=['zope'],
+ install_requires=['setuptools',
+ 'zope.interface',
+ ],
+ include_package_data = True,
+ zip_safe = False,
+ )
Added: zope.broken/trunk/src/zope/__init__.py
===================================================================
--- zope.broken/trunk/src/zope/__init__.py (rev 0)
+++ zope.broken/trunk/src/zope/__init__.py 2009-02-04 20:54:04 UTC (rev 96085)
@@ -0,0 +1,8 @@
+# this is a namespace package
+try:
+ import pkg_resources
+ pkg_resources.declare_namespace(__name__)
+except ImportError:
+ import pkgutil
+ __path__ = pkgutil.extend_path(__path__, __name__)
+
Added: zope.broken/trunk/src/zope/broken/__init__.py
===================================================================
--- zope.broken/trunk/src/zope/broken/__init__.py (rev 0)
+++ zope.broken/trunk/src/zope/broken/__init__.py 2009-02-04 20:54:04 UTC (rev 96085)
@@ -0,0 +1 @@
+# Make this directory a package.
Added: zope.broken/trunk/src/zope/broken/interfaces.py
===================================================================
--- zope.broken/trunk/src/zope/broken/interfaces.py (rev 0)
+++ zope.broken/trunk/src/zope/broken/interfaces.py 2009-02-04 20:54:04 UTC (rev 96085)
@@ -0,0 +1,25 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""zope.app.broken interfaces.
+
+$Id: interfaces.py 72735 2007-02-21 05:02:33Z baijum $
+"""
+
+__docformat__ = "reStructuredText"
+
+import zope.interface
+
+class IBroken(zope.interface.Interface):
+ """Marker interface for broken objects
+ """
More information about the Checkins
mailing list