Commit 3b567563 authored by Alexandre Fayolle's avatar Alexandre Fayolle Committed by Sebastian Ramacher

Imported Debian patch 0.9.0-1

parents eb20b98d 86395186
Metadata-Version: 1.0
Name: py
Version: 0.9.0
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
License: MIT license
Download-URL: http://codespeak.net/download/py/py-0.9.0.tar.gz
Description:
the py lib is a development support library featuring
py.test, ad-hoc distributed execution, micro-threads
and svn abstractions.
Platform: unix
Platform: linux
Platform: cygwin
pylib for Debian
----------------
<possible notes regarding this package - if none, delete this file>
Dependencies
============
-- Guilherme Salgado <salgado@async.com.br>, Sat, 23 Jul 2005 10:48:20 -0300
To use some functionnalities, you will need to install some Recommended packages:
* py.test --tkinter: python-tkinter
* py.test remote session support: screen, rsync
* py.rest pdf support: graphviz, tetex-bin, gs-esp or gs-gpl, ps2eps
Greenlet support
================
The greenlet module is not available for all platforms. The
development team welcomes patches improving the situation.
-- Alexandre Fayolle <afayolle@debian.org>, Thu, 11 Jan 2007 16:40:45 +0100
codespeak-lib (0.9.0-1) unstable; urgency=low
* Added myself to the list of uploaders, with Guilherme's assent
* New upstream release (closes: #411058)
* Fixed greenlet build (closes: #355143)
* removed deprecated script rst2pdf (closes: #399839), use py.rest instead.
* Updated build dependencies and binary dependencies
* Wrote an stdlib distutils based setup.py to install the modules
* Build HTML documentation
* Added man pages for py.rest, py.test, py.cleanup, py.lookup and py.countloc
* Acknowledge Matthias Klose's NMU (closes: #361203)
-- Alexandre Fayolle <afayolle@debian.org> Thu, 15 Feb 2007 09:54:51 +0100
codespeak-lib (0.7-svn20060621-1) unstable; urgency=low
* New upstream version.
......
......@@ -2,7 +2,8 @@ Source: codespeak-lib
Section: python
Priority: optional
Maintainer: Guilherme Salgado <salgado@async.com.br>
Build-Depends: python-all-dev (>= 2.3.5-10), python-central (>= 0.4.17), debhelper (>= 5.0.37.1), dpatch
Uploaders: Alexandre Fayolle <afayolle@debian.org>
Build-Depends: python-all-dev (>= 2.3.5-10), python-central (>= 0.5), debhelper (>= 5.0.37.1), dpatch, python-docutils, xsltproc, docbook-xsl
XS-Python-Version: all
Standards-Version: 3.7.2
......@@ -11,11 +12,14 @@ Architecture: any
Depends: ${python:Depends}, ${shlibs: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-tkinter, python-docutils
Suggests: screen, rsync, graphviz, tetex-bin, gs-gpl|gs-esp, ps2eps
Provides: ${python:Provides}
XB-Python-Version: ${python:Versions}
Description: The pylib library containing py.test, greenlets and other niceties
It includes py.test, whose focues is to get a test environment that's easier
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'n'easy way to generate
xml/html documents"), py.magic.greenlet ("Lightweight in-process concurrent
programming") and a lot more features. For a complete list, check
http://codespeak.net/py/
programming") and many more features.
.
homepage: http://codespeak.net/py/
py/documentation/TODO.txt
py/documentation/why_py.txt
py/documentation/contact.txt
python-codespeak-lib: script-not-executable ./usr/share/pycentral/python-codespeak-lib/site-packages/py/execnet/script/shell.py
python-codespeak-lib: script-not-executable ./usr/share/pycentral/python-codespeak-lib/site-packages/py/execnet/script/socketserver.py
patching file py/bin/py.test
patching file py/bin/py.rest
Hunk #1 succeeded at 11 with fuzz 1.
patching file py/bin/py.lookup
Hunk #1 succeeded at 1 with fuzz 2.
patching file py/bin/py.cleanup
Hunk #1 succeeded at 1 with fuzz 1.
01-fix-greenlet-bustage.patch
03-fix-imports.patch
04-fix-setup.patch
01-fix-scripts
02-fix-greenlet-bustage
03-distutils-setup
#! /bin/sh /usr/share/dpatch/dpatch-run
## fix-scripts.dpatch by <alf@merlin>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: findpy not available in /usr/bin + use /usr/bin/python
@DPATCH@
--- 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
......@@ -8,11 +8,11 @@
--- codespeak-lib-0.7.orig/py/magic/greenlet.py
+++ codespeak-lib-0.7/py/magic/greenlet.py
@@ -1,5 +1,5 @@
import py
gdir = py.path.local(py.__file__).dirpath()
-path = gdir.join('c-extension', 'greenlet', 'greenlet.c')
-greenlet = path.getpymodule().greenlet
+path = gdir.join('c-extension', 'greenlet', 'greenlet.so')
+greenlet = path.pyimport().greenlet
@@ -6,5 +6,5 @@
# regular CPython (or pypy without stackless support, and then crash :-)
import py
gdir = py.path.local(py.__file__).dirpath()
- path = gdir.join('c-extension', 'greenlet', 'greenlet.c')
- greenlet = path._getpymodule().greenlet
+ path = gdir.join('c-extension', 'greenlet', 'greenlet.so')
+ greenlet = path.pyimport().greenlet
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02-remove-syntax-error-tests.dpatch by <salgado@canario.async.com.br>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
--- codespeak-lib-0.7.orig/py/test/testing/test_session.py
+++ codespeak-lib-0.7/py/test/testing/test_session.py
@@ -108,15 +108,6 @@
assert len(l) == 2
assert out.find('2 failed') != -1
- def test_syntax_error_module(self):
- session = self.session
- session.main([str(datadir / 'syntax_error.py')])
- l = session.getitemoutcomepairs(py.test.Item.Failed)
- assert len(l) == 1
- out = self.file.getvalue()
- assert out.find(str('syntax_error.py')) != -1
- assert out.find(str('not python')) != -1
-
def test_exit_first_problem(self):
session = self.session
session.config.option.exitfirst = True
--- codespeak-lib-0.7.orig/py/test/testing/test_collect.py
+++ codespeak-lib-0.7/py/test/testing/test_collect.py
@@ -62,11 +62,6 @@
col = py.test.collect.Module(fn)
py.test.raises(py.error.ENOENT, col.run)
-def test_syntax_error_in_module():
- modpath = datadir.join('syntax_error.py')
- col = py.test.collect.Module(modpath)
- py.test.raises(SyntaxError, col.run)
-
def test_disabled_class():
col = py.test.collect.Module(datadir.join('disabled.py'))
l = col.run()
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03-distutils-setup.dpatch by <alf@merlin>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Use stdlib's distutils for setup
@DPATCH@
--- 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
+ )
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03-fix-imports.dpatch by <salgado@canario.async.com.br>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
--- codespeak-lib-0.7.orig/py/bin/py.test
+++ codespeak-lib-0.7/py/bin/py.test
@@ -1,4 +1,4 @@
#!/usr/bin/env python
-from _findpy import py
+import py
py.test.cmdline.main()
--- codespeak-lib-0.7.orig/py/bin/py.rest
+++ codespeak-lib-0.7/py/bin/py.rest
@@ -11,7 +11,7 @@
"""
import os, sys
-from _findpy import py
+import py
from py.__.misc import rest
if __name__=='__main__':
--- codespeak-lib-0.7.orig/py/bin/py.lookup
+++ codespeak-lib-0.7/py/bin/py.lookup
@@ -1,6 +1,6 @@
#!/usr/bin/python
-from _findpy import py
+import py
import re
string = py.std.sys.argv[1]
--- codespeak-lib-0.7.orig/py/bin/py.cleanup
+++ codespeak-lib-0.7/py/bin/py.cleanup
@@ -1,6 +1,5 @@
#!/usr/bin/env python
-from _findpy import py
import py
for x in py.path.local().visit('*.pyc', py.path.checker(dotfile=0)):
#! /bin/sh /usr/share/dpatch/dpatch-run
## 04-fix-setup.dpatch by <salgado@canario.async.com.br>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
--- codespeak-lib-0.7.orig/setup.py
+++ codespeak-lib-0.7/setup.py
@@ -1,2 +1,11 @@
+from distutils.core import setup
+from distutils.extension import Extension
import py
+
py._dist.setup(py)
+
+setup(name="greenlet",
+ version="0.1",
+ ext_modules=[Extension(
+ name='py.c-extension.greenlet.greenlet',
+ sources=['py/c-extension/greenlet/greenlet.c'])])
<?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>Alexandre</firstname>">
<!ENTITY dhsurname "<surname>Fayolle</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>jan. 8, 2007</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>afayolle@debian.org</email>">
<!ENTITY dhusername "Alexandre Fayolle">
<!ENTITY dhucpackage "<refentrytitle>python-codespeak-lib</refentrytitle>">
<!ENTITY dhpackage "py.cleanup">
<!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>2007</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>pylib pyc cleaner</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option><replaceable>directories...</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.
Instead, it has documentation in html available in /usr/share/doc/python-codespeak-lib/.</para>
<para><command>&dhpackage;</command> is a program that recursivly delete .pyc files
from the given directories. Specify '.' as an argument to disable recursion.
</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>Alexandre</firstname>">
<!ENTITY dhsurname "<surname>Fayolle</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>jan. 8, 2007</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>afayolle@debian.org</email>">
<!ENTITY dhusername "Alexandre Fayolle">
<!ENTITY dhucpackage "<refentrytitle>python-codespeak-lib</refentrytitle>">
<!ENTITY dhpackage "py.countloc">
<!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>2007</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>pylib line counter</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option><replaceable>filenames or directories...</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.
Instead, it has documentation in html available in /usr/share/doc/python-codespeak-lib/.</para>
<para><command>&dhpackage;</command> is a program that computes number of non-empty lines of
code in python modules. If one or more directories are given, python modules will be found
recursivly. Test files and normal ones are identified and reported separately.
</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>Alexandre</firstname>">
<!ENTITY dhsurname "<surname>Fayolle</surname>">
<!-- Please adjust the date whenever revising the manpage. -->