debian/0000755000000000000000000000000012203147404007163 5ustar debian/patches/0000755000000000000000000000000012203147404010612 5ustar debian/patches/python3-compatible-tests.patch0000644000000000000000000000272212203146237016522 0ustar Ensure tests are working with Python3. Index: Cerealizer-0.7/test/regtest.py =================================================================== --- Cerealizer-0.7.orig/test/regtest.py 2006-06-17 00:05:55.000000000 +0200 +++ Cerealizer-0.7/test/regtest.py 2013-08-15 14:39:59.750049950 +0200 @@ -10,7 +10,7 @@ import cerealizer import unittest - +import imp class TestBasicType(unittest.TestCase): def setUp(self): @@ -43,7 +43,7 @@ def test_set2 (self): self.loads_dumps_and_compare(set([1, 2.2, "jiba"])) def test_dict1 (self): self.loads_dumps_and_compare({}) def test_dict2 (self): self.loads_dumps_and_compare({ "jiba" : 100, "other" : 0 }) - def test_dict3 (self): self.loads_dumps_and_compare({ "jiba" : range(100), "other" : { 1:2 } }) + def test_dict3 (self): self.loads_dumps_and_compare({ "jiba" : list(range(100)), "other" : { 1:2 } }) def test_None (self): self.loads_dumps_and_compare(None) @@ -228,7 +228,7 @@ o = OldObj() s = cerealizer.dumps(o) - reload(cerealizer) + imp.reload(cerealizer) class NewObj(object): def __init__(self): self.x = 2 @@ -283,7 +283,7 @@ def test_craked_file1(self): craked_file = "cereal1\n2\n__builtin__.dict\nfile\n0\nr0\nr1\n" - self.assertRaises(StandardError, lambda : cerealizer.loads(craked_file)) + self.assertRaises(Exception, lambda : cerealizer.loads(craked_file)) if __name__ == '__main__': unittest.main() debian/patches/no_bytecompilation.patch0000644000000000000000000000054111563027451015540 0ustar Don't do bytecompilation. This will be done by python-support. --- editobj-0.5.7.orig/setup.cfg 2006-04-27 15:27:46.666091448 +0200 +++ editobj-0.5.7/setup.cfg 2006-04-27 15:27:55.391764944 +0200 @@ -1,6 +1,6 @@ [install_lib] -compile = 1 -optimize = 1 +compile = 0 +optimize = 0 [sdist] force-manifest = 1 debian/patches/series0000644000000000000000000000007012203144014012016 0ustar no_bytecompilation.patch python3-compatible-tests.patch debian/changelog0000644000000000000000000000652712203147321011045 0ustar cerealizer (0.8.1-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Vincent Bernat ] * New upstream release * Bump Standards-Version to 3.9.4. * Switch to pybuilder and dh-python. * Update debian/copyright to machine-readable format. * Remove examples (they are not really examples). -- Vincent Bernat Thu, 15 Aug 2013 14:51:28 +0200 cerealizer (0.7-4) unstable; urgency=low * Bump Standards-Version to 3.8.4. * Switch to 3.0 (quilt) format. * Fix unittests to be able to run with Python 2.6. Closes: #571157. * Remove control.in, adjust depedencies. -- Vincent Bernat Tue, 02 Mar 2010 08:20:40 +0100 cerealizer (0.7-3) unstable; urgency=low * Invoke unit tests in a way that works with newer python-support. Closes: #516139. -- Vincent Bernat Sat, 21 Feb 2009 14:32:52 +0100 cerealizer (0.7-2) unstable; urgency=low [ Vincent Bernat ] * Upload to unstable with some misc packaging fixes: - Add missing ${misc:Depends} in debian/control. - Add description to patches. - Refer to GPL-2 file instead of just GPL in debian/copyright. [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn -- Vincent Bernat Sun, 15 Feb 2009 16:14:00 +0100 cerealizer (0.7-1) experimental; urgency=low * Adopt package. Thanks to Marc for his work. * New upstream release. * In debian/control: - switch to Standards-Version 3.8.0, no change required - add VCS fields * Run unittests on build. * Remove debian/pycompat which is not needed anymore. -- Vincent Bernat Sun, 31 Aug 2008 14:52:43 +0200 cerealizer (0.6-2) unstable; urgency=low * Moved homepage information to new control field. * Increased Standards-Version (no changes). -- Marc Dequènes (Duck) Sun, 02 Mar 2008 17:52:22 +0100 cerealizer (0.6-1) unstable; urgency=low * New upstream release. * Updated Enhances field, python-tofu is now included in python-soya. -- Marc Dequènes (Duck) Sun, 01 Jul 2007 12:42:25 +0200 cerealizer (0.5-1) unstable; urgency=low * New upstream release. -- Marc Dequènes (Duck) Mon, 31 Jul 2006 21:44:36 +0200 cerealizer (0.4-4) unstable; urgency=low * Do not create '.version' file, dh_pysupport does this for us now. -- Marc Dequènes (Duck) Tue, 27 Jun 2006 00:22:27 +0200 cerealizer (0.4-3) unstable; urgency=low * Rebuilt with improved Python tools, added 'debian/pycompat', and removed useless XS-/XB- fields. * Updated upstream homepage (part 2 ;-). -- Marc Dequènes (Duck) Mon, 26 Jun 2006 23:37:51 +0200 cerealizer (0.4-2) unstable; urgency=low * Comply with new policy (Closes: #373302). * Switched to debhelper compat 5. * Updated upstream homepage. -- Marc Dequènes (Duck) Sat, 17 Jun 2006 03:10:55 +0200 cerealizer (0.4-1) unstable; urgency=low * New upstream release. * Increased Standards-Version to 3.7.2.0 (no changes). -- Marc Dequènes (Duck) Sun, 11 Jun 2006 22:27:16 +0200 cerealizer (0.1-1) unstable; urgency=low * Initial Release. * Entering the Python Modules Packaging Team. -- Marc Dequènes (Duck) Thu, 6 Apr 2006 01:18:52 +0200 debian/copyright0000644000000000000000000000613712201741200011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Cerealizer Upstream-Contact: Jean-Baptiste Lamy Source: http://home.gna.org/oomadness/en/cerealizer/ Files: * Copyright: 2005-2012 Jean-Baptiste LAMY 2008 Peter Eckersley 2008 Steve Benson, Lann Martin License: Python Files: debian/* Copyright: 2003-2008 Marc Dequènes (Duck) 2008-2011 Vincent Bernat License: GPL-3+ License: Python PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- . 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. . 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. License: GPL-3+ On Debian systems, the complete text of the GNU General Public License version 3 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/watch0000644000000000000000000000014511563027324010222 0ustar version=2 http://download.gna.org/soya/ \ Cerealizer-(.*)\.tar\.bz2 \ debian uupdate debian/source/0000755000000000000000000000000012203147404010463 5ustar debian/source/format0000644000000000000000000000001411563027451011700 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212201735664010372 0ustar 7 debian/rules0000755000000000000000000000053012203146535010245 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- export PYBUILD_DESTDIR_python2=debian/python-cerealizer/ export PYBUILD_DESTDIR_python3=debian/python3-cerealizer/ %: dh $@ --with python2,python3 --buildsystem=pybuild override_dh_auto_test: PYBUILD_SYSTEM=custom \ PYBUILD_TEST_ARGS="{interpreter} test/regtest.py" dh_auto_test debian/control0000644000000000000000000000247612203147046010601 0ustar Source: cerealizer Section: python Priority: optional Maintainer: Vincent Bernat Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 7.0.50~), dh-python, python-all, python3-all Standards-Version: 3.9.4 Homepage: http://home.gna.org/oomadness/en/cerealizer/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/cerealizer/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/cerealizer/trunk/ Package: python-cerealizer Architecture: all Depends: ${python:Depends}, ${misc:Depends} Enhances: python-soya Description: secure pickle-like module for Python 2 It support basic types (int, string, unicode, tuple, list, dict, set,...), old and new-style classes (you need to register the class for security), object cycles, and it can be extended to support C-defined type. . This is the Python 2 version of the package. Package: python3-cerealizer Architecture: all Depends: ${python:Depends}, ${misc:Depends} Description: secure pickle-like module for Python 3 It support basic types (int, string, unicode, tuple, list, dict, set,...), old and new-style classes (you need to register the class for security), object cycles, and it can be extended to support C-defined type. . This is the Python 3 version of the package.