[Python-modules-commits] r27518 - in packages/python-levenshtein/trunk/debian (3 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Feb 2 19:37:14 UTC 2014


    Date: Sunday, February 2, 2014 @ 19:37:13
  Author: morph
Revision: 27518

* Switch to dh_python2/3
* added Python 3 packages

Modified:
  packages/python-levenshtein/trunk/debian/changelog
  packages/python-levenshtein/trunk/debian/control
  packages/python-levenshtein/trunk/debian/rules

Modified: packages/python-levenshtein/trunk/debian/changelog
===================================================================
--- packages/python-levenshtein/trunk/debian/changelog	2014-02-02 18:25:42 UTC (rev 27517)
+++ packages/python-levenshtein/trunk/debian/changelog	2014-02-02 19:37:13 UTC (rev 27518)
@@ -14,8 +14,10 @@
     - update homepage information
   * debian/copyright
     - convert to DEP-5 format
+  * Switch to dh_python2/3
+  * added Python 3 packages
 
- -- Sandro Tosi <morph at debian.org>  Sun, 02 Feb 2014 19:25:23 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 02 Feb 2014 20:36:23 +0100
 
 python-levenshtein (0.10.1-2) unstable; urgency=low
 

Modified: packages/python-levenshtein/trunk/debian/control
===================================================================
--- packages/python-levenshtein/trunk/debian/control	2014-02-02 18:25:42 UTC (rev 27517)
+++ packages/python-levenshtein/trunk/debian/control	2014-02-02 19:37:13 UTC (rev 27518)
@@ -3,8 +3,9 @@
 Priority: optional
 Maintainer: Sandro Tosi <morph at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: python-all-dev (>= 2.5.3-1~), python-all-dbg, python-support (>= 1), debhelper (>= 7.0.50~)
+Build-Depends: python-all-dev (>= 2.5.3-1~), python-all-dbg, python3-all-dev, python3-all-dbg, dh-python, debhelper (>= 7.0.50~)
 X-Python-Version: all
+X-Python3-Version: >= 3.0
 Standards-Version: 3.9.5
 Homepage: https://github.com/ztane/python-Levenshtein
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-levenshtein/trunk/
@@ -25,6 +26,21 @@
  .
  It is useful for spell checking, or fuzzy matching of gettext messages.
 
+Package: python3-levenshtein
+Architecture: any
+Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends}
+Description: extension for computing string similarities and edit distances
+ The Levenshtein module computes Levenshtein distances, similarity ratios,
+ generalized medians and set medians of Unicode or non-Unicode strings.
+ Because it's implemented in C, it's much faster than the corresponding
+ Python library functions and methods.
+ .
+ The Levenshtein distance is the minimum number of single-character
+ insertions, deletions, and substitutions to transform one string into
+ another.
+ .
+ It is useful for spell checking, or fuzzy matching of gettext messages.
+
 Package: python-levenshtein-dbg
 Section: debug
 Priority: extra
@@ -43,3 +59,22 @@
  It is useful for spell checking, or fuzzy matching of gettext messages.
  .
  This package contains the extensions built for the Python debug interpreter.
+
+Package: python3-levenshtein-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: python3-levenshtein (= ${binary:Version}), ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends}
+Description: extension for computing string similarities and edit distances(debug extension)
+ The Levenshtein module computes Levenshtein distances, similarity ratios,
+ generalized medians and set medians of Unicode or non-Unicode strings.
+ Because it's implemented in C, it's much faster than the corresponding
+ Python library functions and methods.
+ .
+ The Levenshtein distance is the minimum number of single-character
+ insertions, deletions, and substitutions to transform one string into
+ another.
+ .
+ It is useful for spell checking, or fuzzy matching of gettext messages.
+ .
+ This package contains the extensions built for the Python debug interpreter.

Modified: packages/python-levenshtein/trunk/debian/rules
===================================================================
--- packages/python-levenshtein/trunk/debian/rules	2014-02-02 18:25:42 UTC (rev 27517)
+++ packages/python-levenshtein/trunk/debian/rules	2014-02-02 19:37:13 UTC (rev 27518)
@@ -1,20 +1,21 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-PYVERS=$(shell pyversions -vr)
+PY2VERS=$(shell pyversions -vr)
+PY3VERS=$(shell py3versions -vr)
 PYLIBPATH := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")
 
 %:
-	dh $@
+	dh $@ --with python2,python3
 
 override_dh_auto_build:
 	set -e ; \
-	for py in $(PYVERS); do \
+	for py in $(PY2VERS) $(PY3VERS); do \
 		python$$py setup.py build ; \
 		python$$py-dbg setup.py build ; \
 	done
 	# build doc
-	PYTHONPATH=$(PYLIBPATH) ./gendoc.sh Levenshtein
+	PYTHONPATH=$(PYLIBPATH) ./gendoc.sh
 
 override_dh_auto_clean:
 	rm -f Levenshtein.html NEWS.xhtml
@@ -22,21 +23,25 @@
 
 override_dh_auto_install:
 	set -e ; \
-	for py in $(PYVERS); do \
+	for py in $(PY2VERS); do \
 		python$$py setup.py install --root $(CURDIR)/debian/python-levenshtein --install-layout=deb ; \
 		python$$py-dbg setup.py install --root $(CURDIR)/debian/python-levenshtein-dbg --install-layout=deb ; \
 	done
+	for py in $(PY3VERS); do \
+		python$$py setup.py install --root $(CURDIR)/debian/python3-levenshtein --install-layout=deb ; \
+		python$$py-dbg setup.py install --root $(CURDIR)/debian/python3-levenshtein-dbg --install-layout=deb ; \
+	done
 	find $(CURDIR)/debian/python-levenshtein-dbg -type f -name "*.egg-info" -delete
+	find $(CURDIR)/debian/python3-levenshtein-dbg -type f -name "*.egg-info" -delete
 
 override_dh_installdocs:
-	dh_installdocs README NEWS Levenshtein.html
+	dh_installdocs README.rst NEWS NEWS.xhtml Levenshtein.html
 
 override_dh_installexamples:
 	dh_installexamples StringMatcher.py
 
 override_dh_strip:
 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
-	dh_strip --dbg-package=python-levenshtein-dbg
-	# fix python-debug-in-wrong-location lintian warning
-	cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
+	dh_strip -p python-levenshtein --dbg-package=python-levenshtein-dbg
+	dh_strip -p python3-levenshtein --dbg-package=python3-levenshtein-dbg
 endif




More information about the Python-modules-commits mailing list