Changeset 36:d0a1d52545a3 in livinglogic.python.pycoco

Show
Ignore:
Timestamp:
01/07/08 10:54:15 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Update to XIST 3.0. Use new doc elements. Add ReST documentation.

Files:
2 added
4 modified

Legend:

Unmodified
Added
Removed
  • INSTALL.xml

    r25 r36  
    11<?xml version='1.0' encoding='iso-8859-1'?> 
    2 <section><title>Requirements</title> 
    3 <par>To use this module you need the following software packages:</par> 
    4 <olist> 
    5 <item><link href="http://www.python.org/">Python 2.4</link>;</item> 
     2<section><h>Requirements</h> 
     3<p>To use this module you need the following software packages:</p> 
     4<ol> 
     5<item><a href="http://www.python.org/">Python 2.4</a>;</item> 
    66<item><pyref module="ll.core">ll-core</pyref> (version 1.5 or later);</item> 
    77<item><pyref module="ll.xist">&xist;</pyref> (version 2.15.1 or later).</item> 
    8 </olist> 
     8</ol> 
    99</section> 
    1010 
    1111 
    12 <section><title>Installation</title> 
    13 <par><app>distutils</app> is used for installation, so it's rather simple. 
    14 Execute the following command:</par> 
     12<section><h>Installation</h> 
     13<p><app>distutils</app> is used for installation, so it's rather simple. 
     14Execute the following command:</p> 
    1515<prog> 
    1616python setup.py install 
    1717</prog> 
    1818 
    19 <par>For Windows a binary distribution is provided. To install it, 
    20 double click it and follow the instructions.</par> 
     19<p>For Windows a binary distribution is provided. To install it, 
     20double click it and follow the instructions.</p> 
    2121 
    22 <par><app>setuptools</app> is supported for installation, so if you have 
     22<p><app>setuptools</app> is supported for installation, so if you have 
    2323<app>setuptools</app> installed the package will be installed as an egg 
    24 (and you can use <filename>easy_install</filename> for installation).</par> 
     24(and you can use <filename>easy_install</filename> for installation).</p> 
    2525 
    26 <par>If you have difficulties installing this software, send a problem report 
    27 to Walter Dörwald (<email>walter@livinglogic.de</email>).</par> 
     26<p>If you have difficulties installing this software, send a problem report 
     27to Walter Dörwald (<email>walter@livinglogic.de</email>).</p> 
    2828</section> 
    2929 
    3030 
    31 <section><title>Configuration</title> 
    32 <par>In addition to the environment variables <lit>CC</lit> and <lit>CXX</lit> 
     31<section><h>Configuration</h> 
     32<p>In addition to the environment variables <lit>CC</lit> and <lit>CXX</lit> 
    3333(which are used by Python's Makefile itself for the C and C++ compiler), you 
    3434can set the environment variable <lit>COV</lit> to point to the coverage 
    35 program (the default is <lit>gcov</lit>).</par> 
     35program (the default is <lit>gcov</lit>).</p> 
    3636 
    37 <par>You must create a directory <dirname>run</dirname> in your home directory, 
    38 where <module>pycoco</module> will put its pid file (log files will be put into 
    39 <dirname>~/log</dirname>, but this directory will be created automatically).</par> 
     37<p>You must create a directory <dirname>run</dirname> in your home directory, 
     38where <mod>pycoco</mod> will put its pid file (log files will be put into 
     39<dirname>~/log</dirname>, but this directory will be created automatically).</p> 
    4040</section> 
  • NEWS.xml

    r31 r36  
    1 <section><title>Changes in 0.2 (released 10/19/2006)</title> 
     1<section><h>Changes in 0.3 (released 01/07/2008)</h> 
    22 
    3 <par>The list of files can now be sorted by clicking on the appropriate buttons 
    4 in the table headers.</par> 
     3<p>Changed docstring format.</p> 
     4 
     5<p>UPdated to use &xist; 3.0.</p> 
    56 
    67</section> 
    78 
    89 
    9 <section><title>Changes in 0.1.1 (released 10/02/2006)</title> 
     10<section><h>Changes in 0.2 (released 10/19/2006)</h> 
    1011 
    11 <par>Added a missing import to the XIST namespace.</par> 
     12<p>The list of files can now be sorted by clicking on the appropriate buttons 
     13in the table headers.</p> 
    1214 
    1315</section> 
    1416 
    1517 
    16 <section><title>Changes in 0.1 (released 10/02/2006)</title> 
     18<section><h>Changes in 0.1.1 (released 10/02/2006)</h> 
    1719 
    18 <par>Initial release.</par> 
     20<p>Added a missing import to the XIST namespace.</p> 
    1921 
    2022</section> 
     23 
     24 
     25<section><h>Changes in 0.1 (released 10/02/2006)</h> 
     26 
     27<p>Initial release.</p> 
     28 
     29</section> 
  • setup.py

    r35 r36  
    1818report how often each source code line in each C or Python file has been 
    1919executed by the test suite. 
     20 
     21New in version 0.2.1 
     22-------------------- 
     23 
     24The format of the docstrings has been updated. 
    2025 
    2126New in version 0.2 
     
    4954args = dict( 
    5055    name="pycoco", 
    51     version="0.2", 
     56    version="0.3", 
    5257    description="Python code coverage", 
    5358    long_description=DESCRIPTION, 
  • src/pycoco/xmlns.py

    r30 r36  
    1212 
    1313 
     14xmlns = "http://xmlns.python.org/coverage" 
     15 
     16 
    1417class page(xsc.Element): 
     18    xmlns = xmlns 
     19 
    1520    class Attrs(xsc.Element.Attrs): 
    1621        class title(xsc.TextAttr): required = True 
     
    5762 
    5863class crumb(xsc.Element): 
     64    xmlns = xmlns 
     65 
    5966    class Attrs(xsc.Element.Attrs): 
    6067        class href(xsc.URLAttr): pass 
     
    7683 
    7784class filelist(xsc.Element): 
     85    xmlns = xmlns 
     86 
    7887    class Attrs(xsc.Element.Attrs): 
    7988        class timestamp(xsc.TextAttr): pass 
    8089        class revision(xsc.TextAttr): pass 
     90 
    8191    def convert(self, converter): 
    8292        now = datetime.datetime.now() 
     
    108118 
    109119class fileitem(xsc.Element): 
     120    xmlns = xmlns 
     121 
    110122    class Attrs(xsc.Element.Attrs): 
    111123        class name(xsc.TextAttr): required = True 
     
    176188 
    177189class filecontent(xsc.Element): 
     190    xmlns = xmlns 
     191 
    178192    class Attrs(xsc.Element.Attrs): 
    179193        class name(xsc.TextAttr): required = True 
     
    200214 
    201215class fileline(xsc.Element): 
     216    xmlns = xmlns 
     217 
    202218    class Attrs(xsc.Element.Attrs): 
    203219        class lineno(xsc.IntAttr): required = True 
     
    224240        ) 
    225241        return e.convert(converter) 
    226  
    227  
    228 class __ns__(xsc.Namespace): 
    229     xmlname = "cov" 
    230     xmlurl = "http://xmlns.python.org/coverage" 
    231 __ns__.makemod(vars())