[Checkins] SVN: lovely.rating/trunk/ clean imports, buildout, changes documented, version bump

Bernd Dorn bernd.dorn at lovelysystems.com
Wed Apr 11 03:29:40 EDT 2007


Log message for revision 74099:
  clean imports, buildout, changes documented, version bump

Changed:
  _U  lovely.rating/trunk/
  A   lovely.rating/trunk/CHANGES.txt
  A   lovely.rating/trunk/bootstrap.py
  A   lovely.rating/trunk/buildout.cfg
  A   lovely.rating/trunk/setup.cfg
  U   lovely.rating/trunk/setup.py
  U   lovely.rating/trunk/src/lovely/rating/README.txt

-=-

Property changes on: lovely.rating/trunk
___________________________________________________________________
Name: svn:ignore
   + bin
build
dist
lib
develop-eggs
eggs
parts
.installed.cfg


Added: lovely.rating/trunk/CHANGES.txt
===================================================================
--- lovely.rating/trunk/CHANGES.txt	2007-04-11 02:44:15 UTC (rev 74098)
+++ lovely.rating/trunk/CHANGES.txt	2007-04-11 07:29:39 UTC (rev 74099)
@@ -0,0 +1,10 @@
+===================================
+ Changes for lovely.rating package
+===================================
+
+After 0.1 (trunk is 0.2)
+========================
+
+- buildoutified
+
+- remove schooltool.requirement dependency


Property changes on: lovely.rating/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: lovely.rating/trunk/bootstrap.py
===================================================================
--- lovely.rating/trunk/bootstrap.py	2007-04-11 02:44:15 UTC (rev 74098)
+++ lovely.rating/trunk/bootstrap.py	2007-04-11 07:29:39 UTC (rev 74099)
@@ -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: lovely.rating/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: lovely.rating/trunk/buildout.cfg
===================================================================
--- lovely.rating/trunk/buildout.cfg	2007-04-11 02:44:15 UTC (rev 74098)
+++ lovely.rating/trunk/buildout.cfg	2007-04-11 07:29:39 UTC (rev 74099)
@@ -0,0 +1,9 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+defaults = ['--tests-pattern', '^f?tests$']
+eggs = lovely.rating [test]
+


Property changes on: lovely.rating/trunk/buildout.cfg
___________________________________________________________________
Name: svn:eol-style
   + native

Added: lovely.rating/trunk/setup.cfg
===================================================================
--- lovely.rating/trunk/setup.cfg	2007-04-11 02:44:15 UTC (rev 74098)
+++ lovely.rating/trunk/setup.cfg	2007-04-11 07:29:39 UTC (rev 74099)
@@ -0,0 +1,2 @@
+[egg_info]
+tag_svn_revision = 1
\ No newline at end of file


Property changes on: lovely.rating/trunk/setup.cfg
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: lovely.rating/trunk/setup.py
===================================================================
--- lovely.rating/trunk/setup.py	2007-04-11 02:44:15 UTC (rev 74098)
+++ lovely.rating/trunk/setup.py	2007-04-11 07:29:39 UTC (rev 74099)
@@ -2,19 +2,29 @@
 from setuptools import setup, find_packages
 
 setup(name='lovely.rating',
-      version='0.1',
-      author = "Stephan Richter",
-      author_email = "srichter at cosmos.phy.tufts.edu",
+      version='0.2',
+      author = "Lovelysystems",
+      author_email = "office at lovelysystems.com",
       description = "A rating engine for zope 3",
       license = "ZPL 2.1",
       keywords = "zope3 web20 rating",
       url='svn://svn.zope.org/repos/main/lovely.rating',
-
       packages=find_packages('src'),
       include_package_data=True,
       package_dir = {'':'src'},
+      extras_require=dict(test=['zope.app.testing',
+                                'zope.testing',
+                                ]),
       namespace_packages=['lovely'],
-      install_requires = ['setuptools', ],
-      dependency_links = ['http://download.zope.org/distribution',
-                          'http://download.lovelysystems.com/distribution'],
+      install_requires = ['setuptools',
+                          'ZODB3',
+                          'pytz',
+                          'zope.app.container',
+                          'zope.app.generations',
+                          'zope.app.zopeappgenerations',
+                          'zope.component',
+                          'zope.i18nmessageid',
+                          'zope.interface',
+                          'zope.schema',
+                          ],
      )

Modified: lovely.rating/trunk/src/lovely/rating/README.txt
===================================================================
--- lovely.rating/trunk/src/lovely/rating/README.txt	2007-04-11 02:44:15 UTC (rev 74098)
+++ lovely.rating/trunk/src/lovely/rating/README.txt	2007-04-11 07:29:39 UTC (rev 74099)
@@ -64,9 +64,6 @@
   ...     (u'Okay', Decimal(2)), (u'Poor', Decimal(1)),
   ...     (u'Crap', Decimal(0))])
 
-Note: For more details on score systems see the documentation in the
-``schooltool.requirement`` package.
-
 Now we can create the rating definition and register it as a utility:
 
   >>> usability = rating.RatingDefinition(



More information about the Checkins mailing list