[Python-modules-commits] r12002 - in packages (20 files)

stefanor-guest at users.alioth.debian.org stefanor-guest at users.alioth.debian.org
Sun Feb 28 08:19:02 UTC 2010


    Date: Sunday, February 28, 2010 @ 08:18:55
  Author: stefanor-guest
Revision: 12002

Import pystemmer

Added:
  packages/pystemmer/
  packages/pystemmer/tags/
  packages/pystemmer/trunk/
  packages/pystemmer/trunk/debian/
  packages/pystemmer/trunk/debian/changelog
  packages/pystemmer/trunk/debian/compat
  packages/pystemmer/trunk/debian/control
  packages/pystemmer/trunk/debian/copyright
  packages/pystemmer/trunk/debian/doc-base
  packages/pystemmer/trunk/debian/docs
  packages/pystemmer/trunk/debian/patches/
  packages/pystemmer/trunk/debian/patches/force-pyrex.diff
  packages/pystemmer/trunk/debian/patches/series
  packages/pystemmer/trunk/debian/patches/test-exit-code.diff
  packages/pystemmer/trunk/debian/python-pystemmer-dbg.install
  packages/pystemmer/trunk/debian/python-pystemmer.install
  packages/pystemmer/trunk/debian/rules
  packages/pystemmer/trunk/debian/source/
  packages/pystemmer/trunk/debian/source/format
  packages/pystemmer/trunk/debian/watch


Property changes on: packages/pystemmer/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/pystemmer/trunk/debian/changelog
===================================================================
--- packages/pystemmer/trunk/debian/changelog	                        (rev 0)
+++ packages/pystemmer/trunk/debian/changelog	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,5 @@
+pystemmer (1.1.0-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #375441)
+
+ -- Stefano Rivera <stefano at rivera.za.net>  Thu, 28 Jan 2010 13:02:23 +0200

Added: packages/pystemmer/trunk/debian/compat
===================================================================
--- packages/pystemmer/trunk/debian/compat	                        (rev 0)
+++ packages/pystemmer/trunk/debian/compat	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1 @@
+7

Added: packages/pystemmer/trunk/debian/control
===================================================================
--- packages/pystemmer/trunk/debian/control	                        (rev 0)
+++ packages/pystemmer/trunk/debian/control	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,55 @@
+Source: pystemmer
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Stefano Rivera <stefano at rivera.za.net>
+Build-Depends: debhelper (>= 7.3.5~), python-support (>= 0.90), python-all-dev,
+ python-all-dbg, python-pyrex, python-epydoc
+XS-Python-Version: >= 2.4
+Standards-Version: 3.8.4
+Homepage: http://snowball.tartarus.org/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/pystemmer/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pystemmer/trunk/
+
+Package: python-pystemmer
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Description: Python bindings for libstemmer - snowball stemming algorithms
+ PyStemmer provides access to efficient algorithms for calculating a "stemmed"
+ form of a word.  This is a form with most of the common morphological endings
+ removed; hopefully representing a common linguistic base form.  This is most
+ useful in building search engines and information retrieval software; for
+ example, a search with stemming enabled should be able to find a document
+ containing "cycling" given the query "cycles".
+ .
+ PyStemmer provides algorithms for several (mainly european) languages, by
+ wrapping the libstemmer library from the Snowball project in a Python module.
+ .
+ It also provides access to the classic Porter stemming algorithm for English:
+ although this has been superceded by an improved algorithm, the original
+ algorithm may be of interest to information retrieval researchers wishing to
+ reproduce results of earlier experiments.
+
+Package: python-pystemmer-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends},
+ python-pystemmer (= ${binary:Version}), python-dbg
+Description: Python bindings for libstemmer - snowball stemming algorithms (debug extension)
+ PyStemmer provides access to efficient algorithms for calculating a "stemmed"
+ form of a word.  This is a form with most of the common morphological endings
+ removed; hopefully representing a common linguistic base form.  This is most
+ useful in building search engines and information retrieval software; for
+ example, a search with stemming enabled should be able to find a document
+ containing "cycling" given the query "cycles".
+ .
+ PyStemmer provides algorithms for several (mainly european) languages, by
+ wrapping the libstemmer library from the Snowball project in a Python module.
+ .
+ It also provides access to the classic Porter stemming algorithm for English:
+ although this has been superceded by an improved algorithm, the original
+ algorithm may be of interest to information retrieval researchers wishing to
+ reproduce results of earlier experiments.
+ .
+ This package contains the extensions built for the Python debug interpreter.

