[Checkins] SVN: z3c.schema/trunk/ buildout, eg
Bernd Dorn
bernd.dorn at lovelysystems.com
Thu Mar 29 11:28:26 EDT 2007
Log message for revision 73916:
buildout, eg
Changed:
_U z3c.schema/trunk/
A z3c.schema/trunk/bootstrap.py
A z3c.schema/trunk/buildout.cfg
A z3c.schema/trunk/setup.cfg
A z3c.schema/trunk/setup.py
A z3c.schema/trunk/src/z3c/__init__.py
U z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py
U z3c.schema/trunk/src/z3c/schema/email/interfaces.py
U z3c.schema/trunk/src/z3c/schema/hostname/field.py
U z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py
A z3c.schema/trunk/src/z3c/schema/i18n.py
U z3c.schema/trunk/src/z3c/schema/ip/interfaces.py
U z3c.schema/trunk/src/z3c/schema/optchoice/interfaces.py
U z3c.schema/trunk/src/z3c/schema/regex/field.py
U z3c.schema/trunk/src/z3c/schema/regex/interfaces.py
-=-
Property changes on: z3c.schema/trunk
___________________________________________________________________
Name: svn:ignore
+ bin
build
dist
lib
develop-eggs
eggs
parts
.installed.cfg
Added: z3c.schema/trunk/bootstrap.py
===================================================================
--- z3c.schema/trunk/bootstrap.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/bootstrap.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -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.schema/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: z3c.schema/trunk/buildout.cfg
===================================================================
--- z3c.schema/trunk/buildout.cfg 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/buildout.cfg 2007-03-29 15:28:25 UTC (rev 73916)
@@ -0,0 +1,10 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.schema [test]
+
+
+
Property changes on: z3c.schema/trunk/buildout.cfg
___________________________________________________________________
Name: svn:eol-style
+ native
Added: z3c.schema/trunk/setup.cfg
===================================================================
--- z3c.schema/trunk/setup.cfg 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/setup.cfg 2007-03-29 15:28:25 UTC (rev 73916)
@@ -0,0 +1,2 @@
+[egg_info]
+tag_svn_revision = 1
Property changes on: z3c.schema/trunk/setup.cfg
___________________________________________________________________
Name: svn:eol-style
+ native
Added: z3c.schema/trunk/setup.py
===================================================================
--- z3c.schema/trunk/setup.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/setup.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -0,0 +1,25 @@
+#!python
+from setuptools import setup, find_packages
+
+setup(name='z3c.schema',
+ version='0.1',
+ author = "Zope Community",
+ author_email = "zope3-dev at zope.org",
+ description = "Additional schema fields for Zope 3",
+ license = "ZPL 2.1",
+ keywords = "zope zope3 schema fields",
+ url='http://svn.zope.org/z3c.schema',
+ zip_safe=False,
+ packages=find_packages('src'),
+ include_package_data=True,
+ package_dir = {'':'src'},
+ namespace_packages=['z3c',],
+ extras_require = dict(test=['zope.testing',
+ ]),
+ install_requires = ['setuptools',
+ 'zope.i18nmessageid',
+ 'zope.interface',
+ 'zope.schema',
+ ],
+ )
+
Property changes on: z3c.schema/trunk/setup.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: z3c.schema/trunk/src/z3c/__init__.py
===================================================================
--- z3c.schema/trunk/src/z3c/__init__.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/__init__.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -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__)
+
Property changes on: z3c.schema/trunk/src/z3c/__init__.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/baseurl/interfaces.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -19,7 +19,7 @@
import zope.schema
import zope.schema.interfaces
-from z3c.i18n import MessageFactory as _
+from z3c.schema.i18n import MessageFactory as _
class IBaseURL(zope.schema.interfaces.IURI,
Modified: z3c.schema/trunk/src/z3c/schema/email/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/email/interfaces.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/email/interfaces.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -18,7 +18,7 @@
import zope.schema
import zope.schema.interfaces
-from z3c.i18n import MessageFactory as _
+from z3c.schema.i18n import MessageFactory as _
class IRFC822MailAddress(zope.schema.interfaces.ITextLine):
Modified: z3c.schema/trunk/src/z3c/schema/hostname/field.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/hostname/field.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/hostname/field.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -13,7 +13,6 @@
import zope.interface
import zope.schema
-import zope.schema.interfaces
from z3c.schema.hostname import interfaces
Modified: z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/hostname/interfaces.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -19,7 +19,7 @@
import zope.schema
import zope.schema.interfaces
-from z3c.i18n import MessageFactory as _
+from z3c.schema.i18n import MessageFactory as _
class IHostName(zope.schema.interfaces.IURI,
Added: z3c.schema/trunk/src/z3c/schema/i18n.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/i18n.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/i18n.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -0,0 +1,22 @@
+##############################################################################
+#
+# Copyright (c) 2005 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.
+#
+##############################################################################
+"""I18n utils for zope3
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+import zope.i18nmessageid
+
+MessageFactory = zope.i18nmessageid.MessageFactory('z3c')
Property changes on: z3c.schema/trunk/src/z3c/schema/i18n.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: z3c.schema/trunk/src/z3c/schema/ip/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/ip/interfaces.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/ip/interfaces.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -19,7 +19,7 @@
import zope.schema
import zope.schema.interfaces
-from z3c.i18n import MessageFactory as _
+from z3c.schema.i18n import MessageFactory as _
class IIPAddress(zope.schema.interfaces.IBytesLine):
"""A valid IP address field."""
Modified: z3c.schema/trunk/src/z3c/schema/optchoice/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/optchoice/interfaces.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/optchoice/interfaces.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -19,7 +19,7 @@
import zope.schema
import zope.schema.interfaces
-from z3c.i18n import MessageFactory as _
+from z3c.schema.i18n import MessageFactory as _
class IOptionalChoice(zope.schema.interfaces.IChoice,
Modified: z3c.schema/trunk/src/z3c/schema/regex/field.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/regex/field.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/regex/field.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -12,7 +12,6 @@
import re
import zope.interface
import zope.schema
-import zope.schema.interfaces
from z3c.schema.regex import interfaces
class Regex(zope.schema.ASCIILine):
Modified: z3c.schema/trunk/src/z3c/schema/regex/interfaces.py
===================================================================
--- z3c.schema/trunk/src/z3c/schema/regex/interfaces.py 2007-03-29 14:59:54 UTC (rev 73915)
+++ z3c.schema/trunk/src/z3c/schema/regex/interfaces.py 2007-03-29 15:28:25 UTC (rev 73916)
@@ -19,7 +19,7 @@
import zope.schema
import zope.schema.interfaces
-from z3c.i18n import MessageFactory as _
+from z3c.schema.i18n import MessageFactory as _
class IRegex(zope.schema.interfaces.IASCIILine):
"""Regular Expression field"""
More information about the Checkins
mailing list