Hello community, here is the log from the commit of package python-py2pack for openSUSE:Factory checked in at Wed Mar 9 13:31:17 CET 2011.
-------- --- python-py2pack/python-py2pack.changes 2011-02-16 10:06:55.000000000 +0100 +++ /mounts/work_src_done/STABLE/python-py2pack/python-py2pack.changes 2011-03-09 10:41:06.000000000 +0100 @@ -1,0 +2,7 @@ +Wed Mar 9 09:18:43 UTC 2011 - [email protected] + +- Update to version 0.3.13: + * Generate manpage and HTML documentation +- Added manpage and HTML documentation + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- py2pack-0.3.11.tar.bz2 New: ---- py2pack-0.3.13.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-py2pack.spec ++++++ --- /var/tmp/diff_new_pack.o0CTYv/_old 2011-03-09 13:31:04.000000000 +0100 +++ /var/tmp/diff_new_pack.o0CTYv/_new 2011-03-09 13:31:04.000000000 +0100 @@ -23,7 +23,7 @@ %define mod_name py2pack Name: python-%{mod_name} -Version: 0.3.11 +Version: 0.3.13 Release: 1 Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI @@ -58,12 +58,19 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +# The setup script installs stuff into '/usr/local', move stuff around accordingly +install -d %{buildroot}%{_mandir}/man1 +mv %{buildroot}/usr/man/man1/%{mod_name}.* %{buildroot}%{_mandir}/man1 +install -d %{buildroot}%{_docdir}/%{name} +mv %{buildroot}/usr/share/doc/%{mod_name}/* %{buildroot}%{_docdir}/%{name} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) +%{_docdir}/%{name} +%{_mandir}/man?/%{mod_name}.* %{_bindir}/%{mod_name} %python_sitelib/%{mod_name}* ++++++ py2pack-0.3.11.tar.bz2 -> py2pack-0.3.13.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.11/PKG-INFO new/py2pack-0.3.13/PKG-INFO --- old/py2pack-0.3.11/PKG-INFO 2011-02-16 09:39:16.000000000 +0100 +++ new/py2pack-0.3.13/PKG-INFO 2011-03-09 10:17:16.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: py2pack -Version: 0.3.11 +Version: 0.3.13 Summary: Generate distribution packages from Python packages on PyPI Home-page: http://github.com/saschpe/py2pack Author: Sascha Peilicke diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.11/doc/py2pack.1 new/py2pack-0.3.13/doc/py2pack.1 --- old/py2pack-0.3.11/doc/py2pack.1 1970-01-01 01:00:00.000000000 +0100 +++ new/py2pack-0.3.13/doc/py2pack.1 2011-03-09 10:15:46.000000000 +0100 @@ -0,0 +1,159 @@ +'\" t +.\" Title: py2pack +.\" Author: Sascha Peilicke <[email protected]> +.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> +.\" Date: 03/09/2011 +.\" Manual: @VERSION@ +.\" Source: http://github.com/saschpe/py2pack @VERSION@ +.\" Language: English +.\" +.TH "PY2PACK" "1" "03/09/2011" "http://github\&.com/saschpe/py" "@VERSION@" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +py2pack \- Generate Distribution Packages from Python Packages on PyPI +.SH "SYNOPSIS" +.HP \w'\fBpy2pack\fR\ 'u +\fBpy2pack\fR [\-h] [\-\-version] {search | help | show | list | fetch | generate} ... +.SH "COMMANDS" +.PP +The following commands are available: +.SS "The fetch Command" +.HP \w'\fBpy2pack\fR\ 'u +\fBpy2pack\fR fetch name [version] +.PP +Downloads a package from PyPI and stores it in the current directory\&. Optionally you can specify a version number\&. +.SS "The generate Command" +.HP \w'\fBpy2pack\fR\fB\ generate\fR\ 'u +\fBpy2pack\fR\fB generate\fR [\-h] [\-t\ {fedora\&.spec\ |\ opensuse\&.dsc\ |\ opensuse\&.spec}] [\-f\ \fIFILENAME\fR] name [version] +.PP +Creates a SPEC or DSC file for a specific distribution\&. +.SS "The list Command" +.HP \w'\fBpy2pack\fR\fB\ list\fR\ 'u +\fBpy2pack\fR\fB list\fR [\-h] +.PP +Gives a list of all Python modules available on PyPI\&. +.SS "The search Command" +.HP \w'\fBpy2pack\fR\fB\ search\fR\ 'u +\fBpy2pack\fR\fB search\fR [\-h] {name} +.PP +Gives a list of all Python modules found in +\fIname\fR\&. +.SS "The show Command" +.HP \w'\fBpy2pack\fR\fB\ show\fR\ 'u +\fBpy2pack\fR\fB show\fR [\-h] {name} [version] +.PP +Shows the +\m[blue]\fBDOAP\fR\m[]\&\s-2\u[1]\d\s+2 +record for the given name and version (optionally)\&. The output is a Python dictionary\&. +.SH "EXAMPLES" +.PP +Creating a package from a Python module involves the following steps: +.sp +.RS 4 +.ie n \{\ +\h'-04' 1.\h'+01'\c +.\} +.el \{\ +.sp -1 +.IP " 1." 4.2 +.\} +Search for your favorite Python module, for example, +: +.sp +.if n \{\ +.RS 4 +.\} +.nf +$ \fBpy2pack\fR search pylint +searching for package pylint\&.\&.\&. +found logilab\&.pylintinstaller\-0\&.15\&.2 +found plpylint\-0\&.1\&.2 +found pylint\-0\&.22\&.0 +.fi +.if n \{\ +.RE +.\} +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04' 2.\h'+01'\c +.\} +.el \{\ +.sp -1 +.IP " 2." 4.2 +.\} +Download +.sp +.if n \{\ +.RS 4 +.\} +.nf +$ \fBpy2pack\fR fetch +downloading package pylint\-0\&.22\&.0\&.\&.\&. +from http://pypi\&.python\&.org/packages/source/p/pylint/pylint\-0\&.22\&.0\&.tar\&.gz +.fi +.if n \{\ +.RE +.\} +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04' 3.\h'+01'\c +.\} +.el \{\ +.sp -1 +.IP " 3." 4.2 +.\} +Create a SPEC file, for example, for openSUSE: +.sp +.if n \{\ +.RS 4 +.\} +.nf +$ \fBpy2pack\fR generate \-t opensuse\&.spec \-f python\-pylint\&.spec pylint +.fi +.if n \{\ +.RE +.\} +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04' 4.\h'+01'\c +.\} +.el \{\ +.sp -1 +.IP " 4." 4.2 +.\} +Check the SPEC file +python\-pylint\&.spec +and adapt it to your needs\&. +.RE +.SH "AUTHORS" +.PP +\fBSascha Peilicke\fR <\&saschpe@gmx\&.de\&> +.RS 4 +Developer +.RE +.PP +\fBThomas Schraitle\fR +.RS 4 +Manpage author +.RE +.SH "NOTES" +.IP " 1." 4 +DOAP +.RS 4 +\%http://usefulinc.com/doap +.RE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.11/doc/py2pack.html new/py2pack-0.3.13/doc/py2pack.html --- old/py2pack-0.3.11/doc/py2pack.html 1970-01-01 01:00:00.000000000 +0100 +++ new/py2pack-0.3.13/doc/py2pack.html 2011-03-09 10:15:45.000000000 +0100 @@ -0,0 +1,20 @@ +<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>py2pack</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><meta name="description" content=""></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div lang="en" class="refentry" title="py2pack"><a name="py2pack"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>py2pack — + Generate Distribution Packages from Python Packages on PyPI + </p></div><div class="refsynopsisdiv" title="Synopsis"><a name="py2pack.synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">py2pack</code> [-h] [--version] { search | help | show | list | fetch | generate } ... </p></div></div><div class="refsect1" title="Commands"><a name="py2pack.options"></a><h2>Commands</h2><p>The following commands are available:</p><div class="refsect2" title="The fetch Command"><a name="py2pack.cmd.fetch"></a><h3>The fetch Command</h3><div class="cmdsynopsis"><p><code class="command">py2pack</code> fetch name [version]</p></div><p>Downloads a package from PyPI and stores it in the current directory. Optionally you + can specify a version number.</p></div><div class="refsect2" title="The generate Command"><a name="py2pack.cmd.generate"></a><h3>The generate Command</h3><div class="cmdsynopsis"><p><code class="command">py2pack</code> <br><code class="command"> generate</code> [-h] [ + -t + { fedora.spec | opensuse.dsc | opensuse.spec } + ] [-f <em class="replaceable"><code>FILENAME</code></em>] name [version]</p></div><p>Creates a SPEC or DSC file for a specific distribution.</p></div><div class="refsect2" title="The list Command"><a name="py2pack.cmd.list"></a><h3>The list Command</h3><div class="cmdsynopsis"><p><code class="command">py2pack</code> <br><code class="command"> list</code> [-h]</p></div><p>Gives a list of all Python modules available on PyPI.</p></div><div class="refsect2" title="The search Command"><a name="py2pack.cmd.search"></a><h3>The search Command</h3><div class="cmdsynopsis"><p><code class="command">py2pack</code> <br><code class="command"> search</code> [-h] {name}</p></div><p>Gives a list of all Python modules found in + <em class="replaceable"><code>name</code></em>.</p></div><div class="refsect2" title="The show Command"><a name="py2pack.cmd.show"></a><h3>The show Command</h3><div class="cmdsynopsis"><p><code class="command">py2pack</code> <br><code class="command"> show</code> [-h] {name} [version]</p></div><p>Shows the <a class="ulink" href="http://usefulinc.com/doap" target="_top">DOAP</a> record for the + given name and version (optionally). The output is a Python + dictionary.</p></div></div><div class="refsect1" title="Examples"><a name="py2pack.examples"></a><h2>Examples</h2><p>Creating a package from a Python module involves the following + steps:</p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>Search for your favorite Python module, for example, + <span class="package"></span>:</p><pre class="screen"><code class="prompt">$ </code><span class="command"><strong>py2pack</strong></span> search pylint +searching for package pylint... +found logilab.pylintinstaller-0.15.2 +found plpylint-0.1.2 +found pylint-0.22.0</pre></li><li class="step" title="Step 2"><p>Download</p><pre class="screen"><code class="prompt">$ </code><span class="command"><strong>py2pack</strong></span> fetch +downloading package pylint-0.22.0... +from http://pypi.python.org/packages/source/p/pylint/pylint-0.22.0.tar.gz</pre></li><li class="step" title="Step 3"><p>Create a SPEC file, for example, for openSUSE:</p><pre class="screen"><code class="prompt">$ </code><span class="command"><strong>py2pack</strong></span> generate -t opensuse.spec -f python-pylint.spec pylint</pre></li><li class="step" title="Step 4"><p>Check the SPEC file + <code class="filename">python-pylint.spec</code> and adapt it to your + needs.</p></li></ol></div></div></div></body></html> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.11/doc/py2pack.xml.in new/py2pack-0.3.13/doc/py2pack.xml.in --- old/py2pack-0.3.11/doc/py2pack.xml.in 1970-01-01 01:00:00.000000000 +0100 +++ new/py2pack-0.3.13/doc/py2pack.xml.in 2011-01-13 11:42:44.000000000 +0100 @@ -0,0 +1,176 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE refentry PUBLIC + "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.docbook.org/xml/4.5/docbookx.dtd" +[ + <!ENTITY product "py2pack"> +]> + + + +<refentry lang="en" id="py2pack"> + <refentryinfo> + <productname>&product;</productname> + <authorgroup> + <author> + <contrib>Developer</contrib> + <firstname>Sascha</firstname> + <surname>Peilicke</surname> + <email>[email protected]</email> + </author> + <othercredit> + <contrib>Manpage author</contrib> + <firstname>Thomas</firstname> + <surname>Schraitle</surname> + </othercredit> + </authorgroup> + <abstract> + <!-- Taken from the RPM description, but modified slightly --> + &product; allows to generate RPM spec or DEB dsc files from + Python modules, to list Python modules or search for them on + the Python Package Index (PyPI). Conveniently, it can fetch + tarballs and changelogs making it an universal tool to + package Python modules. + </abstract> + </refentryinfo> + <refmeta> + <refentrytitle>&product;</refentrytitle> + <manvolnum>1</manvolnum> + <refmiscinfo class="version">@VERSION@</refmiscinfo> + <refmiscinfo class="source" + >http://github.com/saschpe/py2pack</refmiscinfo> + <!--<refmiscinfo class="manual"></refmiscinfo>--> + </refmeta> + + <refnamediv> + <refname>&product;</refname> + <refpurpose> + Generate Distribution Packages from Python Packages on PyPI + </refpurpose> + </refnamediv> + + <refsynopsisdiv id="py2pack.synopsis"> + <title>Synopsis</title> + <cmdsynopsis> + <command>py2pack</command> + <arg choice="opt">-h</arg> + <arg choice="opt">--version</arg> + <group choice="req"> + <arg choice="plain">search</arg> + <arg choice="plain">help</arg> + <arg choice="plain">show</arg> + <arg choice="plain">list</arg> + <arg choice="plain">fetch</arg> + <arg choice="plain">generate</arg> + </group> + <arg rep="repeat" choice="plain"/> + </cmdsynopsis> + </refsynopsisdiv> + + <refsect1 id="py2pack.options"> + <title>Commands</title> + <para>The following commands are available:</para> + + <!-- Commands sorted alphabetically: --> + <refsect2 id="py2pack.cmd.fetch"> + <title>The fetch Command</title> + <cmdsynopsis><command>py2pack</command><!-- + --> fetch <!-- + --><arg choice="plain">name</arg> <!-- + --><arg choice="opt">version</arg> + </cmdsynopsis> + <para>Downloads a package from PyPI and stores it in the current directory. Optionally you + can specify a version number.</para> + </refsect2> + + <refsect2 id="py2pack.cmd.generate"> + <title>The generate Command</title> + <cmdsynopsis><command>py2pack</command> + <command> generate</command> + <arg choice="opt">-h</arg> + <arg choice="opt"> + <arg choice="plain">-t</arg> + <group choice="req"> + <arg choice="plain">fedora.spec</arg> + <arg choice="plain">opensuse.dsc</arg> + <arg choice="plain">opensuse.spec</arg> + </group> + </arg> + <arg choice="opt">-f <replaceable>FILENAME</replaceable></arg> + <arg choice="plain">name</arg> + <arg choice="opt">version</arg> + </cmdsynopsis> + <para>Creates a SPEC or DSC file for a specific distribution.</para> + </refsect2> + + <refsect2 id="py2pack.cmd.list"> + <title>The list Command</title> + <cmdsynopsis><command>py2pack</command> + <command> list</command> + <arg choice="opt">-h</arg> + </cmdsynopsis> + <para>Gives a list of all Python modules available on PyPI.</para> + </refsect2> + + <refsect2 id="py2pack.cmd.search"> + <title>The search Command</title> + <cmdsynopsis><command>py2pack</command> + <command> search</command> + <arg choice="opt">-h</arg> + <arg choice="req">name</arg> + </cmdsynopsis> + <para>Gives a list of all Python modules found in + <replaceable>name</replaceable>.</para> + </refsect2> + + <refsect2 id="py2pack.cmd.show"> + <title>The show Command</title> + <cmdsynopsis><command>py2pack</command> + <command> show</command> + <arg choice="opt">-h</arg> + <arg choice="req">name</arg> + <arg choice="opt">version</arg> + </cmdsynopsis> + <para>Shows the <ulink + url="http://usefulinc.com/doap">DOAP</ulink> record for the + given name and version (optionally). The output is a Python + dictionary.</para> + </refsect2> + + </refsect1> + + <refsect1 id="py2pack.examples"> + <title>Examples</title> + <para>Creating a package from a Python module involves the following + steps:</para> + <procedure> + <step> + <para>Search for your favorite Python module, for example, + <package></package>:</para> + <screen><prompt>$ </prompt><command>py2pack</command> search pylint +searching for package pylint... +found logilab.pylintinstaller-0.15.2 +found plpylint-0.1.2 +found pylint-0.22.0</screen> + </step> + <step> + <para>Download</para> + <screen><prompt>$ </prompt><command>py2pack</command> fetch +downloading package pylint-0.22.0... +from http://pypi.python.org/packages/source/p/pylint/pylint-0.22.0.tar.gz</screen> + </step> + <step> + <para>Create a SPEC file, for example, for openSUSE:</para> + <screen><prompt>$ </prompt><command>py2pack</command> generate -t opensuse.spec<!-- + --> -f python-pylint.spec pylint</screen> + </step> + <step> + <para>Check the SPEC file + <filename>python-pylint.spec</filename> and adapt it to your + needs.</para> + </step> + </procedure> + + </refsect1> + +</refentry> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.11/py2pack/__init__.py new/py2pack-0.3.13/py2pack/__init__.py --- old/py2pack-0.3.11/py2pack/__init__.py 2011-02-16 09:38:58.000000000 +0100 +++ new/py2pack-0.3.13/py2pack/__init__.py 2011-03-09 09:40:46.000000000 +0100 @@ -1,5 +1,5 @@ __doc__ = 'Generate distribution packages from Python packages on PyPI' __author__ = 'Sascha Peilicke <[email protected]>' -__version__ = '0.3.11' +__version__ = '0.3.13' from py2pack import list, search, fetch, generate, main diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.11/py2pack/templates/opensuse.spec new/py2pack-0.3.13/py2pack/templates/opensuse.spec --- old/py2pack-0.3.11/py2pack/templates/opensuse.spec 2011-02-16 09:38:18.000000000 +0100 +++ new/py2pack-0.3.13/py2pack/templates/opensuse.spec 2011-03-03 10:03:29.000000000 +0100 @@ -41,7 +41,7 @@ {%- endfor %} %if 0%{?suse_version} %py_requires -%if %{?suse_version: %{suse_version} > 1110} +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif %endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.11/setup.py new/py2pack-0.3.13/setup.py --- old/py2pack-0.3.11/setup.py 2011-01-25 15:09:26.000000000 +0100 +++ new/py2pack-0.3.13/setup.py 2011-03-09 10:16:21.000000000 +0100 @@ -1,6 +1,30 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + from distutils.core import setup +import os,subprocess, sys import py2pack + +if sys.argv[-1] == "doc": + """Generate manpage, HTML and PDF documentation. + """ + try: + subprocess.call(["xsltproc", "--output", "doc/py2pack.html", "/usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl", "doc/py2pack.xml.in"]) + subprocess.call(["xsltproc", "--output", "doc/py2pack.1", "/usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl", "doc/py2pack.xml.in"]) + #subprocess.call(["xsltproc", "--output", "doc/py2pack.fo", + # "--stringparam", "paper.type", "A4", + # "--stringparam", "body.start.indent", "0pt", + # "--stringparam", "title.margin.left", "0pt", + # "--stringparam", "variablelist.as.blocks", "1", + # "/usr/share/xml/docbook/stylesheet/nwalsh/current/fo/docbook.xsl", "doc/py2pack.xml.in"]) + #subprocess.call(["fop", "doc/py2pack.fo", "doc/py2pack.pdf"]) + except: + pass + #if os.path.exists("doc/py2pack.fo"): + # os.remove("doc/py2pack.fo") + sys.exit() + setup( name = py2pack.__name__, version = py2pack.__version__, @@ -13,7 +37,10 @@ scripts = ['scripts/py2pack'], packages = ['py2pack'], package_data = {'py2pack': ['templates/*']}, - #data_files = [('doc/py2pack', ['AUTHORS', 'LICENSE', 'README'])], + data_files = [('share/doc/py2pack', ['AUTHORS', 'LICENSE', 'README.rst']), + ('share/doc/py2pack/html', ['doc/py2pack.html']), + #('share/doc/py2pack/pdf', ['doc/py2pack.pdf']), + ('man/man1', ['doc/py2pack.1'])], requires = ['argparse', 'Jinja2'], classifiers = [ 'Development Status :: 4 - Beta', ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
