[Python-modules-commits] r25426 - in packages/unidecode/trunk/debian (9 files)
stefanor at users.alioth.debian.org
stefanor at users.alioth.debian.org
Wed Aug 7 13:06:02 UTC 2013
Date: Wednesday, August 7, 2013 @ 13:06:00
Author: stefanor
Revision: 25426
* New upstream release.
- Adds transliterations.
* Build with pybuild.
* Add binary package for PyPy: pypy-unidecode.
Added:
packages/unidecode/trunk/debian/patches/
packages/unidecode/trunk/debian/pypy-unidecode.install
packages/unidecode/trunk/debian/python-unidecode.install
packages/unidecode/trunk/debian/python3-unidecode.install
packages/unidecode/trunk/debian/tests/unittests-pypy
Modified:
packages/unidecode/trunk/debian/changelog
packages/unidecode/trunk/debian/control
packages/unidecode/trunk/debian/rules
packages/unidecode/trunk/debian/tests/control
Modified: packages/unidecode/trunk/debian/changelog
===================================================================
--- packages/unidecode/trunk/debian/changelog 2013-08-07 13:01:45 UTC (rev 25425)
+++ packages/unidecode/trunk/debian/changelog 2013-08-07 13:06:00 UTC (rev 25426)
@@ -1,3 +1,12 @@
+unidecode (0.04.13-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+ - Adds transliterations.
+ * Build with pybuild.
+ * Add binary package for PyPy: pypy-unidecode.
+
+ -- Stefano Rivera <stefanor at debian.org> Wed, 07 Aug 2013 13:43:01 +0200
+
unidecode (0.04.12-1) unstable; urgency=low
[ Stefano Rivera ]
Modified: packages/unidecode/trunk/debian/control
===================================================================
--- packages/unidecode/trunk/debian/control 2013-08-07 13:01:45 UTC (rev 25425)
+++ packages/unidecode/trunk/debian/control 2013-08-07 13:06:00 UTC (rev 25426)
@@ -5,6 +5,8 @@
Uploaders: Stefano Rivera <stefanor at debian.org>
Build-Depends:
debhelper (>= 8.1),
+ dh-python,
+ pypy,
python-all (>= 2.6.6-3~),
python3-all (>= 3.1.2-6~)
X-Python-Version: >= 2.6
@@ -36,6 +38,27 @@
.
unidecode is a Python port of the Text::Unidecode Perl module.
+Package: pypy-unidecode
+Architecture: all
+Depends: ${misc:Depends}, ${pypy:Depends}
+Description: ASCII transliterations of Unicode text (PyPy module)
+ It often happens that you have text data in Unicode, but you need to represent
+ it in ASCII for display. One could represent non-roman Unicode characters as
+ "???" or "\\15BA\\15A0\\1610", but neither is useful to the user reading the
+ text.
+ .
+ Unidecode tries to represent it in ASCII characters (i.e., the universally
+ displayable characters between 0x00 and 0x7F), where the compromises taken
+ when mapping between two character sets are chosen to be near what a human
+ with a US keyboard would choose.
+ .
+ This module generally produces better results than simply stripping accents
+ from characters (which can be done in Python with built-in functions). It is
+ based on hand-tuned character mappings that for example also contain ASCII
+ approximations for symbols and non-Latin alphabets.
+ .
+ unidecode is a Python port of the Text::Unidecode Perl module for PyPy.
+
Package: python3-unidecode
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Added: packages/unidecode/trunk/debian/pypy-unidecode.install
===================================================================
--- packages/unidecode/trunk/debian/pypy-unidecode.install (rev 0)
+++ packages/unidecode/trunk/debian/pypy-unidecode.install 2013-08-07 13:06:00 UTC (rev 25426)
@@ -0,0 +1 @@
+/usr/lib/pypy/dist-packages
Added: packages/unidecode/trunk/debian/python-unidecode.install
===================================================================
--- packages/unidecode/trunk/debian/python-unidecode.install (rev 0)
+++ packages/unidecode/trunk/debian/python-unidecode.install 2013-08-07 13:06:00 UTC (rev 25426)
@@ -0,0 +1 @@
+/usr/lib/python2.*/*-packages
Added: packages/unidecode/trunk/debian/python3-unidecode.install
===================================================================
--- packages/unidecode/trunk/debian/python3-unidecode.install (rev 0)
+++ packages/unidecode/trunk/debian/python3-unidecode.install 2013-08-07 13:06:00 UTC (rev 25426)
@@ -0,0 +1 @@
+/usr/lib/python3*/*-packages
Modified: packages/unidecode/trunk/debian/rules
===================================================================
--- packages/unidecode/trunk/debian/rules 2013-08-07 13:01:45 UTC (rev 25425)
+++ packages/unidecode/trunk/debian/rules 2013-08-07 13:06:00 UTC (rev 25426)
@@ -1,39 +1,4 @@
#!/usr/bin/make -f
-PYVERS := $(shell pyversions -r)
-PY3VERS := $(shell py3versions -r)
-
%:
- dh $@ --with python2,python3
-
-override_dh_auto_build:
- set -ex; \
- for py in $(PYVERS) $(PY3VERS); do \
- $$py setup.py build; \
- done
-
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- set -ex; \
- for py in $(PYVERS) $(PY3VERS); do \
- $$py setup.py test; \
- done
-endif
-
-override_dh_auto_install:
- set -ex; \
- for py in $(PYVERS); do \
- $$py setup.py install --skip-build --no-compile \
- --root debian/python-unidecode \
- --install-layout=deb; \
- done
- set -ex; \
- for py in $(PY3VERS); do \
- $$py setup.py install --skip-build --no-compile \
- --root debian/python3-unidecode \
- --install-layout=deb; \
- done
-
-override_dh_auto_clean:
- rm -rf build
- find . \( -name '*.pyc' -o -name __pycache__ \) -delete
+ dh $@ --with python2,python3,pypy --buildsystem pybuild
Modified: packages/unidecode/trunk/debian/tests/control
===================================================================
--- packages/unidecode/trunk/debian/tests/control 2013-08-07 13:01:45 UTC (rev 25425)
+++ packages/unidecode/trunk/debian/tests/control 2013-08-07 13:06:00 UTC (rev 25426)
@@ -1,5 +1,8 @@
Tests: unittests
Depends: python-unidecode, python-all
+Tests: unittests-pypy
+Depends: pypy-unidecode, pypy
+
Tests: unittests3
Depends: python3-unidecode, python3-all
Added: packages/unidecode/trunk/debian/tests/unittests-pypy
===================================================================
--- packages/unidecode/trunk/debian/tests/unittests-pypy (rev 0)
+++ packages/unidecode/trunk/debian/tests/unittests-pypy 2013-08-07 13:06:00 UTC (rev 25426)
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -efu
+
+cp -a tests "$ADTTMP"
+cd "$ADTTMP"
+
+echo "=== pypy ==="
+pypy tests/basic_2.py 2>&1
Property changes on: packages/unidecode/trunk/debian/tests/unittests-pypy
___________________________________________________________________
Added: svn:executable
+ *
More information about the Python-modules-commits
mailing list