[Checkins] SVN: lovely.tag/trunk/ Get ready for release. Some modernization.
Stephan Richter
srichter at gmail.com
Fri Jul 24 14:54:18 EDT 2009
Log message for revision 102276:
Get ready for release. Some modernization.
Changed:
U lovely.tag/trunk/CHANGES.txt
U lovely.tag/trunk/buildout.cfg
U lovely.tag/trunk/setup.py
_U lovely.tag/trunk/src/
U lovely.tag/trunk/src/lovely/tag/README.txt
U lovely.tag/trunk/src/lovely/tag/index.txt
-=-
Modified: lovely.tag/trunk/CHANGES.txt
===================================================================
--- lovely.tag/trunk/CHANGES.txt 2009-07-24 18:33:05 UTC (rev 102275)
+++ lovely.tag/trunk/CHANGES.txt 2009-07-24 18:54:17 UTC (rev 102276)
@@ -1,18 +1,24 @@
-======================
-Changes for lovely.tag
-======================
+=======
+CHANGES
+=======
+1.0.0 (2009-07-24)
+------------------
-2007/07/18 0.3.0b2:
-===================
+- Fixed tests to conform to latest packages.
+- Cleanup release boilerplate.
+
+0.3.0b2 (2007-07-18)
+--------------------
+
- in case of a not matching query lovely.tag will not longer return
None but an empty IFTreeSet. (this is caused because zope.app.catalog
will ignore None which results in a boolean or operation)
-2007/06/13 0.3.0b1:
-===================
+0.3.0b1 (2007-06-13)
+--------------------
- use iobtree for tag persistence instead of persistent list and intid
util, should be much faster now with big numbers of tags. (this is a
Modified: lovely.tag/trunk/buildout.cfg
===================================================================
--- lovely.tag/trunk/buildout.cfg 2009-07-24 18:33:05 UTC (rev 102275)
+++ lovely.tag/trunk/buildout.cfg 2009-07-24 18:54:17 UTC (rev 102276)
@@ -5,6 +5,3 @@
[test]
recipe = zc.recipe.testrunner
eggs = lovely.tag [test]
-
-
-
Modified: lovely.tag/trunk/setup.py
===================================================================
--- lovely.tag/trunk/setup.py 2009-07-24 18:33:05 UTC (rev 102275)
+++ lovely.tag/trunk/setup.py 2009-07-24 18:54:17 UTC (rev 102276)
@@ -1,15 +1,49 @@
-#!python
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation 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.
+#
+##############################################################################
+"""
+$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='lovely.tag',
- version='0.3.0b2',
+ version='1.0.0',
author = "Lovely Systems",
author_email = "office at lovelysystems.com",
- description = "A tagging engine for zope 3",
+ description = "A tagging engine for Zope 3",
+ long_description=(
+ read('src', 'lovely', 'tag', 'README.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
license = "ZPL 2.1",
- keywords = "zope3 web20 zope tagging",
- url = 'svn://svn.zope.org/repos/main/lovely.tag',
+ keywords = "zope3 lovely tag cloud",
+ classifiers = [
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Zope Public License',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Framework :: Zope3'],
+ url = 'http://pypi.python.org/pypi/lovely.tag',
packages = find_packages('src'),
include_package_data = True,
package_dir = {'':'src'},
@@ -17,6 +51,7 @@
extras_require = dict(
test = ['zope.app.testing',
'zope.app.catalog',
+ 'zope.keyreference',
'z3c.sampledata']
),
install_requires = [
@@ -43,6 +78,5 @@
'zope.schema',
'zope.security'
],
- dependency_links = ['http://download.zope.org/distribution']
- )
-
+ zip_safe = False,
+)
Property changes on: lovely.tag/trunk/src
___________________________________________________________________
Added: svn:ignore
+ lovely.tag.egg-info
Modified: lovely.tag/trunk/src/lovely/tag/README.txt
===================================================================
--- lovely.tag/trunk/src/lovely/tag/README.txt 2009-07-24 18:33:05 UTC (rev 102275)
+++ lovely.tag/trunk/src/lovely/tag/README.txt 2009-07-24 18:54:17 UTC (rev 102276)
@@ -25,7 +25,7 @@
adapted to key references:
>>> import zope.component
- >>> from zope.app.keyreference import testing
+ >>> from zope.keyreference import testing
>>> zope.component.provideAdapter(testing.SimpleKeyReference)
@@ -170,7 +170,7 @@
>>> sorted(engine.getTagObjects(tags=(u'personal',),
... items=(3,)))
[<Tag u'personal' for 3 by u'jodok'>]
-
+
We can also search fr
Tagging Statistics
@@ -412,7 +412,7 @@
All portals like Flickr, del.icio.us use tagging and generate tag clouds.
Tag clouds contain tags and their frequency.
-The ``getCloud`` method returns a set of tuples in the form of
+The ``getCloud`` method returns a set of tuples in the form of
('tag', frequency). It takes the same arguments as getTags.
>>> type(engine.getCloud())
@@ -436,12 +436,12 @@
>>> sorted(engine.getCloud(items=[1]))
[(u'USA', 1)]
-
+
The same applies to queries by user:
>>> sorted(engine.getCloud(users=[u'srichter']))
[(u'guru', 1), (u'zope3', 1)]
-
+
Or more users, and a few items.
>>> sorted(engine.getCloud(items=[1, 2, 3], users=[u'srichter', u'jodok']))
@@ -570,7 +570,7 @@
>>> sorted(engine.getTags())
[u'Austria', u'USA', u'guru', u'lovely', u'zope3']
-
+
Let us setup the handler and events.
>>> from zope.component import eventtesting
@@ -619,7 +619,7 @@
This is our first and only entry in the intid util
- >>> intIds.refs.keys()[0] in engine.getItems()
+ >>> intIds.refs.keys()[0] in engine.getItems()
True
Our stale entry is 2. The intids of the items deleted are returned.
@@ -628,7 +628,7 @@
True
>>> engine.cleanStaleItems()
[2]
-
+
We now only have our real image item.
>>> 2 in engine.getItems()
Modified: lovely.tag/trunk/src/lovely/tag/index.txt
===================================================================
--- lovely.tag/trunk/src/lovely/tag/index.txt 2009-07-24 18:33:05 UTC (rev 102275)
+++ lovely.tag/trunk/src/lovely/tag/index.txt 2009-07-24 18:54:17 UTC (rev 102276)
@@ -26,7 +26,7 @@
>>> import zope.component
- >>> from zope.app.keyreference import testing
+ >>> from zope.keyreference import testing
>>> zope.component.provideAdapter(testing.SimpleKeyReference)
>>> engine.update(1, u'srichter', [u'USA', u'personal'])
More information about the Checkins
mailing list