debian/0000775000000000000000000000000011745251207007174 5ustar debian/compat0000664000000000000000000000000211721241057010366 0ustar 7 debian/run-tests.py0000664000000000000000000000137311745243324011517 0ustar #!/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 debian/control0000664000000000000000000000173111745234626010607 0ustar Source: python-byteplay Section: python Priority: optional Maintainer: Jakub Wilk Uploaders: Debian Python Modules Team Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-byteplay/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-byteplay/trunk/ Build-Depends: debhelper (>= 7), python-support (>= 0.90), python-all (>= 2.4), XS-Python-Version: >= 2.4, << 2.8 Standards-Version: 3.9.3 Homepage: http://code.google.com/p/byteplay Package: python-byteplay Architecture: all Depends: ${misc:Depends}, ${python:Depends} Description: Python bytecode manipulation library byteplay lets you convert Python code objects into equivalent objects which are easy to play with, and lets you convert those objects back into living Python code objects. It's useful for applying crazy transformations on Python functions, and is also useful in learning Python byte code intricacies. debian/patches/0000775000000000000000000000000011745251207010623 5ustar debian/patches/no-setuptools.diff0000664000000000000000000000167611727711276014331 0ustar Description: Don't use setuptools. Author: Jakub Wilk Forwarded: not-needed Last-Update: 2012-02-22 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/python -from setuptools import setup, find_packages +from distutils.core import setup from byteplay import __version__ as lib_version setup( @@ -11,7 +11,6 @@ download_url='http://code.google.com/p/byteplay/downloads/list', version = lib_version, py_modules = ['byteplay'], - zip_safe = True, license='LGPL', description='bytecode manipulation library', long_description = """byteplay lets you convert Python code objects into equivalent objects which are easy to play with, and lets you convert those objects back into living Python code objects. It's useful for applying crazy transformations on Python functions, and is also useful in learning Python byte code intricacies. It currently works with Python 2.4 and up. debian/patches/series0000664000000000000000000000002311721241057012027 0ustar no-setuptools.diff debian/copyright0000664000000000000000000000234311724247471011136 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: byteplay Upstream-Contact: Noam Raph Source: http://code.google.com/p/byteplay/downloads/list Files: * Copyright: 2010, Noam Raphael License: LGPL-2+ Files: debian/* Copyright: 2012, Jakub Wilk License: LGPL-2+ License: LGPL-2+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library 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 Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU Lesser General Public License version 2 can be found in the file ‘/usr/share/common-licenses/GPL-2’. debian/watch0000664000000000000000000000014611721241057010222 0ustar version=3 http://code.google.com/p/byteplay/downloads/list?can=1 \ .*/files/byteplay-([0-9.]+).tar.gz debian/changelog0000664000000000000000000000163211745251177011056 0ustar python-byteplay (0.2-2) unstable; urgency=low * Bump standards version to 3.9.3. + Update debian/copyright URI. * Export PYTHONWARNINGS=d in debian/rules to enable all warnings in Python code. * Make binary(-indep) target depend on build stamp file rather than build target. * Don't pass control file path to pyversions explicitly. * Remove ‘zip_safe = True’ from setup.py; this is a setuptools-specific 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. * Add DEP-8 tests. -- Jakub Wilk Mon, 23 Apr 2012 15:00:23 +0200 python-byteplay (0.2-1) unstable; urgency=low * Initial release (closes: #660745). -- Jakub Wilk Wed, 22 Feb 2012 20:30:46 +0100 debian/source/0000775000000000000000000000000011745251207010474 5ustar debian/source/format0000664000000000000000000000001411721241057011676 0ustar 3.0 (quilt) debian/source/options0000664000000000000000000000005111721241057012102 0ustar extend-diff-ignore = "^[^/]+\.egg-info/" debian/rules0000775000000000000000000000175611745243324010266 0ustar #!/usr/bin/make -f export PYTHONWARNINGS=d export PYTHONPATH=. python_all = pyversions -r | tr ' ' '\n' | xargs -t -I {} env {} .PHONY: clean clean: dh_testdir dh_clean rm -rf build find -name '*.py[co]' -delete .PHONY: build build-arch build-indep build build-indep: build/stamp build/stamp: dh_testdir ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" "" $(python_all) debian/run-tests.py endif $(python_all) setup.py build sed -n -r -e 's/^ {8}//p' PKG-INFO > build/README touch $(@) .PHONY: binary binary-arch binary-indep binary binary-indep: build/stamp dh_testdir dh_testroot dh_prep $(python_all) setup.py install --prefix=/usr --root=debian/python-byteplay/ sed -i 's/^Metadata-Version: 1\.0$$/Metadata-Version: 1.1/' debian/*/usr/lib/python2.*/*-packages/*.egg-info dh_installdocs build/README dh_installexamples examples/*.py dh_installchangelogs dh_pysupport dh_compress -X examples dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb # vim:ts=4 sw=4 noet debian/tests/0000775000000000000000000000000011745251207010336 5ustar debian/tests/control0000664000000000000000000000010011745250515011731 0ustar Tests: tests Features: no-build-needed Depends: python-byteplay debian/tests/tests0000775000000000000000000000020511745250515011424 0ustar #!/bin/sh #!/bin/sh set -e export PYTHONWARNINGS=d pyversions -i \ | tr ' ' '\n' \ | xargs -I {} env {} \ debian/run-tests.py 2>&1