[Checkins] SVN: Sandbox/gotcha/five.taskqueue/ import skeleton

Godefroid Chapelle gotcha at bubblenet.be
Tue Mar 23 08:51:06 EDT 2010


Log message for revision 110117:
  import skeleton

Changed:
  _U  Sandbox/gotcha/five.taskqueue/
  A   Sandbox/gotcha/five.taskqueue/README.txt
  A   Sandbox/gotcha/five.taskqueue/bootstrap.py
  A   Sandbox/gotcha/five.taskqueue/buildout.cfg
  A   Sandbox/gotcha/five.taskqueue/docs/
  A   Sandbox/gotcha/five.taskqueue/docs/HISTORY.txt
  A   Sandbox/gotcha/five.taskqueue/setup.py
  A   Sandbox/gotcha/five.taskqueue/src/
  A   Sandbox/gotcha/five.taskqueue/src/five/
  A   Sandbox/gotcha/five.taskqueue/src/five/__init__.py
  A   Sandbox/gotcha/five.taskqueue/src/five/taskqueue/
  A   Sandbox/gotcha/five.taskqueue/src/five/taskqueue/__init__.py
  A   Sandbox/gotcha/five.taskqueue/src/five/taskqueue/tests/
  A   Sandbox/gotcha/five.taskqueue/src/five/taskqueue/tests/__init__.py
  A   Sandbox/gotcha/five.taskqueue/src/five/taskqueue/tests/test_service.py

-=-

Property changes on: Sandbox/gotcha/five.taskqueue
___________________________________________________________________
Added: svn:ignore
   + develop-eggs
bin
fake-eggs
parts
.installed.cfg
.mr.developer.cfg


Added: Sandbox/gotcha/five.taskqueue/README.txt
===================================================================
--- Sandbox/gotcha/five.taskqueue/README.txt	                        (rev 0)
+++ Sandbox/gotcha/five.taskqueue/README.txt	2010-03-23 12:51:06 UTC (rev 110117)
@@ -0,0 +1,4 @@
+Introduction
+============
+
+

