~crunch.io/ubuntu/precise/codespeak-lib/unstable

« back to all changes in this revision

Viewing changes to doc/bin.html

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-08-01 16:24:01 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100801162401-g37v49d1p148alpm
Tags: 1.3.3-1
* New upstream release.
* Bump Standards-Version to 3.9.1.
* Fix typo in py.test manpage.
* Prefer Breaks: over Conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
 
<html>
3
 
  <head>
4
 
    <title>bin</title>
5
 
    <meta content="text/html;charset=ISO-8859-1" name="Content-Type"/>
6
 
    <link href="style.css" media="screen" rel="stylesheet" type="text/css"/></head>
7
 
  <body>
8
 
    <div id="navspace">
9
 
      <div><a href="http://pylib.org"><img alt="py lib" height="57" id="pyimg" src="http://codespeak.net/img/pylib.png" width="77"/></a></div>
10
 
      <div id="menubar">
11
 
        <div>
12
 
          <div><a class="menu" href="announce/release-1.2.1.html">1.2.1 ANN</a></div></div>
13
 
        <div>
14
 
          <div><a class="menu" href="install.html">INSTALL</a></div></div>
15
 
        <div>
16
 
          <div><a class="menu" href="contact.html">CONTACT</a></div></div>
17
 
        <div>
18
 
          <div><a class="menu" href="changelog.html">CHANGELOG</a></div></div>
19
 
        <div>
20
 
          <div><a class="menu" href="faq.html">FAQ</a></div></div>
21
 
        <div>
22
 
          <div>
23
 
            <h3>py.test:</h3>
24
 
            <div><a class="menu" href="test/index.html">Index</a></div>
25
 
            <div><a class="menu" href="test/quickstart.html">Quickstart</a></div>
26
 
            <div><a class="menu" href="test/features.html">Features</a></div>
27
 
            <div><a class="menu" href="test/plugin/index.html">Plugins</a></div>
28
 
            <div><a class="menu" href="test/funcargs.html">Funcargs</a></div>
29
 
            <div><a class="menu" href="test/customize.html">Customize</a></div>
30
 
            <div><a class="menu" href="test/talks.html">Tutorials</a></div></div></div>
31
 
        <div>
32
 
          <div>
33
 
            <h3>supporting APIs:</h3>
34
 
            <div><a class="menu" href="index.html">Index</a></div>
35
 
            <div><a class="menu" href="path.html">py.path</a></div>
36
 
            <div><a class="menu" href="code.html">py.code</a></div></div></div></div></div>
37
 
    <div id="contentspace">
38
 
<div class="document" id="pylib-scripts">
39
 
<h1 class="title">pylib scripts</h1>
40
 
 
41
 
<p>The pylib installs several scripts to support testing and (python)
42
 
development.  If working from a checkout you may also add <tt class="docutils literal">bin</tt> to
43
 
your <tt class="docutils literal">PATH</tt> environment variable which makes the scripts available on
44
 
your shell prompt.</p>
45
 
<div class="section" id="py-test-and-py-test-version">
46
 
<h1><tt class="docutils literal">py.test</tt> and <tt class="docutils literal"><span class="pre">py.test-$VERSION</span></tt></h1>
47
 
<p>The <tt class="docutils literal">py.test</tt> executable is the main tool that the py lib offers;
48
 
in fact most code in the py lib is geared towards supporting the
49
 
testing process.  See the <a class="reference external" href="test/index.html">py.test documentation</a> for extensive
50
 
documentation.  The <tt class="docutils literal"><span class="pre">py.test-$VERSION</span></tt> is the same script with
51
 
an interpreter specific suffix appended to make
52
 
several versions of py.test for using specific interpreters
53
 
accessible:</p>
54
 
<ul class="simple">
55
 
<li>CPython2.4: py.test-2.4</li>
56
 
<li>CPython2.5: py.test-2.5</li>
57
 
<li>...</li>
58
 
<li>CPython3.1: py.test-3.1</li>
59
 
<li>Jython-2.5.1: py.test-jython</li>
60
 
<li>pypy-$SUFFIX: py.test-pypy-$SUFFIX</li>
61
 
</ul>
62
 
</div>
63
 
<div class="section" id="py-which-and-py-which-version">
64
 
<h1><tt class="docutils literal">py.which</tt> and <tt class="docutils literal"><span class="pre">py.which-$VERSION</span></tt></h1>
65
 
<p>Usage: <tt class="docutils literal">py.which modulename</tt></p>
66
 
<p>Print the <tt class="docutils literal">__file__</tt> of the module that is imported via <tt class="docutils literal">import modulename</tt>.
67
 
The version-suffix is the same as with <tt class="docutils literal">py.test</tt> above.</p>
68
 
</div>
69
 
<div class="section" id="py-cleanup">
70
 
<h1><tt class="docutils literal">py.cleanup</tt></h1>
71
 
<p>Usage: <tt class="docutils literal">py.cleanup [PATH]</tt></p>
72
 
<p>Delete pyc file recursively, starting from <tt class="docutils literal">PATH</tt> (which defaults to the
73
 
current working directory). Don't follow links and don't recurse into
74
 
directories with a &quot;.&quot;.</p>
75
 
</div>
76
 
<div class="section" id="py-countloc">
77
 
<h1><tt class="docutils literal">py.countloc</tt></h1>
78
 
<p>Usage: <tt class="docutils literal">py.countloc [PATHS]</tt></p>
79
 
<p>Count (non-empty) lines of python code and number of python files recursively
80
 
starting from a <tt class="docutils literal">PATHS</tt> given on the command line (starting from the current
81
 
working directory). Distinguish between test files and normal ones and report
82
 
them separately.</p>
83
 
</div>
84
 
<div class="section" id="py-lookup">
85
 
<h1><tt class="docutils literal">py.lookup</tt></h1>
86
 
<p>Usage: <tt class="docutils literal">py.lookup SEARCH_STRING [options]</tt></p>
87
 
<p>Looks recursively at Python files for a <tt class="docutils literal">SEARCH_STRING</tt>, starting from the
88
 
present working directory. Prints the line, with the filename and line-number
89
 
prepended.</p>
90
 
</div>
91
 
</div>
92
 
</div>
93
 
<script type="text/javascript">
94
 
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
95
 
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
96
 
</script>
97
 
<script type="text/javascript">
98
 
try {
99
 
var pageTracker = _gat._getTracker("UA-7597274-3");
100
 
pageTracker._trackPageview();
101
 
} catch(err) {}</script>
102
 
</body></html>
 
 
b'\\ No newline at end of file'