<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Project><name>pythoscope</name>
<shortdesc>unit test generator for Python</shortdesc>
<description>Installation
============

Easiest way to get Pythoscope is via setuptools::

  $ easy_install pythoscope

You can also download a source package from
http://pythoscope.org/local--files/download/pythoscope-0.4.2.tar.gz
or get a copy of a development branch using `bazaar &lt;http://bazaar-vcs.org/&gt;`_::

  $ bzr branch lp:pythoscope

To install the package from the source directory do::

  $ python setup.py install

You don't need setuptools for this to work, a bare Python will do just fine.

However, if you *do* have setuptools installed, you may also consider running
the whole test suite of Pythoscope::

  $ python setup.py test

Usage
=====

You can use the tool through a single **pythoscope** command. To prepare
your project for use with Pythoscope, type::

  $ pythoscope --init path/to/your/project/

It's only doing static analysis, and doesn't import your modules or
execute your code in any way, so you're perfectly safe to run it on
anything you want. After that, a directory named **.pythoscope** will be
created in the current directory. To generate test stubs based on your
project, select files you want to generate tests for::

  $ pythoscope  path/to/your/project/specific/file.py  path/to/your/project/other/*.py

Test files will be saved to your test directory, if you have one, or
into a new **tests/** directory otherwise. Test cases are aggregated
into TestCase classes. Currently each production class and each
production function gets its own TestCase class.

Some of the classes and functions are ignored by the generator - all
which name begins with an underscore, exception classes, and some
others.

Generator itself is configurable to some extent, see::

  $ pythoscope --help

for more information on available options.

Editor Integration
==================

Emacs
-----

We put out an elisp script that integrates Pythoscope into Emacs. The file is in the the misc/ directory of the source distribution. You can also `look at the file on Launchpad &lt;http://bazaar.launchpad.net/~pythoscope-developers/pythoscope/trunk/annotate/head:/misc/pythoscope.el&gt;`_. Usage and installation instructions are in the comments at the top of the file.

Vim
---

There is interest in Vim integration and someone is working on it but we have nothing for you right now.

Leo
---

There was much discussion of Leo on `the mail list editor integration thread &lt;http://groups.google.com/group/pythoscope/browse_thread/thread/ca85a4c506bde99&gt;`_.

License
=======

All Pythoscope source code is licensed under an MIT license (see LICENSE file).
All files under lib2to3/ are licensed under PSF license.

Changelog
=========

0.4.2
-----

* Removed `dependency on fixture module &lt;https://blueprints.launchpad.net/pythoscope/+spec/stop-using-fixture&gt;`_.
* Fixed test generation bug related to function definitions with varargs (`#440773 &lt;https://bugs.launchpad.net/bugs/440773&gt;`_).
* Dynamic inspector can now `handle all types of exceptions &lt;https://blueprints.launchpad.net/pythoscope/+spec/better-exception-handling&gt;`_ (including string exceptions).
* Frequently Asked Questions document has been created, also `available online &lt;http://pythoscope.org/faq&gt;`_.
* Added `support for Pythons 2.3 &lt;https://blueprints.launchpad.net/pythoscope/+spec/support-python2.3&gt;`_ `through 2.6 &lt;https://blueprints.launchpad.net/pythoscope/+spec/support-python2.6&gt;`_.
* New imports added by Pythoscope are now placed after existing ones, so they don't cause a syntax error when __future__ imports were used (`#373978 &lt;https://bugs.launchpad.net/bugs/373978&gt;`_).
* Fixed inspection bug related to classes deriving from namedtuple instances (`#460715 &lt;https://bugs.launchpad.net/pythoscope/+bug/460715&gt;`_).
* `Setuptools is no longer required for installation &lt;https://blueprints.launchpad.net/pythoscope/+spec/dont-require-setuptools-for-installation&gt;`_.

0.4.1
-----

* Greatly improved `information storage performance &lt;https://blueprints.launchpad.net/pythoscope/+spec/improve-information-storage-performance&gt;`_.
* Added Pythoscope module for Emacs to the misc/ directory in the source tree.
* Unittests can now be used as points of entry (`#275059 &lt;https://bugs.launchpad.net/bugs/275059&gt;`_).
* Pythoscope now ignores source control files (`#284568 &lt;https://bugs.launchpad.net/bugs/284568&gt;`_).
* Static inspection happens on --init, as it should be (`#325928 &lt;https://bugs.launchpad.net/bugs/325928&gt;`_).
* Ported itertive pattern matcher for lib2to3 from Python trunk (`#304541 &lt;https://bugs.launchpad.net/bugs/304541&gt;`_).
* Fixed test generation bug related to nested function arguments (`#344220 &lt;https://bugs.launchpad.net/bugs/344220&gt;`_).
* Fixed point of entry cleanup bug (`#324522 &lt;https://bugs.launchpad.net/bugs/324522&gt;`_).
* Fixed some more Windows-specific bugs (`#348136 &lt;https://bugs.launchpad.net/bugs/348136&gt;`_).

0.4
---

* Stopped `using pickle for object serialization &lt;https://blueprints.launchpad.net/pythoscope/+spec/dont-use-pickle-for-object-serialization&gt;`_ and implemented our own mechanism that carefully captures changing state of objects during dynamic inspection.
* Implemented `preserve objects identity &lt;https://blueprints.launchpad.net/pythoscope/+spec/preserve-objects-identity&gt;`_ blueprint.
* Fixed bug related to multiple generator calls (`#295340 &lt;https://bugs.launchpad.net/pythoscope/+bug/295340&gt;`_).
* Made handling of special method names (like __init__ or __eq__) consistent with handling of normal method names.
* Made `test stubs more useful &lt;https://blueprints.launchpad.net/pythoscope/+spec/better-test-stubs&gt;`_.

0.3.2
-----

* Made Pythoscope `more verbose &lt;https://blueprints.launchpad.net/pythoscope/+spec/more-verbose-output&gt;`_.
* Added `support for user-defined exceptions &lt;https://blueprints.launchpad.net/pythoscope/+spec/user-defined-exceptions&gt;`_.
* Fixed unicode handling bug (`#284585 &lt;https://bugs.launchpad.net/bugs/284585&gt;`_).
* Improved performance of the internal information storage.

0.3.1
-----

* Added implementation of samefile function for Windows (`#271882 &lt;https://bugs.launchpad.net/pythoscope/+bug/271882&gt;`_).
* Fixed wrong indentation bug (`#271892 &lt;https://bugs.launchpad.net/pythoscope/+bug/271892&gt;`_).
* Made lib2to3.pgen2.parse.ParseError pickable (`#271904 &lt;https://bugs.launchpad.net/pythoscope/+bug/271904&gt;`_).
* Added `support for Python generators &lt;https://blueprints.launchpad.net/pythoscope/+spec/handle-python-generators&gt;`_.
* Fixed static inspection of functions having attributes with default values (`#275459 &lt;https://bugs.launchpad.net/pythoscope/+bug/275459&gt;`_).

0.3
---

* Fixed generate bug for test modules (`#264449 &lt;https://bugs.launchpad.net/pythoscope/+bug/264449&gt;`_).
* .pythoscope became a directory.
* Introduced --init option for initializing .pythoscope/ directory.
* Added a notion of points of entry introducing dynamic analysis.
* Pythoscope can now generate assert_equal and assert_raises type of assertions.
* Implemented `no more inspect command blueprint &lt;https://blueprints.launchpad.net/pythoscope/+spec/remove-inspect-command&gt;`_.
* Changed the default test directory from pythoscope-tests/ to tests/.
* Added a tutorial to the README file.

0.2.2
-----

* Fixed the inner classes bug (`#260924 &lt;https://bugs.launchpad.net/pythoscope/+bug/260924&gt;`_).
* Collector appends new data to .pythoscope file instead of overwriting it.
* Test modules are being analyzed as well.
* Using lib2to3 for static code analysis instead of stdlib's compiler module.
* Generator can append test cases to existing test modules. Preserves comments and original whitespace.
* Cheetah is no longer a dependency.
* Renamed 'collect' command to 'inspect'.

0.2.1
-----

Contains a packaging bug fix, which prevented users from using the tests
cases generator and running internal pythoscope tests.

0.2
---

First release, featuring static code analysis and generation of test
stubs.</description>
<homepage rdf:resource="http://pythoscope.org" />
<maintainer><foaf:Person><foaf:name>Michal Kwiatkowski</foaf:name>
<foaf:mbox_sha1sum>860d9cfd476dace67cfae6d593278072a96e2387</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>0.4.2</revision></Version></release>
</Project></rdf:RDF>