Added: packages/pystemmer/trunk/debian/copyright
===================================================================
--- packages/pystemmer/trunk/debian/copyright	                        (rev 0)
+++ packages/pystemmer/trunk/debian/copyright	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,74 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135
+Name: PyStemmer
+Maintainer: Richard Boulton <richard at tartarus.org>
+Source: http://snowball.tartarus.org/
+
+Files: *
+Copyright: 2006, Richard Boulton
+License: MIT
+ It was inspired by an earlier implementation of PyStemmer (version 0.10, which
+ was copyright (c) 2001, Andreas Jung, and also licensed under the MIT license,
+ but no portions of which remain in this package, and had a different API).
+ .
+ Both Andreas Jung's implementation and this implementation are covered by the
+ following license.
+ .
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
+Files: libstemmer_c/*
+Copyright: 2001-2006, Dr Martin Porter and Richard Boulton
+License: BSD
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ 1. Redistributions of source code must retain the above copyright notice, this
+    list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright notice,
+    this list of conditions and the following disclaimer in the documentation
+    and/or other materials provided with the distribution.
+ 3. Neither the name of the Snowball project nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: debian/*
+Copyright:
+ 2010, Stefano Rivera <stefano at rivera.za.net>
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in the /usr/share/common-licenses/GPL-2 file.

Added: packages/pystemmer/trunk/debian/doc-base
===================================================================
--- packages/pystemmer/trunk/debian/doc-base	                        (rev 0)
+++ packages/pystemmer/trunk/debian/doc-base	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,9 @@
+Document: pystemmer
+Title: PyStemmer API Documentation
+Author: Richard Boulton
+Abstract: Python bindings for libstemmer - snowball stemming algorithms
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-pystemmer/html/api/index.html
+Files: /usr/share/doc/python-pystemmer/html/api/*.html

Added: packages/pystemmer/trunk/debian/docs
===================================================================
--- packages/pystemmer/trunk/debian/docs	                        (rev 0)
+++ packages/pystemmer/trunk/debian/docs	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,3 @@
+README
+docs/quickstart.txt
+debian/html

Added: packages/pystemmer/trunk/debian/patches/force-pyrex.diff
===================================================================
--- packages/pystemmer/trunk/debian/patches/force-pyrex.diff	                        (rev 0)
+++ packages/pystemmer/trunk/debian/patches/force-pyrex.diff	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,21 @@
+Description: Don't allow setup.py to silently use existing Pyrex-generated C.
+Author: Stefano Rivera <stefano at rivera.za.net>
+Forwarded: no
+Last-Update: 1010-02-27
+
+--- a/setup.py
++++ b/setup.py
+@@ -3,11 +3,8 @@
+ from distutils.core import setup, Extension
+ import os.path
+ 
+-try:
+-    from Pyrex.Distutils import build_ext
+-    have_pyrex = 1
+-except:
+-    have_pyrex = 0
++from Pyrex.Distutils import build_ext
++have_pyrex = 1
+ 
+ # Directory which libstemmer sources are unpacked in.
+ library_dir = 'libstemmer_c'

Added: packages/pystemmer/trunk/debian/patches/series
===================================================================
--- packages/pystemmer/trunk/debian/patches/series	                        (rev 0)
+++ packages/pystemmer/trunk/debian/patches/series	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,2 @@
+force-pyrex.diff
+test-exit-code.diff

Added: packages/pystemmer/trunk/debian/patches/test-exit-code.diff
===================================================================
--- packages/pystemmer/trunk/debian/patches/test-exit-code.diff	                        (rev 0)
+++ packages/pystemmer/trunk/debian/patches/test-exit-code.diff	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,19 @@
+Description: Modify the test suite to return a suitable error code on failure.
+Author: Stefano Rivera <stefano at rivera.za.net>
+Forwarded: no
+Last-Update: 1010-02-27
+
+--- a/runtests.py
++++ b/runtests.py
+@@ -1,5 +1,9 @@
+ #!/usr/bin/env python
+-
+ import doctest
+-doctest.testfile('docs/quickstart.txt')
++from sys import exit
++
++fails, tests = doctest.testfile('docs/quickstart.txt')
+ 
++if fails > 0:
++    exit(1)
++print 'All %i tests passed' % tests

Added: packages/pystemmer/trunk/debian/python-pystemmer-dbg.install
===================================================================
--- packages/pystemmer/trunk/debian/python-pystemmer-dbg.install	                        (rev 0)
+++ packages/pystemmer/trunk/debian/python-pystemmer-dbg.install	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1 @@
+usr/lib/python*/*-packages/Stemmer_d.so

Added: packages/pystemmer/trunk/debian/python-pystemmer.install
===================================================================
--- packages/pystemmer/trunk/debian/python-pystemmer.install	                        (rev 0)
+++ packages/pystemmer/trunk/debian/python-pystemmer.install	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1 @@
+usr/lib/python*/*-packages/Stemmer.so

Added: packages/pystemmer/trunk/debian/rules
===================================================================
--- packages/pystemmer/trunk/debian/rules	                        (rev 0)
+++ packages/pystemmer/trunk/debian/rules	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	dh_auto_build
+	mkdir -p debian/html/api
+	epydoc --html -o debian/html/api --name="PyStemmer" \
+	       --url=http://snowball.tartarus.org/ \
+	       build/lib.*-`pyversions -vd`/Stemmer.so
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf debian/html
+
+override_dh_auto_test:
+	for ver in `pyversions -vr`; do \
+		PYTHONPATH=`dirname build/lib.*-$$ver/Stemmer.so` python$$ver runtests.py; \
+	done
+
+override_dh_auto_install:
+	dh_auto_install --destdir=debian/tmp
+
+override_dh_compress:
+	dh_compress -X.js
+
+override_dh_strip:
+	dh_strip --dbg-package=python-pystemmer-dbg
+	cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules


Property changes on: packages/pystemmer/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/pystemmer/trunk/debian/source/format
===================================================================
--- packages/pystemmer/trunk/debian/source/format	                        (rev 0)
+++ packages/pystemmer/trunk/debian/source/format	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/pystemmer/trunk/debian/watch
===================================================================
--- packages/pystemmer/trunk/debian/watch	                        (rev 0)
+++ packages/pystemmer/trunk/debian/watch	2010-02-28 08:18:55 UTC (rev 12002)
@@ -0,0 +1,3 @@
+version=3
+
+http://pypi.python.org/packages/source/P/PyStemmer/PyStemmer-(.*)\.tar.gz




More information about the Python-modules-commits mailing list