[Python-modules-commits] r21375 - in packages/python-byteplay/tags (13 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Mon Apr 23 13:08:05 UTC 2012


    Date: Monday, April 23, 2012 @ 13:08:04
  Author: jwilk
Revision: 21375

[svn-buildpackage] Tagging python-byteplay 0.2-2

Added:
  packages/python-byteplay/tags/0.2-2/
  packages/python-byteplay/tags/0.2-2/debian/changelog
    (from rev 21374, packages/python-byteplay/trunk/debian/changelog)
  packages/python-byteplay/tags/0.2-2/debian/control
    (from rev 21369, packages/python-byteplay/trunk/debian/control)
  packages/python-byteplay/tags/0.2-2/debian/copyright
    (from rev 20657, packages/python-byteplay/trunk/debian/copyright)
  packages/python-byteplay/tags/0.2-2/debian/patches/no-setuptools.diff
    (from rev 20768, packages/python-byteplay/trunk/debian/patches/no-setuptools.diff)
  packages/python-byteplay/tags/0.2-2/debian/rules
    (from rev 21371, packages/python-byteplay/trunk/debian/rules)
  packages/python-byteplay/tags/0.2-2/debian/run-tests.py
    (from rev 21371, packages/python-byteplay/trunk/debian/run-tests.py)
  packages/python-byteplay/tags/0.2-2/debian/tests/
Deleted:
  packages/python-byteplay/tags/0.2-2/debian/changelog
  packages/python-byteplay/tags/0.2-2/debian/control
  packages/python-byteplay/tags/0.2-2/debian/copyright
  packages/python-byteplay/tags/0.2-2/debian/patches/no-setuptools.diff
  packages/python-byteplay/tags/0.2-2/debian/rules

Deleted: packages/python-byteplay/tags/0.2-2/debian/changelog
===================================================================
--- packages/python-byteplay/trunk/debian/changelog	2012-02-22 19:44:08 UTC (rev 20537)
+++ packages/python-byteplay/tags/0.2-2/debian/changelog	2012-04-23 13:08:04 UTC (rev 21375)
@@ -1,5 +0,0 @@
-python-byteplay (0.2-1) unstable; urgency=low
-
-  * Initial release (closes: #660745).
-
- -- Jakub Wilk <jwilk at debian.org>  Wed, 22 Feb 2012 20:30:46 +0100

Copied: packages/python-byteplay/tags/0.2-2/debian/changelog (from rev 21374, packages/python-byteplay/trunk/debian/changelog)
===================================================================
--- packages/python-byteplay/tags/0.2-2/debian/changelog	                        (rev 0)
+++ packages/python-byteplay/tags/0.2-2/debian/changelog	2012-04-23 13:08:04 UTC (rev 21375)
@@ -0,0 +1,24 @@
+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 <jwilk at debian.org>  Mon, 23 Apr 2012 15:00:23 +0200
+
+python-byteplay (0.2-1) unstable; urgency=low
+
+  * Initial release (closes: #660745).
+
+ -- Jakub Wilk <jwilk at debian.org>  Wed, 22 Feb 2012 20:30:46 +0100

Deleted: packages/python-byteplay/tags/0.2-2/debian/control
===================================================================
--- packages/python-byteplay/trunk/debian/control	2012-02-22 19:44:08 UTC (rev 20537)
+++ packages/python-byteplay/tags/0.2-2/debian/control	2012-04-23 13:08:04 UTC (rev 21375)
@@ -1,23 +0,0 @@
-Source: python-byteplay
-Section: python
-Priority: optional
-Maintainer: Jakub Wilk <jwilk at debian.org>
-Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-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
-Standards-Version: 3.9.2
-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.

Copied: packages/python-byteplay/tags/0.2-2/debian/control (from rev 21369, packages/python-byteplay/trunk/debian/control)
===================================================================
--- packages/python-byteplay/tags/0.2-2/debian/control	                        (rev 0)
+++ packages/python-byteplay/tags/0.2-2/debian/control	2012-04-23 13:08:04 UTC (rev 21375)
@@ -0,0 +1,23 @@
+Source: python-byteplay
+Section: python
+Priority: optional
+Maintainer: Jakub Wilk <jwilk at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+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.

Deleted: packages/python-byteplay/tags/0.2-2/debian/copyright
===================================================================
--- packages/python-byteplay/trunk/debian/copyright	2012-02-22 19:44:08 UTC (rev 20537)
+++ packages/python-byteplay/tags/0.2-2/debian/copyright	2012-04-23 13:08:04 UTC (rev 21375)
@@ -1,30 +0,0 @@
-Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&pathrev=174
-Upstream-Name: byteplay
-Upstream-Contact: Noam Raph <noamraph at gmail.com>
-Source: http://code.google.com/p/byteplay/downloads/list
-
-Files: *
-Copyright: 2010, Noam Raphael <noamraph at gmail.com>
-License: LGPL-2+
-
-Files: debian/*
-Copyright: 2012, Jakub Wilk <jwilk at debian.org>
-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’.

Copied: packages/python-byteplay/tags/0.2-2/debian/copyright (from rev 20657, packages/python-byteplay/trunk/debian/copyright)
===================================================================
--- packages/python-byteplay/tags/0.2-2/debian/copyright	                        (rev 0)
+++ packages/python-byteplay/tags/0.2-2/debian/copyright	2012-04-23 13:08:04 UTC (rev 21375)
@@ -0,0 +1,30 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: byteplay
+Upstream-Contact: Noam Raph <noamraph at gmail.com>
+Source: http://code.google.com/p/byteplay/downloads/list
+
+Files: *
+Copyright: 2010, Noam Raphael <noamraph at gmail.com>
+License: LGPL-2+
+
+Files: debian/*
+Copyright: 2012, Jakub Wilk <jwilk at debian.org>
+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’.

Deleted: packages/python-byteplay/tags/0.2-2/debian/patches/no-setuptools.diff
===================================================================
--- packages/python-byteplay/trunk/debian/patches/no-setuptools.diff	2012-02-22 19:44:08 UTC (rev 20537)
+++ packages/python-byteplay/tags/0.2-2/debian/patches/no-setuptools.diff	2012-04-23 13:08:04 UTC (rev 21375)
@@ -1,15 +0,0 @@
-Description: Don't use setuptools.
-Author: Jakub Wilk <jwilk at debian.org>
-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(

Copied: packages/python-byteplay/tags/0.2-2/debian/patches/no-setuptools.diff (from rev 20768, packages/python-byteplay/trunk/debian/patches/no-setuptools.diff)
===================================================================
--- packages/python-byteplay/tags/0.2-2/debian/patches/no-setuptools.diff	                        (rev 0)
+++ packages/python-byteplay/tags/0.2-2/debian/patches/no-setuptools.diff	2012-04-23 13:08:04 UTC (rev 21375)
@@ -0,0 +1,23 @@
+Description: Don't use setuptools.
+Author: Jakub Wilk <jwilk at debian.org>
+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.

Deleted: packages/python-byteplay/tags/0.2-2/debian/rules
===================================================================
--- packages/python-byteplay/trunk/debian/rules	2012-02-22 19:44:08 UTC (rev 20537)
+++ packages/python-byteplay/tags/0.2-2/debian/rules	2012-04-23 13:08:04 UTC (rev 21375)
@@ -1,42 +0,0 @@
-#!/usr/bin/make -f
-
-python_all = pyversions -r $(CURDIR)/debian/control | 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) byteplay.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
-	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

Copied: packages/python-byteplay/tags/0.2-2/debian/rules (from rev 21371, packages/python-byteplay/trunk/debian/rules)
===================================================================
--- packages/python-byteplay/tags/0.2-2/debian/rules	                        (rev 0)
+++ packages/python-byteplay/tags/0.2-2/debian/rules	2012-04-23 13:08:04 UTC (rev 21375)
@@ -0,0 +1,45 @@
+#!/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

Copied: packages/python-byteplay/tags/0.2-2/debian/run-tests.py (from rev 21371, packages/python-byteplay/trunk/debian/run-tests.py)
===================================================================
--- packages/python-byteplay/tags/0.2-2/debian/run-tests.py	                        (rev 0)
+++ packages/python-byteplay/tags/0.2-2/debian/run-tests.py	2012-04-23 13:08:04 UTC (rev 21375)
@@ -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




More information about the Python-modules-commits mailing list