[Python-modules-commits] r21371 - in packages/python-byteplay/trunk/debian (3 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Mon Apr 23 12:11:01 UTC 2012
Date: Monday, April 23, 2012 @ 12:11:00
Author: jwilk
Revision: 21371
Test more comprehensively: try to re-bytecopile whole Python standard library.
Added:
packages/python-byteplay/trunk/debian/run-tests.py
Modified:
packages/python-byteplay/trunk/debian/changelog
packages/python-byteplay/trunk/debian/rules
Modified: packages/python-byteplay/trunk/debian/changelog
===================================================================
--- packages/python-byteplay/trunk/debian/changelog 2012-04-23 11:49:45 UTC (rev 21370)
+++ packages/python-byteplay/trunk/debian/changelog 2012-04-23 12:11:00 UTC (rev 21371)
@@ -11,8 +11,10 @@
option, but in Debian we use pure distutils.
* Add â<< 2.8â to XS-Python-Version. The package requires porting to each
Python version separately.
+ * Test more comprehensively: try to re-bytecopile whole Python standard
+ library.
- -- Jakub Wilk <jwilk at debian.org> Mon, 23 Apr 2012 13:14:11 +0200
+ -- Jakub Wilk <jwilk at debian.org> Mon, 23 Apr 2012 14:05:20 +0200
python-byteplay (0.2-1) unstable; urgency=low
Modified: packages/python-byteplay/trunk/debian/rules
===================================================================
--- packages/python-byteplay/trunk/debian/rules 2012-04-23 11:49:45 UTC (rev 21370)
+++ packages/python-byteplay/trunk/debian/rules 2012-04-23 12:11:00 UTC (rev 21371)
@@ -1,6 +1,7 @@
#!/usr/bin/make -f
export PYTHONWARNINGS=d
+export PYTHONPATH=.
python_all = pyversions -r | tr ' ' '\n' | xargs -t -I {} env {}
@@ -17,7 +18,7 @@
build/stamp:
dh_testdir
ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
- $(python_all) byteplay.py .
+ $(python_all) debian/run-tests.py
endif
$(python_all) setup.py build
sed -n -r -e 's/^ {8}//p' PKG-INFO > build/README
Added: packages/python-byteplay/trunk/debian/run-tests.py
===================================================================
--- packages/python-byteplay/trunk/debian/run-tests.py (rev 0)
+++ packages/python-byteplay/trunk/debian/run-tests.py 2012-04-23 12:11:00 UTC (rev 21371)
@@ -0,0 +1,30 @@
+#!/usr/bin/python
+
+import os
+import re
+import shutil
+import sys
+import tempfile
+
+import byteplay
+
+def main():
+ print >>sys.stderr, 'byteplay.__file__ = %r' % (byteplay.__file__,)
+ source_dir = os.path.dirname(os.__file__)
+ os.chdir(source_dir)
+ target_dir = tempfile.mkdtemp(prefix='byteplay-test')
+ is_name_interesting = re.compile('^\w+(?:[.]py)?$').match
+ try:
+ def ignore(root, names):
+ root = root[2:]
+ return [name for name in names if not is_name_interesting(name)]
+ shutil.copytree('.', os.path.join(target_dir, 'Lib'), ignore=ignore)
+ sys.argv[1:] = [target_dir]
+ byteplay.main()
+ finally:
+ shutil.rmtree(target_dir)
+
+if __name__ == '__main__':
+ main()
+
+# vim:ts=4 sw=4 et
Property changes on: packages/python-byteplay/trunk/debian/run-tests.py
___________________________________________________________________
Added: svn:mime-type
+ text/x-python
More information about the Python-modules-commits
mailing list