[Checkins] SVN: StructuredText/ Prep for release as a separate egg.

Tres Seaver tseaver at palladion.com
Tue Aug 5 09:49:20 EDT 2008


Log message for revision 89387:
  Prep for release as a separate egg.

Changed:
  A   StructuredText/
  A   StructuredText/tags/
  A   StructuredText/tags/2.11.1/
  A   StructuredText/tags/2.11.1/README.txt
  A   StructuredText/tags/2.11.1/bootstrap/
  A   StructuredText/tags/2.11.1/bootstrap/bootstrap.py
  A   StructuredText/tags/2.11.1/buildout.cfg
  A   StructuredText/tags/2.11.1/setup.py
  A   StructuredText/tags/2.11.1/src/
  A   StructuredText/tags/2.11.1/src/StructuredText.egg-info/
  A   StructuredText/tags/2.11.1/src/StructuredText.egg-info/PKG-INFO
  A   StructuredText/tags/2.11.1/src/StructuredText.egg-info/SOURCES.txt
  A   StructuredText/tags/2.11.1/src/StructuredText.egg-info/dependency_links.txt
  A   StructuredText/tags/2.11.1/src/StructuredText.egg-info/not-zip-safe
  A   StructuredText/tags/2.11.1/src/StructuredText.egg-info/requires.txt
  A   StructuredText/tags/2.11.1/src/StructuredText.egg-info/top_level.txt

-=-
Added: StructuredText/tags/2.11.1/README.txt
===================================================================
--- StructuredText/tags/2.11.1/README.txt	                        (rev 0)
+++ StructuredText/tags/2.11.1/README.txt	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1 @@
+Please refer to src/StructuredText/STNG.txt.

Added: StructuredText/tags/2.11.1/bootstrap/bootstrap.py
===================================================================
--- StructuredText/tags/2.11.1/bootstrap/bootstrap.py	                        (rev 0)
+++ StructuredText/tags/2.11.1/bootstrap/bootstrap.py	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1,62 @@
+##############################################################################
+#
+# 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 85041 2008-03-31 15:57:30Z andreasjung $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+try:
+    import pkg_resources
+except ImportError:
+    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
+
+if sys.platform == 'win32':
+    def quote(c):
+        if ' ' in c:
+            return '"%s"' % c # work around spawn lamosity on windows
+        else:
+            return c
+else:
+    def quote (c):
+        return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws  = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, quote (sys.executable),
+    '-c', quote (cmd), '-mqNxd', quote (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)

Added: StructuredText/tags/2.11.1/buildout.cfg
===================================================================
--- StructuredText/tags/2.11.1/buildout.cfg	                        (rev 0)
+++ StructuredText/tags/2.11.1/buildout.cfg	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1,8 @@
+[buildout]
+develop = .
+parts = test
+find-links = http://download.zope.org/distribution/
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = StructuredText

Added: StructuredText/tags/2.11.1/setup.py
===================================================================
--- StructuredText/tags/2.11.1/setup.py	                        (rev 0)
+++ StructuredText/tags/2.11.1/setup.py	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1,40 @@
+##############################################################################
+#
+# Copyright (c) 2008 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.
+#
+##############################################################################
+"""Setup for the StructuredText egg package
+"""
+import os
+from setuptools import setup, find_packages, Extension
+
+setup(name='StructuredText',
+      version = '2.11.1',
+      url='http://cheeseshop.python.org/pypi/StructuredText',
+      license='ZPL 2.1',
+      description="""\
+This package provides the StructuredText package, as known from Zope 2.
+Unless you need to communicate with Zope 2 APIs, you're probably
+better off using the newer zope.structuredtext module.""",
+      author='Zope Corporation and Contributors',
+      author_email='zope-dev at zope.org',
+      long_description=open(
+          os.path.join('src', 'StructuredText', 'STNG.txt')).read(),
+
+      packages=find_packages('src'),
+      package_dir={'': 'src'},
+
+      install_requires=['zope.structuredtext',
+                        'zope.deprecation',
+                        ],
+      include_package_data=True,
+      zip_safe=False,
+      )

