[Checkins] SVN: z3c.authentication/trunk/ buildoutify/eggify

Fred L. Drake, Jr. fdrake at gmail.com
Thu Mar 22 14:46:19 EDT 2007


Log message for revision 73476:
  buildoutify/eggify

Changed:
  _U  z3c.authentication/trunk/
  A   z3c.authentication/trunk/buildout.cfg
  A   z3c.authentication/trunk/setup.cfg
  A   z3c.authentication/trunk/setup.py
  U   z3c.authentication/trunk/src/z3c/__init__.py
  D   z3c.authentication/trunk/src/z3c/authentication/cookie/ftests.py
  U   z3c.authentication/trunk/src/z3c/authentication/cookie/testing.py
  A   z3c.authentication/trunk/src/z3c/authentication/cookie/testlayer.zcml
  U   z3c.authentication/trunk/src/z3c/authentication/cookie/tests.py

-=-

Property changes on: z3c.authentication/trunk
___________________________________________________________________
Name: svn:ignore
   + .installed.cfg
bin
build
develop-eggs
dist
eggs
parts


Added: z3c.authentication/trunk/buildout.cfg
===================================================================
--- z3c.authentication/trunk/buildout.cfg	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/buildout.cfg	2007-03-22 18:46:19 UTC (rev 73476)
@@ -0,0 +1,8 @@
+[buildout]
+develop = .
+parts = test
+find-links = http://download.zope.org/distribution/
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.authentication [test]


Property changes on: z3c.authentication/trunk/buildout.cfg
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: z3c.authentication/trunk/setup.cfg
===================================================================
--- z3c.authentication/trunk/setup.cfg	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/setup.cfg	2007-03-22 18:46:19 UTC (rev 73476)
@@ -0,0 +1,3 @@
+[egg_info]
+tag_build = .dev
+tag_svn_revision = 1


Property changes on: z3c.authentication/trunk/setup.cfg
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: z3c.authentication/trunk/setup.py
===================================================================
--- z3c.authentication/trunk/setup.py	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/setup.py	2007-03-22 18:46:19 UTC (rev 73476)
@@ -0,0 +1,34 @@
+#!python
+from setuptools import setup, find_packages
+
+setup(name='z3c.authentication',
+      version='0.1.0',
+      author = "Zope Community",
+      author_email = "zope3-dev at zope.org",
+      license = "ZPL 2.1",
+      keywords = "authentication zope zope3",
+      url='http://svn.zope.org/z3c.authentication',
+
+      zip_safe=False,
+      packages=find_packages('src'),
+      include_package_data=True,
+      package_dir = {'':'src'},
+      namespace_packages=['z3c',],
+      install_requires=[
+          'setuptools',
+          'zope.component',
+          'zope.configuration',
+          'zope.contentprovider',
+          'zope.i18n',
+          'zope.interface',
+          'zope.publisher',
+          'zope.schema',
+          'zope.app', # for zope.app.pagetemplate
+          'zope.app.container',
+          'z3c.i18n',
+          ],
+      extras_require={
+          'test': ['zope.testing', 'zope.app.testing', 'z3c.configurator'],
+          },
+     )
+


Property changes on: z3c.authentication/trunk/setup.py
___________________________________________________________________
Name: svn:mime-type
   + text/x-python
Name: svn:eol-style
   + native

Modified: z3c.authentication/trunk/src/z3c/__init__.py
===================================================================
--- z3c.authentication/trunk/src/z3c/__init__.py	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/src/z3c/__init__.py	2007-03-22 18:46:19 UTC (rev 73476)
@@ -14,3 +14,9 @@
 """
 $Id$
 """
+try:
+    # Declare this a namespace package if pkg_resources is available.
+    import pkg_resources
+    pkg_resources.declare_namespace('z3c')
+except ImportError:
+    pass

Deleted: z3c.authentication/trunk/src/z3c/authentication/cookie/ftests.py
===================================================================
--- z3c.authentication/trunk/src/z3c/authentication/cookie/ftests.py	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/src/z3c/authentication/cookie/ftests.py	2007-03-22 18:46:19 UTC (rev 73476)
@@ -1,23 +0,0 @@
-###############################################################################
-#
-# Copyright 2006 by refline (Schweiz) AG, CH-5630 Muri
-#
-###############################################################################
-"""
-$Id$
-"""
-
-import unittest
-
-from z3c.authentication.cookie import testing
-
-
-def test_suite():
-    suite = unittest.TestSuite((
-        testing.FunctionalDocFileSuite('BROWSER.txt'),
-        ))
-
-    return suite
-
-if __name__ == '__main__':
-    unittest.main(defaultTest='test_suite')

Modified: z3c.authentication/trunk/src/z3c/authentication/cookie/testing.py
===================================================================
--- z3c.authentication/trunk/src/z3c/authentication/cookie/testing.py	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/src/z3c/authentication/cookie/testing.py	2007-03-22 18:46:19 UTC (rev 73476)
@@ -175,6 +175,9 @@
     placelesssetup.tearDown()
 
 
+functional.defineLayer("Z3cAuthenticationCookieLayer", "testlayer.zcml")
+
+
 def FunctionalDocFileSuite(path, **kw):
     """Including relative path setup."""
     globs = {'getRootFolder': getRootFolder}
@@ -191,4 +194,5 @@
             optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE,
             globs=globs,
             **kw)
+    suite.layer = Z3cAuthenticationCookieLayer
     return suite

Added: z3c.authentication/trunk/src/z3c/authentication/cookie/testlayer.zcml
===================================================================
--- z3c.authentication/trunk/src/z3c/authentication/cookie/testlayer.zcml	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/src/z3c/authentication/cookie/testlayer.zcml	2007-03-22 18:46:19 UTC (rev 73476)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    xmlns:zcml="http://namespaces.zope.org/zcml"
+    i18n_domain="z3c.authentication"
+    >
+
+  <include
+      zcml:condition="installed zope.app.zcmlfiles"
+      package="zope.app.zcmlfiles"
+      />
+  <include
+      zcml:condition="not-installed zope.app.zcmlfiles"
+      package="zope.app"
+      />
+
+  <include package="zope.formlib" />
+  <include package="zope.app.authentication" />
+
+  <include package="zope.app.securitypolicy" file="meta.zcml" />
+  <include package="zope.app.securitypolicy" />
+
+  <securityPolicy
+      component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy"
+      />
+
+  <role id="zope.Manager" title="Site Manager" />
+  <grantAll role="zope.Manager" />
+
+  <principal id="zope.mgr" title="Manager" login="mgr" password="mgrpw" />
+  <grant role="zope.Manager" principal="zope.mgr" />
+
+  <include package="z3c.authentication.cookie" file="ftesting.zcml"/>
+
+</configure>


Property changes on: z3c.authentication/trunk/src/z3c/authentication/cookie/testlayer.zcml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Modified: z3c.authentication/trunk/src/z3c/authentication/cookie/tests.py
===================================================================
--- z3c.authentication/trunk/src/z3c/authentication/cookie/tests.py	2007-03-22 18:17:05 UTC (rev 73475)
+++ z3c.authentication/trunk/src/z3c/authentication/cookie/tests.py	2007-03-22 18:46:19 UTC (rev 73476)
@@ -26,6 +26,7 @@
 
 def test_suite():
     return unittest.TestSuite((
+        testing.FunctionalDocFileSuite('BROWSER.txt'),
         doctest.DocTestSuite('z3c.authentication.cookie.session',
             setUp=testing.siteSetUp, tearDown=testing.siteTearDown),
         doctest.DocTestSuite('z3c.authentication.cookie.plugin',



More information about the Checkins mailing list