Changeset 1910:53619bdbd6cc in livinglogic.python.xist

Show
Ignore:
Timestamp:
07/31/03 23:55:33 (16 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Update installation instructions.

Use 2.3 distutils.

Add namespace migration documentation.

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • INSTALL.xml

    r1881 r1910  
    66<item>The Python &xml; package (available from <link href="http://pyxml.sf.net/">http://pyxml.sf.net/</link>) 
    77(at least version 0.8.2),</item> 
    8 <item>the Python Imaging Library (available from 
    9 <link href="http://www.pythonware.com/products/pil/">http://www.pythonware.com/products/pil/</link>)</item> 
    10 <item>The eGenix mx experimental package (available from 
    11 <link href="http://www.egenix.com/files/python/eGenix-mx-Extensions.html">http://www.egenix.com/files/python/eGenix-mx-Extensions.html</link>).</item> 
    128<item>URL (available from <link href="root:url/index.html">http://www.livinglogic.de/Python/url/</link>),</item> 
    139<item>ANSIStyle (available from <link href="root:ansistyle/index.html">http://www.livinglogic.de/Python/ansistyle/</link>),</item> 
     10<item>if you want to use automatic image size calculation: the Python Imaging Library (available from 
     11<link href="http://www.pythonware.com/products/pil/">http://www.pythonware.com/products/pil/</link>)</item> 
     12<item>if you want to parse broken HTML: the eGenix mx experimental package (available from 
     13<link href="http://www.egenix.com/files/python/eGenix-mx-Extensions.html">http://www.egenix.com/files/python/eGenix-mx-Extensions.html</link>).</item> 
    1414<item>and a C compiler supported by <app>distutils</app>, if you want 
    1515to install the source distribution.</item> 
     
    1818 
    1919<section><title>Installation</title> 
    20 <par>&xist; uses <app>distutils</app>, so installation 
    21 is rather simple. Execute the following command:</par> 
     20<par>&xist; uses <app>distutils</app>, so installation is rather simple. Execute the following command:</par> 
    2221<prog> 
    2322python setup.py install 
     
    4039 
    4140<par>If you have difficulties installing this software, send a problem report 
    42 to Walter Dörwald (<email>walter@livinglogic.de</email>) 
    43 describing the problem.</par> 
     41to Walter Dörwald (<email>walter@livinglogic.de</email>).</par> 
    4442</section> 
    4543 
  • MIGRATION.xml

    r1884 r1910  
    2121<prog> 
    2222"<rep>attr</rep>" in <rep>NodeClass</rep>.Attrs 
     23</prog> 
     24 
     25<par>or:</par> 
     26 
     27<prog> 
     28<rep>NodeClass</rep>.isallowed("<rep>attr</rep>") 
    2329</prog> 
    2430 
     
    8591<section><title><class>doc</class> changes</title> 
    8692 
    87 <par><class>programlisting</class> has been renamed to <class>prog</class> (but 
    88 there's still a <class>programlisting</class> that gives a warning).</par> 
     93<par><class>programlisting</class> has been renamed to <class>prog</class>.</par> 
     94 
     95</section> 
     96 
     97<section><title>Namespace changes</title> 
     98 
     99<par>Namespaces can no longer be instantiated. Instead you have to derive a class 
     100from <class>Namespace</class>. The <arg>xmlprefix</arg> argument from the constructor 
     101becomes a class attribute <lit>xmlname</lit> and the argument <arg>xmlname</arg> 
     102becomes <lit>xmlurl</lit>.</par> 
     103 
     104<par>Adding element classes to the namespace is now done with the 
     105<class>Namespace</class> classmethod <method>update</method>. 
     106If you want the turn a namespace into a module, you can use the classmethod 
     107<method>makemod</method> instead of <method>update</method>.</par> 
     108 
     109<example><title>Old method</title> 
     110<prog> 
     111xmlns = xsc.Namespace("foo", "http://www.foo.com/", vars() 
     112</prog> 
     113</example> 
     114 
     115<example><title>New method</title> 
     116<prog> 
     117class xmlns(xsc.Namespace): 
     118    xmlname = "foo" 
     119    xmlurl = "http://www.foo.com/" 
     120xmlns.makemod(vars()) 
     121</prog> 
     122</example> 
    89123 
    90124</section> 
  • setup.py

    r1845 r1910  
    88 
    99from distutils.core import setup, Extension 
     10import textwrap 
    1011 
    1112DESCRIPTION = """ 
     
    4445""" 
    4546 
     47DESCRIPTION = "\n".join(textwrap.wrap(DESCRIPTION.strip(), width=64, replace_whitespace=True)) 
     48 
    4649setup( 
    47     name="ll-XIST", 
     50    name="ll-xist", 
    4851    version="2.2", 
    4952    description="An XML-based extensible HTML generator", 
    50     long_description=DESCRIPTION.strip(), 
     53    long_description=DESCRIPTION, 
    5154    author="Walter Doerwald", 
    5255    author_email="walter@livinglogic.de", 
    5356    url="http://www.livinglogic.de/Python/xist/", 
    54     #download_url="http://www.livinglogic.de/Python/xist/Download.html", 
     57    download_url="http://www.livinglogic.de/Python/xist/Download.html", 
    5558    license="Python", 
    56     classifiers=CLASSIFIERS.strip().split("\n"), 
    57     keywords=",".join(KEYWORDS.strip().split("\n")), 
     59    classifiers=CLASSIFIERS.strip().splitlines(), 
     60    keywords=",".join(KEYWORDS.strip().splitlines()), 
    5861    packages=["ll", "ll.xist", "ll.xist.ns"], 
    5962    package_dir={"ll": ".", "ll.xist": "_xist"},