Added: StructuredText/tags/2.11.1/src/StructuredText.egg-info/PKG-INFO
===================================================================
--- StructuredText/tags/2.11.1/src/StructuredText.egg-info/PKG-INFO	                        (rev 0)
+++ StructuredText/tags/2.11.1/src/StructuredText.egg-info/PKG-INFO	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1,125 @@
+Metadata-Version: 1.0
+Name: StructuredText
+Version: 2.11.1
+Summary: This package provides the StructuredText package, as known from Zope 2.
+Unless you need to communicate with Zope 2 APIs, you're probably
+better off using the newer zope.structuredtext module.
+Home-page: http://cheeseshop.python.org/pypi/StructuredText
+Author: Zope Corporation and Contributors
+Author-email: zope-dev at zope.org
+License: ZPL 2.1
+Description: Using Structured Text
+        
+        WARNING! The 'StructuredText' package has been deprecated and will
+        be removed in Zope 2.12.  Use 'zope.structuredtext' instead.
+        
+        The goal of StructuredText is to make it possible to express
+        structured text using a relatively simple plain text format. Simple
+        structures, like bullets or headings are indicated through
+        conventions that are natural, for some definition of
+        "natural". Hierarchical structures are indicated through
+        indentation. The use of indentation to express hierarchical
+        structure is inspired by the Python programming language.
+        
+        Use of StructuredText consists of one to three logical steps. In the
+        first step, a text string is converted to a network of objects using
+        the 'StructuredText.Basic' facility, as in the following
+        example::
+        
+        raw=open("mydocument.txt").read()
+        import StructuredText
+        st=StructuredText.Basic(raw)
+        
+        The output of 'StructuredText.Basic' is simply a
+        StructuredTextDocument object containing StructuredTextParagraph
+        objects arranged in a hierarchy. Paragraphs are delimited by strings
+        of two or more whitespace characters beginning and ending with
+        newline characters. Hierarchy is indicated by indentation. The
+        indentation of a paragraph is the minimum number of leading spaces
+        in a line containing non-white-space characters after converting tab
+        characters to spaces (assuming a tab stop every eight characters).
+        
+        StructuredTextNode objects support the read-only subset of the
+        Document Object Model (DOM) API. It should be possible to process
+        'StructuredTextNode' hierarchies using XML tools such as XSLT.
+        
+        The second step in using StructuredText is to apply additional
+        structuring rules based on text content. A variety of differentText
+        rules can be used. Typically, these are used to implement a
+        structured text language for producing documents, but any sort of
+        structured text language could be implemented in the second
+        step. For example, it is possible to use StructuredText to implement
+        structured text formats for representing structured data. The second
+        step, which could consist of multiple processing steps, is
+        performed by processing, or "coloring", the hierarchy of generic
+        StructuredTextParagraph objects into a network of more specialized
+        objects. Typically, the objects produced should also implement the DOM
+        API to allow processing with XML tools.
+        
+        A document processor is provided to convert a StructuredTextDocument
+        object containing only StructuredStructuredTextParagraph objects
+        into a StructuredTextDocument object containing a richer collection
+        of objects such as bullets, headings, emphasis, and so on using
+        hints in the text. Hints are selected based on conventions of the
+        sort typically seen in electronic mail or news-group postings. It
+        should be noted, however, that these conventions are somewhat
+        culturally dependent, fortunately, the document processor is easily
+        customized to implement alternative rules. Here's an example of
+        using the DOC processor to convert the output of the previous example::
+        
+        doc=StructuredText.Document(st)
+        
+        The final step is to process the colored networks produced from the
+        second step to produce additional outputs. The final step could be
+        performed by Python programs, or by XML tools. A Python outputter is
+        provided for the document processor output that produces Hypertext Markup
+        Language (HTML) text::
+        
+        html=StructuredText.HTML(doc)
+        
+        Customizing the document processor
+        
+        The document processor is driven by two tables. The first table,
+        named 'paragraph_types', is a sequence of callable objects or method
+        names for coloring paragraphs. If a table entry is a string, then it
+        is the name of a method of the document processor to be used. For
+        each input paragraph, the objects in the table are called until one
+        returns a value (not 'None'). The value returned replaces the
+        original input paragraph in the output. If none of the objects in
+        the paragraph types table return a value, then a copy of the
+        original paragraph is used.  The new object returned by calling a
+        paragraph type should implement the ReadOnlyDOM,
+        StructuredTextColorizable, and StructuredTextSubparagraphContainer
+        interfaces. See the 'Document.py' source file for examples.
+        
+        A paragraph type may return a list or tuple of replacement
+        paragraphs, this allowing a paragraph to be split into multiple
+        paragraphs.
+        
+        The second table, 'text_types', is a sequence of callable objects or
+        method names for coloring text. The callable objects in this table
+        are used in sequence to transform the input text into new text or
+        objects.  The callable objects are passed a string and return
+        nothing ('None') or a three-element tuple consisting of:
+        
+        - a replacement object,
+        
+        - a starting position, and
+        
+        - an ending position
+        
+        The text from the starting position is (logically) replaced with the
+        replacement object. The replacement object is typically an object
+        that implements that implements the ReadOnlyDOM, and
+        StructuredTextColorizable interfaces. The replacement object can
+        also be a string or a list of strings or objects. Replacement is
+        done from beginning to end and text after the replacement ending
+        position will be passed to the character type objects for processing.
+        
+        Example: adding wiki links
+        
+        We want to add support for Wiki links. A Wiki link is a string of
+        text containing mixed-case letters, such that at least two of the
+        letters are upper case and such that the first letter is upper case.
+        
+Platform: UNKNOWN

