2007-01-24 22:24:01 +08:00
|
|
|
"""\
|
|
|
|
the py lib is a development support library featuring
|
|
|
|
py.test, an interactive testing tool which supports
|
|
|
|
unit-testing with practically no boilerplate.
|
|
|
|
"""
|
|
|
|
from initpkg import initpkg
|
|
|
|
|
2007-02-11 19:53:42 +08:00
|
|
|
version = "0.9.0-beta"
|
2007-01-24 22:24:01 +08:00
|
|
|
|
|
|
|
initpkg(__name__,
|
|
|
|
description = "py.test and the py lib",
|
2007-02-11 19:53:42 +08:00
|
|
|
revision = int('$LastChangedRevision: 38452 $'.split(':')[1][:-1]),
|
|
|
|
lastchangedate = '$LastChangedDate: 2007-02-11 12:53:42 +0100 (Sun, 11 Feb 2007) $',
|
2007-01-24 22:24:01 +08:00
|
|
|
version = version,
|
|
|
|
url = "http://codespeak.net/py",
|
|
|
|
download_url = "http://codespeak.net/download/py/%s.tar.gz" %(version,),
|
|
|
|
license = "MIT license",
|
|
|
|
platforms = ['unix', 'linux', 'cygwin'],
|
2007-02-11 19:53:42 +08:00
|
|
|
author = "holger krekel, Carl Friedrich Bolz, Guido Wesdorp, Maciej Fijalkowski, Armin Rigo & others",
|
2007-01-24 22:24:01 +08:00
|
|
|
author_email = "py-dev@codespeak.net",
|
|
|
|
long_description = globals()['__doc__'],
|
|
|
|
|
2007-02-11 19:53:42 +08:00
|
|
|
# EXPORTED API
|
2007-01-24 22:24:01 +08:00
|
|
|
exportdefs = {
|
|
|
|
# helpers for use from test functions or collectors
|
2007-02-04 22:27:10 +08:00
|
|
|
'test.__doc__' : ('./test/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'test.raises' : ('./test/raises.py', 'raises'),
|
|
|
|
'test.deprecated_call' : ('./test/deprecate.py', 'deprecated_call'),
|
|
|
|
'test.skip' : ('./test/item.py', 'skip'),
|
|
|
|
'test.fail' : ('./test/item.py', 'fail'),
|
|
|
|
'test.exit' : ('./test/session.py', 'exit'),
|
|
|
|
|
|
|
|
# configuration/initialization related test api
|
2007-01-25 00:46:46 +08:00
|
|
|
'test.config' : ('./test/config.py', 'config_per_process'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'test.ensuretemp' : ('./test/config.py', 'ensuretemp'),
|
|
|
|
'test.cmdline.main' : ('./test/cmdline.py', 'main'),
|
|
|
|
|
|
|
|
# for customization of collecting/running tests
|
|
|
|
'test.collect.Collector' : ('./test/collect.py', 'Collector'),
|
|
|
|
'test.collect.Directory' : ('./test/collect.py', 'Directory'),
|
|
|
|
'test.collect.Module' : ('./test/collect.py', 'Module'),
|
|
|
|
'test.collect.DoctestFile' : ('./test/collect.py', 'DoctestFile'),
|
|
|
|
'test.collect.Class' : ('./test/collect.py', 'Class'),
|
|
|
|
'test.collect.Instance' : ('./test/collect.py', 'Instance'),
|
|
|
|
'test.collect.Generator' : ('./test/collect.py', 'Generator'),
|
|
|
|
'test.Item' : ('./test/item.py', 'Item'),
|
|
|
|
'test.Function' : ('./test/item.py', 'Function'),
|
|
|
|
|
|
|
|
# thread related API (still in early design phase)
|
|
|
|
'_thread.WorkerPool' : ('./thread/pool.py', 'WorkerPool'),
|
|
|
|
'_thread.NamedThreadPool' : ('./thread/pool.py', 'NamedThreadPool'),
|
|
|
|
'_thread.ThreadOut' : ('./thread/io.py', 'ThreadOut'),
|
|
|
|
|
|
|
|
# hook into the top-level standard library
|
|
|
|
'std' : ('./misc/std.py', 'std'),
|
|
|
|
|
2007-02-04 22:27:10 +08:00
|
|
|
'process.__doc__' : ('./process/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'process.cmdexec' : ('./process/cmdexec.py', 'cmdexec'),
|
|
|
|
|
2007-02-04 22:27:10 +08:00
|
|
|
# path implementation
|
|
|
|
'path.__doc__' : ('./path/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'path.svnwc' : ('./path/svn/wccommand.py', 'SvnWCCommandPath'),
|
|
|
|
'path.svnurl' : ('./path/svn/urlcommand.py', 'SvnCommandPath'),
|
|
|
|
'path.local' : ('./path/local/local.py', 'LocalPath'),
|
|
|
|
|
|
|
|
# some nice slightly magic APIs
|
2007-02-04 22:27:10 +08:00
|
|
|
'magic.__doc__' : ('./magic/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'magic.greenlet' : ('./magic/greenlet.py', 'greenlet'),
|
|
|
|
'magic.invoke' : ('./magic/invoke.py', 'invoke'),
|
|
|
|
'magic.revoke' : ('./magic/invoke.py', 'revoke'),
|
|
|
|
'magic.patch' : ('./magic/patch.py', 'patch'),
|
|
|
|
'magic.revert' : ('./magic/patch.py', 'revert'),
|
|
|
|
'magic.autopath' : ('./magic/autopath.py', 'autopath'),
|
|
|
|
'magic.AssertionError' : ('./magic/assertion.py', 'AssertionError'),
|
|
|
|
|
|
|
|
# python inspection/code-generation API
|
2007-02-04 22:27:10 +08:00
|
|
|
'code.__doc__' : ('./code/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'code.compile' : ('./code/source.py', 'compile_'),
|
|
|
|
'code.Source' : ('./code/source.py', 'Source'),
|
|
|
|
'code.Code' : ('./code/code.py', 'Code'),
|
|
|
|
'code.Frame' : ('./code/frame.py', 'Frame'),
|
|
|
|
'code.ExceptionInfo' : ('./code/excinfo.py', 'ExceptionInfo'),
|
|
|
|
'code.Traceback' : ('./code/traceback2.py', 'Traceback'),
|
|
|
|
|
|
|
|
# backports and additions of builtins
|
2007-02-04 22:27:10 +08:00
|
|
|
'builtin.__doc__' : ('./builtin/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'builtin.enumerate' : ('./builtin/enumerate.py', 'enumerate'),
|
|
|
|
'builtin.reversed' : ('./builtin/reversed.py', 'reversed'),
|
|
|
|
'builtin.sorted' : ('./builtin/sorted.py', 'sorted'),
|
|
|
|
'builtin.BaseException' : ('./builtin/exception.py', 'BaseException'),
|
|
|
|
'builtin.set' : ('./builtin/set.py', 'set'),
|
|
|
|
'builtin.frozenset' : ('./builtin/set.py', 'frozenset'),
|
|
|
|
|
|
|
|
# gateways into remote contexts
|
2007-02-04 22:27:10 +08:00
|
|
|
'execnet.__doc__' : ('./execnet/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'execnet.SocketGateway' : ('./execnet/register.py', 'SocketGateway'),
|
|
|
|
'execnet.PopenGateway' : ('./execnet/register.py', 'PopenGateway'),
|
|
|
|
'execnet.SshGateway' : ('./execnet/register.py', 'SshGateway'),
|
|
|
|
|
2007-01-25 00:46:46 +08:00
|
|
|
# execnet scripts
|
|
|
|
'execnet.RSync' : ('./execnet/rsync.py', 'RSync'),
|
|
|
|
|
2007-01-24 22:24:01 +08:00
|
|
|
# input-output helping
|
2007-02-04 22:27:10 +08:00
|
|
|
'io.__doc__' : ('./io/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'io.dupfile' : ('./io/dupfile.py', 'dupfile'),
|
2007-02-01 23:20:39 +08:00
|
|
|
'io.FDCapture' : ('./io/fdcapture.py', 'FDCapture'),
|
|
|
|
'io.StdCapture' : ('./io/stdcapture.py', 'StdCapture'),
|
|
|
|
'io.StdCaptureFD' : ('./io/stdcapture.py', 'StdCaptureFD'),
|
2007-01-24 22:24:01 +08:00
|
|
|
|
|
|
|
# error module, defining all errno's as Classes
|
|
|
|
'error' : ('./misc/error.py', 'error'),
|
|
|
|
|
|
|
|
# small and mean xml/html generation
|
2007-02-04 22:27:10 +08:00
|
|
|
'xml.__doc__' : ('./xmlobj/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'xml.html' : ('./xmlobj/html.py', 'html'),
|
|
|
|
'xml.Tag' : ('./xmlobj/xml.py', 'Tag'),
|
|
|
|
'xml.raw' : ('./xmlobj/xml.py', 'raw'),
|
|
|
|
'xml.Namespace' : ('./xmlobj/xml.py', 'Namespace'),
|
|
|
|
'xml.escape' : ('./xmlobj/misc.py', 'escape'),
|
|
|
|
|
|
|
|
# logging API ('producers' and 'consumers' connected via keywords)
|
2007-02-04 22:27:10 +08:00
|
|
|
'log.__doc__' : ('./log/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'log.Producer' : ('./log/producer.py', 'Producer'),
|
|
|
|
'log.default' : ('./log/producer.py', 'default'),
|
|
|
|
'log._getstate' : ('./log/producer.py', '_getstate'),
|
|
|
|
'log._setstate' : ('./log/producer.py', '_setstate'),
|
|
|
|
'log.setconsumer' : ('./log/consumer.py', 'setconsumer'),
|
|
|
|
'log.Path' : ('./log/consumer.py', 'Path'),
|
|
|
|
'log.STDOUT' : ('./log/consumer.py', 'STDOUT'),
|
|
|
|
'log.STDERR' : ('./log/consumer.py', 'STDERR'),
|
|
|
|
'log.Syslog' : ('./log/consumer.py', 'Syslog'),
|
|
|
|
'log.get' : ('./log/logger.py', 'get'),
|
|
|
|
|
|
|
|
# compatibility modules (taken from 2.4.4)
|
2007-02-04 22:27:10 +08:00
|
|
|
'compat.__doc__' : ('./compat/__init__.py', '__doc__'),
|
2007-01-24 22:24:01 +08:00
|
|
|
'compat.doctest' : ('./compat/doctest.py', '*'),
|
|
|
|
'compat.optparse' : ('./compat/optparse.py', '*'),
|
|
|
|
'compat.textwrap' : ('./compat/textwrap.py', '*'),
|
|
|
|
'compat.subprocess' : ('./compat/subprocess.py', '*'),
|
|
|
|
})
|
2007-02-04 22:27:10 +08:00
|
|
|
|