Added: Sandbox/gotcha/five.taskqueue/bootstrap.py
===================================================================
--- Sandbox/gotcha/five.taskqueue/bootstrap.py	                        (rev 0)
+++ Sandbox/gotcha/five.taskqueue/bootstrap.py	2010-03-23 12:51:06 UTC (rev 110117)
@@ -0,0 +1,121 @@
+##############################################################################
+#
+# 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 105417 2009-11-01 15:15:20Z tarek $
+"""
+
+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)

Added: Sandbox/gotcha/five.taskqueue/buildout.cfg
===================================================================
--- Sandbox/gotcha/five.taskqueue/buildout.cfg	                        (rev 0)
+++ Sandbox/gotcha/five.taskqueue/buildout.cfg	2010-03-23 12:51:06 UTC (rev 110117)
@@ -0,0 +1,60 @@
+[buildout]
+extensions = mr.developer
+develop = .
+parts = py zope2 test test-coverage z3c.coverage omelette
+extends = http://dist.plone.org/release/3.3.5/versions.cfg 
+
+[sources]
+z3c.taskqueue = svn svn+ssh://gotcha@svn.zope.org/repos/main/Sandbox/gotcha/z3c.taskqueue
+
+[test]
+recipe = zc.recipe.testrunner
+defaults = ['--tests-pattern', '^f?tests$']
+eggs = five.taskqueue
+
+[zope2]
+recipe = plone.recipe.zope2install
+url = ${versions:zope2-url}
+fake-zope-eggs = true
+skip-fake-eggs = docutils
+                 zope.testing
+                 zope.schema
+                 zope.exceptions
+                 zope.configuration
+                 zope.component
+                 zope.interface
+                 zope.location
+                 zope.proxy
+
+[py]
+recipe = zc.recipe.egg
+interpreter = python
+eggs = five.taskqueue
+
+[test-coverage]
+recipe = zc.recipe.testrunner
+eggs = ${test:eggs}
+defaults = ['--coverage', '${buildout:directory}/coverage', '--auto-progress']
+extra-paths =
+
+[z3c.coverage]
+recipe = zc.recipe.egg
+eggs = z3c.coverage
+scripts = coverage
+arguments = ('coverage', 'coverage/report')
+
+[omelette]
+recipe = collective.recipe.omelette
+eggs = ${test:eggs}
+products =
+packages = ${zope2:location}/lib/python ./
+
+[versions]
+zope.component = 3.5.1
+zope.configuration = 3.5.0
+zope.container = 3.7.1
+zope.location = 3.5
+zope.site = 3.6.0
+zope.schema = 3.6.1
+zope.interface = 3.5.2
+mr.developer = 1.7 

Added: Sandbox/gotcha/five.taskqueue/docs/HISTORY.txt
===================================================================
--- Sandbox/gotcha/five.taskqueue/docs/HISTORY.txt	                        (rev 0)
+++ Sandbox/gotcha/five.taskqueue/docs/HISTORY.txt	2010-03-23 12:51:06 UTC (rev 110117)
@@ -0,0 +1,7 @@
+Changelog
+=========
+
+0.1dev (unreleased)
+-------------------
+
+- Initial release

Added: Sandbox/gotcha/five.taskqueue/setup.py
===================================================================
--- Sandbox/gotcha/five.taskqueue/setup.py	                        (rev 0)
+++ Sandbox/gotcha/five.taskqueue/setup.py	2010-03-23 12:51:06 UTC (rev 110117)
@@ -0,0 +1,32 @@
+from setuptools import setup, find_packages
+import os
+
+version = '0.1'
+
+setup(name='five.taskqueue',
+      version=version,
+      description="Zope2 integration of z3c.taskqueue",
+      long_description=open("README.txt").read() + "\n" +
+                       open(os.path.join("docs", "HISTORY.txt")).read(),
+      classifiers=[
+        "Programming Language :: Python",
+        ],
+      keywords='',
+      author='',
+      author_email='',
+      url='',
+      license='ZPL 2.1',
+      packages=find_packages('src'),
+      package_dir={'': 'src'},
+      namespace_packages=['five'],
+      include_package_data=True,
+      zip_safe=False,
+      install_requires=[
+          'setuptools',
+          # -*- Extra requirements: -*-
+          'z3c.taskqueue',
+      ],
+      entry_points="""
+      # -*- Entry points: -*-
+      """,
+      )


Property changes on: Sandbox/gotcha/five.taskqueue/src
___________________________________________________________________
Added: svn:ignore
   + five.taskqueue.egg-info


Added: Sandbox/gotcha/five.taskqueue/src/five/__init__.py
===================================================================
--- Sandbox/gotcha/five.taskqueue/src/five/__init__.py	                        (rev 0)
+++ Sandbox/gotcha/five.taskqueue/src/five/__init__.py	2010-03-23 12:51:06 UTC (rev 110117)
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+    from pkgutil import extend_path
+    __path__ = extend_path(__path__, __name__)

Added: Sandbox/gotcha/five.taskqueue/src/five/taskqueue/tests/test_service.py
===================================================================
--- Sandbox/gotcha/five.taskqueue/src/five/taskqueue/tests/test_service.py	                        (rev 0)
+++ Sandbox/gotcha/five.taskqueue/src/five/taskqueue/tests/test_service.py	2010-03-23 12:51:06 UTC (rev 110117)
@@ -0,0 +1,11 @@
+import unittest
+
+
+class TestDummy(unittest.TestCase):
+
+    def test_base(self):
+        self.failIf(1 != 1)
+
+
+def test_suite():
+    return unittest.TestLoader().loadTestsFromTestCase(TestDummy)



More information about the checkins mailing list