Added: StructuredText/tags/2.11.1/src/StructuredText.egg-info/SOURCES.txt
===================================================================
--- StructuredText/tags/2.11.1/src/StructuredText.egg-info/SOURCES.txt	                        (rev 0)
+++ StructuredText/tags/2.11.1/src/StructuredText.egg-info/SOURCES.txt	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1,21 @@
+README.txt
+setup.py
+src/StructuredText/ClassicDocumentClass.py
+src/StructuredText/ClassicStructuredText.py
+src/StructuredText/DocBookClass.py
+src/StructuredText/DocumentClass.py
+src/StructuredText/DocumentWithImages.py
+src/StructuredText/HTMLClass.py
+src/StructuredText/HTMLWithImages.py
+src/StructuredText/ST.py
+src/StructuredText/StructuredText.py
+src/StructuredText/__init__.py
+src/StructuredText/ts_regex.py
+src/StructuredText.egg-info/PKG-INFO
+src/StructuredText.egg-info/SOURCES.txt
+src/StructuredText.egg-info/dependency_links.txt
+src/StructuredText.egg-info/not-zip-safe
+src/StructuredText.egg-info/requires.txt
+src/StructuredText.egg-info/top_level.txt
+src/StructuredText/tests/__init__.py
+src/StructuredText/tests/testStructuredText.py
\ No newline at end of file

Added: StructuredText/tags/2.11.1/src/StructuredText.egg-info/dependency_links.txt
===================================================================
--- StructuredText/tags/2.11.1/src/StructuredText.egg-info/dependency_links.txt	                        (rev 0)
+++ StructuredText/tags/2.11.1/src/StructuredText.egg-info/dependency_links.txt	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1 @@
+

Added: StructuredText/tags/2.11.1/src/StructuredText.egg-info/not-zip-safe
===================================================================
--- StructuredText/tags/2.11.1/src/StructuredText.egg-info/not-zip-safe	                        (rev 0)
+++ StructuredText/tags/2.11.1/src/StructuredText.egg-info/not-zip-safe	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1 @@
+

Added: StructuredText/tags/2.11.1/src/StructuredText.egg-info/requires.txt
===================================================================
--- StructuredText/tags/2.11.1/src/StructuredText.egg-info/requires.txt	                        (rev 0)
+++ StructuredText/tags/2.11.1/src/StructuredText.egg-info/requires.txt	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1 @@
+zope.structuredtext
\ No newline at end of file

Added: StructuredText/tags/2.11.1/src/StructuredText.egg-info/top_level.txt
===================================================================
--- StructuredText/tags/2.11.1/src/StructuredText.egg-info/top_level.txt	                        (rev 0)
+++ StructuredText/tags/2.11.1/src/StructuredText.egg-info/top_level.txt	2008-08-05 13:49:19 UTC (rev 89387)
@@ -0,0 +1 @@
+StructuredText



More information about the Checkins mailing list