Commit e1e1caaf authored by Chris Lamb's avatar Chris Lamb 💬 Committed by Sebastian Ramacher

Imported Debian patch 1.0.1-1

parents 84da13b5 8cad8fdf
Metadata-Version: 1.0
Name: py
Version: 0.9.1
Summary: py lib: agile development and test support library
Home-page: http://codespeak.net/py
Author: holger krekel, Carl Friedrich Bolz, Guido Wesdorp, Maciej Fijalkowski, Armin Rigo & others
Author-email: py-dev@codespeak.net
Version: 1.0.1
Summary: py.test and pylib: advanced testing tool and networking lib
Home-page: http://pylib.org
Author: holger krekel, Guido Wesdorp, Carl Friedrich Bolz, Armin Rigo, Maciej Fijalkowski & others
Author-email: holger at merlinux.eu, py-dev at codespeak.net
License: MIT license
Download-URL: XXX
Description:
the py lib is a development support library featuring
py.test, ad-hoc distributed execution, micro-threads
and svn abstractions.
advanced testing and development support library:
- `py.test`_: cross-project testing tool with many advanced features
- `py.execnet`_: ad-hoc code distribution to SSH, Socket and local sub processes
- `py.path`_: path abstractions over local and subversion files
- `py.code`_: dynamic code compile and traceback printing support
Compatibility: Linux, Win32, OSX, Python versions 2.3-2.6.
For questions please check out http://pylib.org/contact.html
.. _`py.test`: http://pylib.org/test.html
.. _`py.execnet`: http://pylib.org/execnet.html
.. _`py.path`: http://pylib.org/path.html
.. _`py.code`: http://pylib.org/code.html
Platform: unix
Platform: linux
Platform: osx
Platform: cygwin
Platform: win32
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Distributed Computing
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python
The py lib is a Python development support library featuring
the following tools and modules:
* py.test: tool for distributed automated testing
* py.execnet: ad-hoc distributed execution
* py.code: dynamic code generation and introspection
* py.path: uniform local and svn path objects
It includes code and contributions from several people,
listed in the LICENSE file.
For questions, please see py/doc/index.txt, refer to the website
http://pylib.org or come to the #pylib IRC freenode channel or subscribe to
http://codespeak.net/mailman/listinfo/py-dev .
have fun,
holger krekel, holger at merlinux eu
codespeak-lib (1.0.1-1) unstable; urgency=low
* New upstream release. (Closes: #541437)
* Vastly simplify packaging:
- Package is now architecture independent
- Move to debhelper 7
- Drop entire patch series; applied upstream or not applicable to this
version.
- Move Docbook manpages under debian/manpages/
- Drop ancient Replaces, etc.
* Add manpages for py.which and py.svnwcrevert.
* Update package short and long descriptions.
* New maintainer email address.
* Bump Standards-Version to 3.8.3.
* Fix new upstream tarball location in debian/watch.
* Add Vcs-{Git,Browser} headers to debian/control.
-- Chris Lamb <lamby@debian.org> Tue, 25 Aug 2009 02:57:21 +0100
codespeak-lib (0.9.1-3) unstable; urgency=low
* Add patch to fix infinitely looping Subversion tests under Subversion
......
Source: codespeak-lib
Section: python
Priority: optional
Maintainer: Chris Lamb <chris@chris-lamb.co.uk>
Build-Depends: python-all-dev (>= 2.3.5-10), python-central (>= 0.5), debhelper (>= 5.0.37.1), quilt, python-docutils, xsltproc, docbook-xsl, subversion, openssh-client, texlive-extra-utils
XS-Python-Version: all
Standards-Version: 3.8.0
Maintainer: Chris Lamb <lamby@debian.org>
Build-Depends: debhelper (>= 7.0.50~), python-support, python-setuptools, xsltproc, docbook-xsl
Standards-Version: 3.8.3
Homepage: http://codespeak.net/py/
Vcs-Git: git://git.chris-lamb.co.uk/debian/pkg-codespeak-lib.git
Vcs-Browser: http://git.chris-lamb.co.uk/?p=debian/pkg-codespeak-lib.git
Package: python-codespeak-lib
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Conflicts: python-pylib, python2.3-codespeak-lib, python2.4-codespeak-lib
Replaces: python-pylib, python2.3-codespeak-lib, python2.4-codespeak-lib
Recommends: python-docutils
Suggests: screen, rsync, graphviz, texlive, ghostscript, ps2eps, subversion
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Provides: ${python:Provides}
XB-Python-Version: ${python:Versions}
Description: The pylib library containing py.test, greenlets and other niceties
Suggests: screen, rsync, graphviz, texlive, ghostscript, ps2eps, subversion
Description: Advanced Python testing tool and networking lib
The Codespeak py lib aims at supporting a decent Python development process
addressing deployment, versioning, testing and documentation perspectives. It
includes:
.
* py.test, whose focus is to get a test environment that's easier to use than
the existing ones
* py.xml, a fast and easy way to generate xml/html documents
* py.magic.greenlet, lightweight in-process concurrent programming
* py.execnet, ad-hoc code distribution to SSH, Socket and local sub-processes
* py.path, path abstractions over local and subversion files
* .. and many more features.
* py.test: cross-project testing tool with many advanced features
* py.execnet: ad-hoc code distribution to SSH, Socket and local sub processes
* py.path: path abstractions over local and Subversion files
* py.code: dynamic code compile and traceback printing support
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!--
Process this file with an XSLT processor: `xsltproc \
-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
manpages/docbook.xsl manpage.dbk'. A manual page
<package>.<section> will be generated. You may view the
manual page with: nroff -man <package>.<section> | less'. A
typical entry in a Makefile or Makefile.am is:
DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
manpages/docbook.xsl
XP=xsltproc -''-nonet
manpage.1: manpage.dbk
$(XP) $(DB2MAN) $<
The xsltproc binary is found in the xsltproc package. The
XSL files are in docbook-xsl. Please remember that if you
create the nroff version in one of the debian/rules file
targets (such as build), you will need to include xsltproc
and docbook-xsl in your Build-Depends control field.
-->
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "<firstname>Chris</firstname>">
<!ENTITY dhsurname "<surname>Lamb</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>Tue 25 August 2009</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
<!ENTITY dhemail "<email>lamby@debian.org</email>">
<!ENTITY dhusername "Chris Lamb">
<!ENTITY dhucpackage "<refentrytitle>python-codespeak-lib</refentrytitle>">
<!ENTITY dhpackage "py.svnwcrevert">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2009</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>pylib utility to reset a Subversion working tree</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option><replaceable>WCPATH</replaceable></option></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>This manual page documents briefly the
<command>&dhpackage;</command> command.</para>
<para>This manual page was written for the &debian; distribution
because the original program does not have a manual page.
</para>
<para>
<command>&dhpackage;</command> is a program that returns the
Subversion working copy in WCPATH a state as clean as a fresh
checkout.
</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the &gnu; General Public License, Version 2 any
later version published by the Free Software Foundation.
</para>
<para>
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL.
</para>
</refsect1>
</refentry>
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!--
Process this file with an XSLT processor: `xsltproc \
-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
manpages/docbook.xsl manpage.dbk'. A manual page
<package>.<section> will be generated. You may view the
manual page with: nroff -man <package>.<section> | less'. A
typical entry in a Makefile or Makefile.am is:
DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
manpages/docbook.xsl
XP=xsltproc -''-nonet
manpage.1: manpage.dbk
$(XP) $(DB2MAN) $<
The xsltproc binary is found in the xsltproc package. The
XSL files are in docbook-xsl. Please remember that if you
create the nroff version in one of the debian/rules file
targets (such as build), you will need to include xsltproc
and docbook-xsl in your Build-Depends control field.
-->
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "<firstname>Chris</firstname>">
<!ENTITY dhsurname "<surname>Lamb</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>Tue 25 August 2009</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
<!ENTITY dhemail "<email>lamby@debian.org</email>">
<!ENTITY dhusername "Chris Lamb">
<!ENTITY dhucpackage "<refentrytitle>python-codespeak-lib</refentrytitle>">
<!ENTITY dhpackage "py.which">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2009</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>pylib module locator</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option><replaceable>module_name</replaceable></option></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>This manual page documents briefly the
<command>&dhpackage;</command> command.</para>
<para>This manual page was written for the &debian; distribution
because the original program does not have a manual page.
</para>
<para><command>&dhpackage;</command> is a program that returns the
filename associated with the specified with specified Python module.
</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the &gnu; General Public License, Version 2 any
later version published by the Free Software Foundation.
</para>
<para>
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL.
</para>
</refsect1>
</refentry>
01-fix-scripts.diff
findpy not available in /usr/bin + use /usr/bin/python. Patch by <alf@merlin>.
--- codespeak-lib-0.7-svn20061228.orig/py/misc/cmdline/countloc.py 2006-12-28 14:14:32.000000000 +0100
+++ codespeak-lib-0.7-svn20061228/py/misc/cmdline/countloc.py 2007-01-05 17:23:04.000000000 +0100
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
# hands on script to compute the non-empty Lines of Code
# for tests and non-test code
02-py-test-path.diff
Workaround Python module path conflict when pypy-dev is
installed. See #463568. Patch by Chris Lamb <chris@chris-lamb.co.uk>.
diff -urNad py-0.9.1~/py/bin/py.test py-0.9.1/py/bin/py.test
--- py-0.9.1~/py/bin/py.test 2008-03-28 10:40:40.000000000 +0000
+++ py-0.9.1/py/bin/py.test 2008-04-03 23:59:12.000000000 +0100
@@ -1,4 +1,10 @@
#!/usr/bin/env python
+import sys
+try:
+ sys.path.remove('/usr/bin')
+except ValueError:
+ pass
+
from _findpy import py
py.test.cmdline.main()
03-distutils-setup.diff
Use stdlib's distutils for setup. The package list may be generated by:
find -name __init__.py | xargs -L1 dirname | grep -v "/testing" | sort
Patch by <alf@merlin>.
--- pylib-0.9.0-beta.orig/setup.py 2007-01-31 23:23:24.000000000 +0100
+++ codespeak-lib-0.9.0-beta/setup.py 2007-02-13 16:32:19.000000000 +0100
@@ -1,3 +1,49 @@
-import py
-from py.__.misc._dist import setup
-setup(py)
+from distutils.core import setup
+packages=['py',
+ 'py.apigen',
+ 'py.apigen.rest',
+ 'py.apigen.source',
+ 'py.apigen.tracer',
+ 'py.builtin',
+ 'py.code',
+ 'py.compat',
+ 'py.doc',
+ 'py.execnet',
+ 'py.io',
+ 'py.log',
+ 'py.magic',
+ 'py.misc',
+ 'py.misc.cmdline',
+ 'py.path',
+ #'py.path.extpy',
+ 'py.path.gateway',
+ 'py.path.local',
+ 'py.path.svn',
+ 'py.process',
+ 'py.rest',
+ 'py.test',
+ 'py.test.rsession',
+ 'py.test.rsession.webdata',
+ 'py.test.terminal',
+ 'py.test.web',
+ 'py.thread',
+ 'py.tool',
+ 'py.xmlobj'
+ ]
+
+scripts=['py/bin/py.cleanup',
+ 'py/bin/py.countloc',
+ 'py/bin/py.lookup',
+ 'py/bin/py.rest',
+ 'py/bin/py.test']
+
+package_data={'py.rsession.webdata': ['*.html', '*.js'],
+ 'py.apigen': ['*.css', '*.js'],
+ 'py.rest': ['*.template'],
+ 'py.execnet': ['script/*.py'],
+ }
+
+setup(packages = packages,
+ scripts = scripts,
+ package_data = package_data
+ )
04-apigen.dpatch
--- codespeak-lib-0.9.0.orig/py/apigen/htmlgen.py
+++ codespeak-lib-0.9.0/py/apigen/htmlgen.py
@@ -178,6 +178,8 @@
rev = None
if wc.check(versioned=True):
rev = py.path.svnwc(packageroot).info().rev
+ else:
+ rev = 'unknown'
_revcache[packageroot] = rev
if packageroot.basename == "py":
assert rev is not None
--- codespeak-lib-0.9.0.orig/py/apigen/tracer/docstorage.py
+++ codespeak-lib-0.9.0/py/apigen/tracer/docstorage.py
@@ -21,8 +21,17 @@
for key, value in defs.iteritems():
chain = key.split('.')
base = module
- for elem in chain:
- base = getattr(base, elem)
+ try:
+ for elem in chain:
+ base = getattr(base, elem)
+ except RuntimeError, exc:
+ if elem == "greenlet":
+ print exc.__class__.__name__, exc
+ print "Greenlets not supported on this platform. Skipping apigen doc for this module"
+ continue
+ else:
+ raise
+
if value[1] == '*':
d.update(get_star_import_tree(base, key))
else:
05-disable-buildcmodule.diff
Ensure that builcmodule does not remove the library inside /usr/lib.
See #471844. Patch by Mark Wooding <mdw@distorted.org.uk>.
diff -urNad py-0.9.1~/py/misc/buildcmodule.py py-0.9.1/py/misc/buildcmodule.py
--- py-0.9.1~/py/misc/buildcmodule.py 2008-03-28 10:40:38.000000000 +0000
+++ py-0.9.1/py/misc/buildcmodule.py 2008-04-04 00:09:12.000000000 +0100
@@ -33,10 +33,7 @@
# XXX argl! we need better "build"-locations alltogether!
if lib.check():
- try:
- lib.remove()
- except EnvironmentError:
- pass # XXX we just use the existing version, bah
+ pass # XXX we just use the existing version, bah
if not lib.check():
c = py.io.StdCaptureFD()
06-subversion-looping.diff
"svn ls -v" under Subversion >= 1.5 lists ".", which was causing some
operations to loop infinitely. See #489102 and
https://codespeak.net/issue/py-dev/issue56. Patch by Chris Lamb
<chris@chris-lamb.co.uk>.
diff -urNad py/path/svn/urlcommand.py codespeak-lib-0.9.1/py/path/svn/urlcommand.py
--- a/py/path/svn/urlcommand.py 2008-07-12 03:02:11.000000000 +0100
+++ b/py/path/svn/urlcommand.py 2008-07-12 03:03:23.000000000 +0100
@@ -239,7 +239,8 @@
for lsline in lines:
if lsline:
info = InfoSvnCommand(lsline)
- nameinfo_seq.append((info._name, info))
+ if info._name != '.':
+ nameinfo_seq.append((info._name, info))
return nameinfo_seq
auth = self.auth and self.auth.makecmdoptions() or None
if self.rev is not None:
07-verbose-apigen.diff
Make the apigen stage of the build actually say something; could timeout
on slow buildds/is boring, etc. Patch by Chris Lamb <chris@chris-lamb.co.uk>.
diff -urNad py-0.9.1.orig/py/bin/_docgen.py py-0.9.1/py/bin/_docgen.py
--- py-0.9.1.orig/py/bin/_docgen.py 2008-07-04 15:35:50.000000000 +0100
+++ py-0.9.1/py/bin/_docgen.py 2008-07-04 15:35:54.000000000 +0100
@@ -17,7 +17,7 @@
cmd = ('PYTHONPATH="%s" %s python "%s" %s "%s"' %
(pypath.dirpath(), envvars, pytestpath, args, path))
print cmd
- py.process.cmdexec(cmd)
+ py.process.cmdexec(cmd, debug=True)
def build_apigen_docs(targetpath, testargs=''):
run_tests(pypath,
diff -urNad py-0.9.1.orig/py/process/cmdexec.py py-0.9.1/py/process/cmdexec.py