[Checkins] SVN: Sandbox/ocql-foliage/trunk/ moving to buildout
Adam Groszer
agroszer at gmail.com
Thu May 29 05:37:09 EDT 2008
Log message for revision 87009:
moving to buildout
Changed:
_U Sandbox/ocql-foliage/trunk/
A Sandbox/ocql-foliage/trunk/bootstrap.py
A Sandbox/ocql-foliage/trunk/buildout.cfg
A Sandbox/ocql-foliage/trunk/setup.py
-=-
Property changes on: Sandbox/ocql-foliage/trunk
___________________________________________________________________
Name: svn:ignore
- .project
.pydevproject
+ .project
.pydevproject
bin
develop-eggs
parts
Added: Sandbox/ocql-foliage/trunk/bootstrap.py
===================================================================
--- Sandbox/ocql-foliage/trunk/bootstrap.py (rev 0)
+++ Sandbox/ocql-foliage/trunk/bootstrap.py 2008-05-29 09:37:08 UTC (rev 87009)
@@ -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: Sandbox/ocql-foliage/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
+ Date Author Id Revision
Name: svn:eol-style
+ native
Added: Sandbox/ocql-foliage/trunk/buildout.cfg
===================================================================
--- Sandbox/ocql-foliage/trunk/buildout.cfg (rev 0)
+++ Sandbox/ocql-foliage/trunk/buildout.cfg 2008-05-29 09:37:08 UTC (rev 87009)
@@ -0,0 +1,27 @@
+[buildout]
+prefer-final = true
+
+develop = .
+
+parts = test checker
+
+[versions]
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = OCQL [test]
+
+[checker]
+recipe = lovely.recipe:importchecker
+path = src/ocql
+
+[coverage-test]
+recipe = zc.recipe.testrunner
+eggs = OCQL [test]
+defaults = ['--coverage', '../../coverage']
+
+[coverage-report]
+recipe = zc.recipe.egg
+eggs = z3c.coverage
+scripts = coverage=coverage-report
+arguments = ('coverage', 'coverage/report')
\ No newline at end of file
Property changes on: Sandbox/ocql-foliage/trunk/buildout.cfg
___________________________________________________________________
Name: svn:keywords
+ Date Author Id Revision
Name: svn:eol-style
+ native
Added: Sandbox/ocql-foliage/trunk/setup.py
===================================================================
--- Sandbox/ocql-foliage/trunk/setup.py (rev 0)
+++ Sandbox/ocql-foliage/trunk/setup.py 2008-05-29 09:37:08 UTC (rev 87009)
@@ -0,0 +1,42 @@
+"""Setup
+
+$Id$
+"""
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup (
+ name='OCQL',
+ version='0.0.1',
+ author = "Adam Groszer & Attila Gobi",
+ author_email = "agroszer at gmail.com",
+ description = "OCQL",
+ long_description=(""),
+ license = "ZPL V2.1",
+ keywords = "",
+ classifiers = [
+ 'Intended Audience :: Developers',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Framework :: Zope3'
+ ],
+ url = '',
+ packages = find_packages('src'),
+ package_dir = {'':'src'},
+ namespace_packages = ['ocql'],
+ extras_require = dict(
+ test = [
+ ],
+ ),
+ install_requires = [
+ 'setuptools',
+ 'ply',
+ ],
+
+ include_package_data = True,
+ zip_safe = False,
+ )
Property changes on: Sandbox/ocql-foliage/trunk/setup.py
___________________________________________________________________
Name: svn:keywords
+ Date Author Id Revision
Name: svn:eol-style
+ native
More information about the Checkins
mailing list