[Checkins] SVN: zope.security/trunk/ Moved to Githib.

Stephen Richter cvs-admin at zope.org
Mon Feb 11 20:38:49 UTC 2013


Log message for revision 129307:
  Moved to Githib.
  

Changed:
  D   zope.security/trunk/CHANGES.txt
  D   zope.security/trunk/COPYRIGHT.txt
  D   zope.security/trunk/LICENSE.txt
  D   zope.security/trunk/README.txt
  D   zope.security/trunk/bootstrap.py
  D   zope.security/trunk/buildout.cfg
  D   zope.security/trunk/docs/
  D   zope.security/trunk/setup.cfg
  D   zope.security/trunk/setup.py
  D   zope.security/trunk/src/
  D   zope.security/trunk/tox.ini

-=-
Deleted: zope.security/trunk/CHANGES.txt
===================================================================
--- zope.security/trunk/CHANGES.txt	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/CHANGES.txt	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,359 +0,0 @@
-=======
-CHANGES
-=======
-
-4.0.0 (unreleased)
-------------------
-
-- Converted use of ``assert`` in non-test code to apprpriate error types:
-
-  - Non-dict's passed to ``Checker.__init__``.
-
-- Removed dprecattion of ``zope.security.adapter.TrustedAdapterFactory``.
-  Although it has been marked as deprectaed since before Zope3 3.2, current
-  versions of ``zope.compoent`` still rely on it.
-
-- Converted doctests to Sphinx documentation in 'docs'.
-
-- Added 'setup.py docs' alias (installs ``Sphinx`` and dependencies).
-
-- Added 'setup.py dev' alias (runs ``setup.py develop`` plus installs
-  ``nose`` and ``coverage``).
-
-- Made non-doctest tests fully independent of ``zope.testing``.
-
-  Two modules, ``zope.security.checker`` and ``zope.security.management``,
-  register cleanups with ``zope.testing`` IFF it is importable, but the
-  tests no longer rely on it.
-
-- Enabled building extensions without the 'svn:external' of the ``zope.proxy``
-  headers into our 'include' dir.
-
-- Bumped ``zope.proxy`` dependency to ">= 4.1.0" to enable compilation
-  on Py3k.
-
-- Replaced deprecated ``zope.component.adapts`` usage with equivalent
-  ``zope.component.adapter`` decorator.
-
-- Replaced deprecated ``zope.interface.classProvides`` usage with equivalent
-  ``zope.interface.provider`` decorator.
-
-- Replaced deprecated ``zope.interface.implements`` usage with equivalent
-  ``zope.interface.implementer`` decorator.
-
-- Dropped support for Python 2.4 and 2.5.
-
-- Added test convenience helper ``create_interaction`` and
-  ``with interaction()``.
-
-
-3.8.3 (2011-09-24)
-------------------
-
-- Fixed a regression introduced in 3.8.1: ``zope.location``\'s LocationProxy
-  did not get a security checker if ``zope.security.decorator`` was not
-  imported manually. Now ``zope.security.decorator`` is imported in
-  ``zope.security.proxy`` without re-introducing the circular import fixed in
-  3.8.1.
-
-3.8.2 (2011-05-24)
-------------------
-
-- Fix a test that failed on Python 2.7.
-
-
-3.8.1 (2011-05-03)
-------------------
-
-- Fixed circular import beween ``zope.security.decorator`` and
-  ``zope.security.proxy`` which led to an ``ImportError`` when only
-  importing ``zope.security.decorator``.
-
-
-3.8.0 (2010-12-14)
-------------------
-
-- Added tests for our own ``configure.zcml``.
-
-- Added ``zcml`` extra dependencies, run related tests only if
-  ``zope.configuration`` is available.
-
-- Run tests related to the ``untrustedpython`` functionality only if
-  ``RestrictedPython`` is available.
-
-
-3.7.3 (2010-04-30)
-------------------
-
-- Prefer the standard libraries doctest module to the one from zope.testing.
-
-- Fixed directlyProvides IVocabularyFactory for PermissionIdsVocabulary in
-  Python code, even if it's unnecessary because IVocabularyFactory is provided
-  in zcml.
-
-- Removed the dependency on the zope.exceptions package: zope.security.checker
-  now imports ``DuplicationError`` from zope.exceptions if available, otherwise
-  it defines a package-specific ``DuplicationError`` class which inherits from
-  Exception.
-
-
-3.7.2 (2009-11-10)
-------------------
-
-- Added compatibility with Python 2.6 abstract base classes.
-
-
-3.7.1 (2009-08-13)
-------------------
-
-- Fix for LP bug 181833 (from Gustavo Niemeyer). Before "visiting" a
-  sub-object, a check should be made to ensure the object is still valid.
-  Because garbage collection may involve loops, if you garbage collect an
-  object, it is possible that the actions done on this object may modify the
-  state of other objects. This may cause another round of garbage collection,
-  eventually generating a segfault (see LP bug). The Py_VISIT macro does the
-  necessary checks, so it is used instead of the previous code.
-
-
-3.7.0 (2009-05-13)
-------------------
-
-- Made ``pytz`` a soft dependency:  the checker for ``pytz.UTC`` is
-  created / tested only if the package is already present.  Run
-  ``bin/test_pytz`` to run the tests with ``pytz`` on the path.
-
-
-3.6.3 (2009-03-23)
-------------------
-
-- Ensure that simple zope.schema's VocabularyRegistry is used for
-  PermissionVocabulary tests, because it's replaced implicitly in
-  environments with zope.app.schema installed that makes that tests
-  fail.
-
-- Fixed a bug in DecoratedSecurityCheckerDescriptor which made
-  security-wrapping location proxied exception instances throw
-  exceptions on Python 2.5.
-  See https://bugs.launchpad.net/zope3/+bug/251848
-
-
-3.6.2 (2009-03-14)
-------------------
-
-- Add zope.i18nmessageid.Message to non-proxied basic types. It's okay, because
-  messages are immutable. It was done by zope.app.security before.
-
-- Add "__name__" and "__parent__" attributes to list of available by default.
-  This was also done by zope.app.security package before.
-
-- Added PermissionsVocabulary and PermissionIdsVocabulary vocabularies
-  to the ``zope.security.permission`` module. They were moved from
-  the ``zope.app.security`` package.
-
-- Add zcml permission definitions for most common and useful permissions,
-  like "zope.View" and "zope.ManageContent", as well as for the special
-  "zope.Public" permission. They are placed in a separate "permissions.zcml"
-  file, so it can be easily excluded/redefined. They are selected part of
-  permissions moved from ``zope.app.security`` and used by many zope.*
-  packages.
-
-- Add `addCheckerPublic` helper function in ``zope.security.testing`` module
-  that registers the "zope.Public" permission as an IPermission utility.
-
-- Add security declarations for the ``zope.security.permisson.Permission``
-  class.
-
-- Improve test coverage.
-
-
-3.6.1 (2009-03-10)
-------------------
-
-- Use ``from`` imports instead of ``zope.deferred`` to avoid circular
-  import problems, thus drop dependency on ``zope.deferredimport``.
-
-- Raise NoInteraction when zope.security.checkPermission is called
-  without interaction being active (LP #301565).
-
-- Don't define security checkers for deprecated set types from the
-  "sets" module on Python 2.6. It's discouraged to use them and
-  `set` and `frozenset` built-in types should be used instead.
-
-- Change package's mailng list address to zope-dev at zope.org as
-  zope3-dev at zope.org is now retired.
-
-- Remove old zpkg-related files.
-
-
-3.6.0 (2009-01-31)
-------------------
-
-- Install decorated security checker support on LocationProxy from the
-  outside.
-
-- Added support to bootstrap on Jython.
-
-- Moved the `protectclass` module from `zope.app.security` to this
-  package to reduce the number of dependencies on `zope.app.security`.
-
-- Moved the <module> directive implementation from `zope.app.security`
-  to this package.
-
-- Moved the <class> directive implementation from `zope.app.component`
-  to this package.
-
-
-3.5.2 (2008-07-27)
-------------------
-
-- Made C code compatible with Python 2.5 on 64bit architectures.
-
-
-3.5.1 (2008-06-04)
-------------------
-
-- Add `frozenset`, `set`, `reversed`, and `sorted` to the list of safe
-  builtins.
-
-
-3.5.0 (2008-03-05)
-------------------
-
-- Changed title for ``zope.security.management.system_user`` to be more
-  presentable.
-
-
-3.4.3 - (2009/11/26)
---------------------
-
-- Backported a fix made by Gary Poster to the 3.4 branch:
-  Fix for LP bug 181833 (from Gustavo Niemeyer). Before "visiting" a
-  sub-object, a check should be made to ensure the object is still valid.
-  Because garbage collection may involve loops, if you garbage collect an
-  object, it is possible that the actions done on this object may modify the
-  state of other objects. This may cause another round of garbage collection,
-  eventually generating a segfault (see LP bug). The Py_VISIT macro does the
-  necessary checks, so it is used instead of the previous code.
-
-
-3.4.2 - (2009/03/23)
---------------------
-
-- Added dependency 'zope.thread' to setup.py, without the tests were
-  failing.
-
-- Backported a fix made by Albertas Agejevas to the 3.4 branch. He
-  fixed a bug in DecoratedSecurityCheckerDescriptor which made
-  security-wrapping location proxied exception instances throw
-  exceptions on Python 2.5.  See
-  https://bugs.launchpad.net/zope3/+bug/251848
-
-
-3.4.1 - 2008/07/27
-------------------
-
-- Made C code compatible with Python 2.5 on 64bit architectures.
-
-
-3.4.0 (2007-10-02)
-------------------
-
-- Updated meta-data.
-
-
-3.4.0b5 (2007-08-15)
---------------------
-
-- Bug: Fixed a circular import in the C implementation.
-
-
-3.4.0b4 (2007-08-14)
---------------------
-
-- Bug: ``zope.security.management.system_user`` had an ugly/brittle id.
-
-
-3.4.0b3 (2007-08-14)
---------------------
-
-- ``zope.security`` now works on Python 2.5
-
-- Bug: ``zope.security.management.system_user`` wasn't a valid principal
-  (didn't provide IPrincipal).
-
-- Bug: Fixed inclusion of doctest to use the doctest module from
-  ``zope.testing``. Now tests can be run multiple times without
-  breaking. (#98250)
-
-
-3.4.0b2 (2007-06-15)
---------------------
-
-- Bug: Removed stack extraction in newInteraction. When using eggs this is an
-  extremly expensive function. The publisher is now more than 10 times faster
-  when using eggs and about twice as fast with a zope trunk checkout.
-
-
-3.4.0b1
--------
-
-- Temporarily fixed the hidden (and accidental) dependency on zope.testing to
-  become optional.
-
-Note: The releases between 3.2.0 and 3.4.0b1 where not tracked as an
-individual package and have been documented in the Zope 3 changelog.
-
-
-3.2.0 (2006-01-05)
-------------------
-
-- Corresponds to the verison of the zope.security package shipped as part of
-  the Zope 3.2.0 release.
-
-- Removed deprecated helper functions, 'proxy.trustedRemoveSecurityProxy' and
-  'proxy.getProxiedObject'.
-
-- Made handling of 'management.{end,restore}Interaction' more careful w.r.t.
-  edge cases.
-
-- Made behavior of 'canWrite' consistent with 'canAccess':  if 'canAccess'
-  does not raise 'ForbiddenAttribute', then neither will 'canWrite'.  See:
-  http://www.zope.org/Collectors/Zope3-dev/506
-
-- Code style / documentation / test fixes.
-
-
-3.1.0 (2005-10-03)
-------------------
-
-- Added support for use of the new Python 2.4 datatypes, 'set' and
-  'frozenset', within checked code.
-
-- C security proxy acquired a dependency on the 'proxy.h' header from the
-  'zope.proxy' package.
-
-- XXX: the spelling of the '#include' is bizarre!  It seems to be related to
-  'zpkg'-based builds, and should likely be revisited.  For the moment, I have
-  linked in the 'zope.proxy' package into our own 'include' directory.  See
-  the subversion checkin: http://svn.zope.org/Zope3/?rev=37882&view=rev
-
-- Updated checker to avoid re-proxying objects which have and explicit
-  '__Security_checker__' assigned.
-
-- Corresponds to the verison of the zope.security package shipped as part of
-  the Zope 3.1.0 release.
-
-- Clarified contract of 'IChecker' to indicate that its 'check*' methods may
-  raise only 'Forbidden' or 'Unauthorized' exceptions.
-
-- Added interfaces, ('IPrincipal', 'IGroupAwarePrincipal', 'IGroup', and
-  'IPermission') specifying contracts of components in the security framework.
-
-- Code style / documentation / test fixes.
-
-
-3.0.0 (2004-11-07)
-------------------
-
-- Corresponds to the version of the zope.security package shipped as part of
-  the Zope X3.0.0 release.

Deleted: zope.security/trunk/COPYRIGHT.txt
===================================================================
--- zope.security/trunk/COPYRIGHT.txt	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/COPYRIGHT.txt	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1 +0,0 @@
-Zope Foundation and Contributors
\ No newline at end of file

Deleted: zope.security/trunk/LICENSE.txt
===================================================================
--- zope.security/trunk/LICENSE.txt	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/LICENSE.txt	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,44 +0,0 @@
-Zope Public License (ZPL) Version 2.1
-
-A copyright notice accompanies this license document that identifies the
-copyright holders.
-
-This license has been certified as open source. It has also been designated as
-GPL compatible by the Free Software Foundation (FSF).
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions in source code must retain the accompanying copyright
-notice, this list of conditions, and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the accompanying copyright
-notice, this list of conditions, and the following disclaimer in the
-documentation and/or other materials provided with the distribution.
-
-3. Names of the copyright holders must not be used to endorse or promote
-products derived from this software without prior written permission from the
-copyright holders.
-
-4. The right to distribute this software or to use it for any purpose does not
-give you the right to use Servicemarks (sm) or Trademarks (tm) of the
-copyright
-holders. Use of them is covered by separate agreement with the copyright
-holders.
-
-5. If any files are modified, you must cause the modified files to carry
-prominent notices stating that you changed the files and the date of any
-change.
-
-Disclaimer
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
-OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Deleted: zope.security/trunk/README.txt
===================================================================
--- zope.security/trunk/README.txt	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/README.txt	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,2 +0,0 @@
-The Security framework provides a generic mechanism to implement security
-policies on Python objects.

Deleted: zope.security/trunk/bootstrap.py
===================================================================
--- zope.security/trunk/bootstrap.py	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/bootstrap.py	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,119 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation 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.
-"""
-
-import os, shutil, sys, tempfile, urllib2
-from optparse import OptionParser
-
-tmpeggs = tempfile.mkdtemp()
-
-is_jython = sys.platform.startswith('java')
-
-# parsing arguments
-parser = OptionParser()
-parser.add_option("-v", "--version", dest="version",
-                          help="use a specific zc.buildout version")
-parser.add_option("-d", "--distribute",
-                   action="store_true", dest="distribute", default=False,
-                   help="Use Disribute rather than Setuptools.")
-
-parser.add_option("-c", None, action="store", dest="config_file",
-                   help=("Specify the path to the buildout configuration "
-                         "file to be used."))
-
-options, args = parser.parse_args()
-
-# if -c was provided, we push it back into args for buildout' main function
-if options.config_file is not None:
-    args += ['-c', options.config_file]
-
-if options.version is not None:
-    VERSION = '==%s' % options.version
-else:
-    VERSION = ''
-
-USE_DISTRIBUTE = options.distribute
-args = args + ['bootstrap']
-
-to_reload = False
-try:
-    import pkg_resources
-    if not hasattr(pkg_resources, '_distribute'):
-        to_reload = True
-        raise ImportError
-except ImportError:
-    ez = {}
-    if USE_DISTRIBUTE:
-        exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
-                         ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
-    else:
-        exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
-                             ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
-
-    if to_reload:
-        reload(pkg_resources)
-    else:
-        import pkg_resources
-
-if sys.platform == 'win32':
-    def quote(c):
-        if ' ' in c:
-            return '"%s"' % c # work around spawn lamosity on windows
-        else:
-            return c
-else:
-    def quote (c):
-        return c
-
-cmd = 'from setuptools.command.easy_install import main; main()'
-ws  = pkg_resources.working_set
-
-if USE_DISTRIBUTE:
-    requirement = 'distribute'
-else:
-    requirement = 'setuptools'
-
-if is_jython:
-    import subprocess
-
-    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
-           quote(tmpeggs), 'zc.buildout' + VERSION],
-           env=dict(os.environ,
-               PYTHONPATH=
-               ws.find(pkg_resources.Requirement.parse(requirement)).location
-               ),
-           ).wait() == 0
-
-else:
-    assert os.spawnle(
-        os.P_WAIT, sys.executable, quote (sys.executable),
-        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
-        dict(os.environ,
-            PYTHONPATH=
-            ws.find(pkg_resources.Requirement.parse(requirement)).location
-            ),
-        ) == 0
-
-ws.add_entry(tmpeggs)
-ws.require('zc.buildout' + VERSION)
-import zc.buildout.buildout
-zc.buildout.buildout.main(args)
-shutil.rmtree(tmpeggs)

Deleted: zope.security/trunk/buildout.cfg
===================================================================
--- zope.security/trunk/buildout.cfg	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/buildout.cfg	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,34 +0,0 @@
-[buildout]
-develop = .
-parts =
-    test
-    python
-    coverage-test
-    coverage-report
-
-[test]
-recipe = zc.recipe.testrunner
-eggs =
-    zope.proxy >= 4.1.0
-    zope.security [test,untrustedpython,zcml,pytz]
-
-[python]
-recipe = zc.recipe.egg
-eggs =
-    zope.proxy >= 4.1.0
-    zope.security [untrustedpython]
-interpreter = python
-
-[coverage-test]
-recipe = zc.recipe.testrunner
-eggs =
-    zope.proxy >= 4.1.0
-    zope.security [test]
-defaults = ['--coverage', '../../coverage']
-
-[coverage-report]
-recipe = zc.recipe.egg
-eggs =
-    z3c.coverage
-scripts = coverage=coverage-report
-arguments = ('coverage', 'coverage/report')

Deleted: zope.security/trunk/setup.cfg
===================================================================
--- zope.security/trunk/setup.cfg	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/setup.cfg	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,10 +0,0 @@
-[nosetests]
-nocapture=1
-cover-package=zope.security
-cover-erase=1
-with-doctest=0
-where=src
-
-[aliases]
-dev = develop easy_install zope.security[testing]
-docs = easy_install zope.security[docs]

Deleted: zope.security/trunk/setup.py
===================================================================
--- zope.security/trunk/setup.py	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/setup.py	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,139 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation 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.
-#
-##############################################################################
-# This package is developed by the Zope Toolkit project, documented here:
-# http://docs.zope.org/zopetoolkit
-# When developing and releasing this package, please follow the documented
-# Zope Toolkit policies as described by this documentation.
-##############################################################################
-"""Setup for zope.security package
-"""
-import os
-import platform
-import sys
-from setuptools import Extension
-from setuptools import find_packages
-from setuptools import setup
-
-TESTS_REQUIRE = [
-    'RestrictedPython',
-    'zope.testing',
-    'zope.configuration',
-    'zope.component',
-    'zope.location',
-]
-
-here = os.path.abspath(os.path.dirname(__file__))
-def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-# Include directories for C extensions
-# Sniff the location of the headers in 'persistent' or fall back
-# to local headers in the include sub-directory
-
-class ModuleHeaderDir(object):
-
-    def __init__(self, require_spec, where='../..'):
-        # By default, assume top-level pkg has the same name as the dist.
-        # Also assume that headers are located in the package dir, and
-        # are meant to be included as follows:
-        #    #include "module/header_name.h"
-        self._require_spec = require_spec
-        self._where = where
-
-    def __str__(self):
-        from pkg_resources import require
-        from pkg_resources import resource_filename
-        from pkg_resources import DistributionNotFound
-        try:
-            require(self._require_spec)
-            path = resource_filename(self._require_spec, self._where)
-        except DistributionNotFound:
-            path = os.path.join(here, 'include')
-        return os.path.abspath(path)
-
-include = [ModuleHeaderDir('zope.proxy')]
-
-# Jython cannot build the C optimizations, while on PyPy they are
-# anti-optimizations (the C extension compatibility layer is known-slow,
-# and defeats JIT opportunities).
-py_impl = getattr(platform, 'python_implementation', lambda: None)
-pure_python = os.environ.get('PURE_PYTHON', False)
-is_pypy = py_impl() == 'PyPy'
-is_jython = 'java' in sys.platform
-
-if pure_python or is_pypy or is_jython:
-    setup_requires = []
-    ext_modules = []
-else:
-    setup_requires = ['zope.proxy >= 4.1.0']
-    ext_modules = [
-        Extension("zope.security._proxy",
-                  [os.path.join('src', 'zope', 'security', "_proxy.c")],
-                  include_dirs=include,
-                 ),
-        Extension("zope.security._zope_security_checker",
-                  [os.path.join('src', 'zope', 'security',
-                                        "_zope_security_checker.c")]
-                 ),
-    ]
-
-setup(name='zope.security',
-      version='4.0.0dev',
-      author='Zope Foundation and Contributors',
-      author_email='zope-dev at zope.org',
-      description='Zope Security Framework',
-      long_description=(
-          read('README.txt')
-          + '\n\n' +
-          read('CHANGES.txt')
-          ),
-      keywords = "zope security policy principal permission",
-      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://pypi.python.org/pypi/zope.security',
-      license='ZPL 2.1',
-      packages=find_packages('src'),
-      package_dir = {'': 'src'},
-      namespace_packages=['zope'],
-      setup_requires=setup_requires,
-      ext_modules=ext_modules,
-      install_requires=['setuptools',
-                        'zope.component',
-                        'zope.i18nmessageid',
-                        'zope.interface',
-                        'zope.location',
-                        'zope.proxy >= 4.1.0',
-                        'zope.schema',
-                        ],
-      test_suite = 'zope.security',
-      tests_require=TESTS_REQUIRE,
-      extras_require = dict(
-          untrustedpython=["RestrictedPython"],
-          pytz=["pytz"],
-          zcml=['zope.configuration'],
-          test=TESTS_REQUIRE,
-          testing=TESTS_REQUIRE + ['nose', 'coverage'],
-          docs=['Sphinx', 'repoze.sphinx.autointerface'],
-          ),
-      include_package_data = True,
-      zip_safe = False,
-      )

Deleted: zope.security/trunk/tox.ini
===================================================================
--- zope.security/trunk/tox.ini	2013-02-11 20:11:43 UTC (rev 129306)
+++ zope.security/trunk/tox.ini	2013-02-11 20:38:48 UTC (rev 129307)
@@ -1,58 +0,0 @@
-[tox]
-envlist = 
-# Jython support pending 2.7 support, due 2012-07-15 or so.  See:
-# http://fwierzbicki.blogspot.com/2012/03/adconion-to-fund-jython-27.html
-#   py26,py27,pypy,jython,py32,py33,coverage,docs
-    py26,py27,coverage,docs
-
-[testenv]
-deps =
-    RestrictedPython
-    zope.interface
-    zope.testing
-    zope.configuration
-    zope.component
-    zope.location
-    zope.proxy
-commands = 
-    python setup.py test -q
-
-[testenv:coverage]
-basepython =
-    python2.6
-commands = 
-#   The installed version messes up nose's test discovery / coverage reporting
-#   So, we uninstall that from the environment, and then install the editable
-#   version, before running nosetests.
-    pip uninstall -y zope.security
-    python -c "import shutil; shutil.copyfile('src/zope/__init__.py', '{envdir}/lib/python2.6/site-packages/zope/__init__.py')"
-    pip install -e .
-    nosetests --with-xunit --with-xcoverage
-deps =
-    RestrictedPython
-    zope.interface
-    zope.testing
-    zope.configuration
-    zope.component
-    zope.location
-    zope.proxy
-    nose
-    coverage
-    nosexcover
-
-[testenv:docs]
-basepython =
-    python2.6
-commands = 
-    sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
-    sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
-deps =
-    RestrictedPython
-    zope.interface
-    zope.testing
-    zope.configuration
-    zope.component
-    zope.location
-    zope.proxy
-    Sphinx
-    repoze.sphinx.autointerface



More information about the checkins mailing list