[Checkins] SVN: five.pt/trunk/ Package boilerplate
Hanno Schlichting
plone at hannosch.info
Sat Jul 19 03:47:55 EDT 2008
Log message for revision 88572:
Package boilerplate
Changed:
A five.pt/trunk/AUTHOR.txt
A five.pt/trunk/CHANGES.txt
A five.pt/trunk/README.txt
A five.pt/trunk/bootstrap.py
A five.pt/trunk/buildout.cfg
A five.pt/trunk/setup.py
A five.pt/trunk/src/
A five.pt/trunk/src/five/
A five.pt/trunk/src/five/__init__.py
A five.pt/trunk/src/five/pt/
A five.pt/trunk/src/five/pt/__init__.py
-=-
Added: five.pt/trunk/AUTHOR.txt
===================================================================
--- five.pt/trunk/AUTHOR.txt (rev 0)
+++ five.pt/trunk/AUTHOR.txt 2008-07-19 07:47:55 UTC (rev 88572)
@@ -0,0 +1 @@
+Hanno Schlichting <hannosch at gmail.com>
Property changes on: five.pt/trunk/AUTHOR.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: five.pt/trunk/CHANGES.txt
===================================================================
--- five.pt/trunk/CHANGES.txt (rev 0)
+++ five.pt/trunk/CHANGES.txt 2008-07-19 07:47:55 UTC (rev 88572)
@@ -0,0 +1,8 @@
+Changelog
+=========
+
+0.1
+---
+
+- Package structure.
+ [hannosch]
Property changes on: five.pt/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: five.pt/trunk/README.txt
===================================================================
--- five.pt/trunk/README.txt (rev 0)
+++ five.pt/trunk/README.txt 2008-07-19 07:47:55 UTC (rev 88572)
@@ -0,0 +1,4 @@
+Overview
+========
+
+The five.pt package brings the z3c.pt package into the Zope 2 world.
Property changes on: five.pt/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: five.pt/trunk/bootstrap.py
===================================================================
--- five.pt/trunk/bootstrap.py (rev 0)
+++ five.pt/trunk/bootstrap.py 2008-07-19 07:47:55 UTC (rev 88572)
@@ -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: bootstrap.py 71627 2006-12-20 16:46:11Z jim $
+"""
+
+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: five.pt/trunk/bootstrap.py
___________________________________________________________________
Name: svn:eol-style
+ native
Added: five.pt/trunk/buildout.cfg
===================================================================
--- five.pt/trunk/buildout.cfg (rev 0)
+++ five.pt/trunk/buildout.cfg 2008-07-19 07:47:55 UTC (rev 88572)
@@ -0,0 +1,13 @@
+[buildout]
+develop = .
+
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+environment = test-environment
+eggs =
+ five.pt
+
+[test-environment]
+Z3C_PT_DEBUG = False
Property changes on: five.pt/trunk/buildout.cfg
___________________________________________________________________
Name: svn:eol-style
+ native
Added: five.pt/trunk/setup.py
===================================================================
--- five.pt/trunk/setup.py (rev 0)
+++ five.pt/trunk/setup.py 2008-07-19 07:47:55 UTC (rev 88572)
@@ -0,0 +1,30 @@
+from setuptools import setup, find_packages
+
+version = '0.1'
+
+setup(name='five.pt',
+ version=version,
+ description="Five bridges for the z3c.pt package.",
+ long_description=open("README.txt").read() + open("CHANGES.txt").read(),
+ classifiers=[
+ "Framework :: Zope2",
+ "Programming Language :: Python",
+ "Topic :: Text Processing :: Markup :: HTML",
+ "Topic :: Text Processing :: Markup :: XML",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ keywords='',
+ author='Hanno Schlichting',
+ author_email='hannosch at gmail.com',
+ url='',
+ license='ZPL',
+ namespace_packages=['five'],
+ packages = find_packages('src'),
+ package_dir = {'':'src'},
+ include_package_data=True,
+ zip_safe=False,
+ install_requires=[
+ 'setuptools',
+ 'z3c.pt',
+ ],
+ )
Property changes on: five.pt/trunk/setup.py
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: five.pt/trunk/src
___________________________________________________________________
Name: svn:ignore
+ build
dist
*.egg-info
*.pyc
Added: five.pt/trunk/src/five/__init__.py
===================================================================
--- five.pt/trunk/src/five/__init__.py (rev 0)
+++ five.pt/trunk/src/five/__init__.py 2008-07-19 07:47:55 UTC (rev 88572)
@@ -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__)
Property changes on: five.pt/trunk/src/five/__init__.py
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: five.pt/trunk/src/five/pt
___________________________________________________________________
Name: svn:ignore
+ *.pyc
*.pyo
Added: five.pt/trunk/src/five/pt/__init__.py
===================================================================
--- five.pt/trunk/src/five/pt/__init__.py (rev 0)
+++ five.pt/trunk/src/five/pt/__init__.py 2008-07-19 07:47:55 UTC (rev 88572)
@@ -0,0 +1 @@
+#
\ No newline at end of file
Property changes on: five.pt/trunk/src/five/pt/__init__.py
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the Checkins
mailing list