[Checkins] SVN: zope.weakset/trunk/ Fix test, packaging cleanup, and getting ready for release.
Stephan Richter
srichter at gmail.com
Fri Jul 24 10:58:12 EDT 2009
Log message for revision 102248:
Fix test, packaging cleanup, and getting ready for release.
Changed:
_U zope.weakset/trunk/
A zope.weakset/trunk/CHANGES.txt
A zope.weakset/trunk/bootstrap.py
A zope.weakset/trunk/buildout.cfg
U zope.weakset/trunk/setup.py
_U zope.weakset/trunk/src/
U zope.weakset/trunk/src/zope/weakset/tests.py
-=-
Property changes on: zope.weakset/trunk
___________________________________________________________________
Added: svn:ignore
+ .installed.cfg
bin
develop-eggs
dist
parts
Added: zope.weakset/trunk/CHANGES.txt
===================================================================
--- zope.weakset/trunk/CHANGES.txt (rev 0)
+++ zope.weakset/trunk/CHANGES.txt 2009-07-24 14:58:12 UTC (rev 102248)
@@ -0,0 +1,7 @@
+CHANGES
+=======
+
+3.6.0 (2009-07-24)
+------------------
+
+- Initial release.
Property changes on: zope.weakset/trunk/CHANGES.txt
___________________________________________________________________
Added: svn:eol-style
+ native
Added: zope.weakset/trunk/bootstrap.py
===================================================================
--- zope.weakset/trunk/bootstrap.py (rev 0)
+++ zope.weakset/trunk/bootstrap.py 2009-07-24 14:58:12 UTC (rev 102248)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2007 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: zope.weakset/trunk/bootstrap.py
___________________________________________________________________
Added: svn:keywords
+ Id
Added: zope.weakset/trunk/buildout.cfg
===================================================================
--- zope.weakset/trunk/buildout.cfg (rev 0)
+++ zope.weakset/trunk/buildout.cfg 2009-07-24 14:58:12 UTC (rev 102248)
@@ -0,0 +1,7 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = zope.weakset
Modified: zope.weakset/trunk/setup.py
===================================================================
--- zope.weakset/trunk/setup.py 2009-07-24 14:27:15 UTC (rev 102247)
+++ zope.weakset/trunk/setup.py 2009-07-24 14:58:12 UTC (rev 102248)
@@ -41,16 +41,21 @@
Operating System :: Unix
"""
-setup(name='zope_weakset',
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(name='zope.weakset',
version='3.6.0',
- url='http://svn.zope.org/ZODB',
- download_url = "http://www.zope.org/Products/ZODB3.6",
- license='ZPL 2.1',
- description='ZODB weakset implementation',
author='Zope Corporation and Contributors',
- maintainer='Zope Corporation and Contributors',
author_email='zodb-dev at zope.org',
- maintainer_email='zodb-dev at zope.org',
+ description='ZODB weakset implementation',
+ long_description=(
+ read('README.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ url='http://pypi.python.org/pypi/zope.weakset',
+ license='ZPL 2.1',
platforms = ['any'],
classifiers = filter(None, classifiers.split("\n")),
long_description = __doc__,
@@ -58,9 +63,7 @@
package_dir = {'': 'src'},
namespace_packages = ['zope'],
tests_require = [],
- install_requires=[],
+ install_requires=['setuptools'],
include_package_data = True,
zip_safe = True,
)
-
-
Property changes on: zope.weakset/trunk/src
___________________________________________________________________
Added: svn:ignore
+ zope.weakset.egg-info
Modified: zope.weakset/trunk/src/zope/weakset/tests.py
===================================================================
--- zope.weakset/trunk/src/zope/weakset/tests.py 2009-07-24 14:27:15 UTC (rev 102247)
+++ zope.weakset/trunk/src/zope/weakset/tests.py 2009-07-24 14:58:12 UTC (rev 102248)
@@ -55,7 +55,8 @@
w.add(dummy3)
del dummy3
L = [x() for x in w.as_weakref_list()]
- self.assertEqual(L, [dummy, dummy2])
+ self.assert_(dummy in L)
+ self.assert_(dummy2 in L)
def test_map(self):
w = WeakSet()
@@ -70,11 +71,11 @@
w.map(poker)
for thing in dummy, dummy2, dummy3:
self.assertEqual(thing.poked, 1)
-
-
+
+
def test_suite():
return unittest.makeSuite(WeakSetTests)
if __name__ == '__main__':
unittest.main()
-
+
More information about the Checkins
mailing list