[Checkins] SVN: z3c.extfile/trunk/ added buildout support
Jodok Batlogg
jodok.batlogg at lovelysystems.com
Thu Mar 22 12:02:09 EDT 2007
Log message for revision 73461:
added buildout support
Changed:
_U z3c.extfile/trunk/
A z3c.extfile/trunk/bootstrap.py
A z3c.extfile/trunk/buildout.cfg
U z3c.extfile/trunk/setup.py
-=-
Property changes on: z3c.extfile/trunk
___________________________________________________________________
Name: svn:ignore
- build
dist
+ develop-eggs
dist
bin
parts
.installed.cfg
build
Added: z3c.extfile/trunk/bootstrap.py
===================================================================
--- z3c.extfile/trunk/bootstrap.py 2007-03-22 15:59:23 UTC (rev 73460)
+++ z3c.extfile/trunk/bootstrap.py 2007-03-22 16:02:08 UTC (rev 73461)
@@ -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.extfile/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: z3c.extfile/trunk/buildout.cfg
===================================================================
--- z3c.extfile/trunk/buildout.cfg 2007-03-22 15:59:23 UTC (rev 73460)
+++ z3c.extfile/trunk/buildout.cfg 2007-03-22 16:02:08 UTC (rev 73461)
@@ -0,0 +1,9 @@
+[buildout]
+develop = .
+parts = test
+
+find-links = http://download.zope.org/distribution/
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.extfile
\ No newline at end of file
Modified: z3c.extfile/trunk/setup.py
===================================================================
--- z3c.extfile/trunk/setup.py 2007-03-22 15:59:23 UTC (rev 73460)
+++ z3c.extfile/trunk/setup.py 2007-03-22 16:02:08 UTC (rev 73461)
@@ -8,19 +8,24 @@
description = "Large file handling for zope3",
license = "ZPL 2.1",
keywords = "zope3 external file",
- url='http://svn.zope.org/z3c.extfile',
+ url = 'http://svn.zope.org/z3c.extfile',
classifiers = [
'Development Status :: 3 - Alpha',
"License :: OSI Approved :: Zope Public License",
- "Framework :: Zope :: UI",
- ],
+ "Framework :: Zope :: UI"],
packages = find_packages('src'),
include_package_data = True,
package_dir = {'':'src'},
namespace_packages = ['z3c'],
- zip_safe=False,
+ zip_safe = False,
install_requires = [
- # XXX no requirements so far
- ],
- #dependency_links = ['http://download.zope.org/distribution/'],
- )
+ 'setuptools',
+ 'zope.component',
+ 'zope.interface',
+ 'zope.publisher',
+ 'zope.schema',
+ 'zope.thread',
+ 'ZODB3'],
+ dependency_links = [
+ 'http://download.zope.org/distribution/'],
+ )
\ No newline at end of file
More information about the Checkins
mailing list