Hello community, here is the log from the commit of package python-gnupg for openSUSE:Factory checked in at 2012-04-17 07:48:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gnupg (Old) and /work/SRC/openSUSE:Factory/.python-gnupg.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gnupg", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python-gnupg/python-gnupg.changes 2012-01-19 16:57:56.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-gnupg.new/python-gnupg.changes 2012-04-17 07:48:51.000000000 +0200 @@ -1,0 +2,9 @@ +Fri Mar 30 04:37:19 UTC 2012 - alexan...@exatati.com.br + +- Update to 0.2.9: + - Fixed Issue #36 : Now handles CARDCTRL and POLICY_URL messages. + - Fixed Issue #40 : Now handles DECRYPTION_INFO, DECRYPTION_FAILED + and DECRYPTION_OKAY messages. The random_binary_data file is no + longer shipped, but constructed by the test suite if needed. + +------------------------------------------------------------------- Old: ---- python-gnupg-0.2.8.tar.bz2 New: ---- python-gnupg-0.2.9.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gnupg.spec ++++++ --- /var/tmp/diff_new_pack.oV9wTb/_old 2012-04-17 07:48:52.000000000 +0200 +++ /var/tmp/diff_new_pack.oV9wTb/_new 2012-04-17 07:48:52.000000000 +0200 @@ -15,19 +15,18 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%define mod_name gnupg - -Name: python-%{mod_name} -Version: 0.2.8 +Name: python-gnupg +Version: 0.2.9 Release: 0 Url: http://code.google.com/p/python-gnupg/ Summary: A wrapper for the Gnu Privacy Guard (GPG or GnuPG) License: BSD-3-Clause Group: Development/Languages/Python -Source: python-%{mod_name}-%{version}.tar.bz2 +Source: python-gnupg-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?suse_version} @@ -41,18 +40,14 @@ This module allows easy access to GnuPG's key management, encryption and signature functionality from Python programs. It is intended for use with Python 2.4 or greater. %prep -%setup -q -n python-%{mod_name}-%{version} +%setup -q -n python-gnupg-%{version} %build -export CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root,-) %doc LICENSE README ++++++ python-gnupg-0.2.8.tar.bz2 -> python-gnupg-0.2.9.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gnupg-0.2.8/LICENSE new/python-gnupg-0.2.9/LICENSE --- old/python-gnupg-0.2.8/LICENSE 2011-01-27 18:22:34.000000000 +0100 +++ new/python-gnupg-0.2.9/LICENSE 2012-02-08 10:57:01.000000000 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2008-2011 by Vinay Sajip. +Copyright (c) 2008-2012 by Vinay Sajip. All rights reserved. Redistribution and use in source and binary forms, with or without diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gnupg-0.2.8/PKG-INFO new/python-gnupg-0.2.9/PKG-INFO --- old/python-gnupg-0.2.8/PKG-INFO 2011-09-02 18:23:06.000000000 +0200 +++ new/python-gnupg-0.2.9/PKG-INFO 2012-03-29 23:15:52.000000000 +0200 @@ -1,11 +1,11 @@ Metadata-Version: 1.0 Name: python-gnupg -Version: 0.2.8 +Version: 0.2.9 Summary: A wrapper for the Gnu Privacy Guard (GPG or GnuPG) Home-page: http://www.red-dove.com/python_gnupg.html Author: Vinay Sajip Author-email: vinay_sa...@red-dove.com -License: Copyright (C) 2008-2011 by Vinay Sajip. All Rights Reserved. See LICENSE for license. +License: Copyright (C) 2008-2012 by Vinay Sajip. All Rights Reserved. See LICENSE for license. Description: This module allows easy access to GnuPG's key management, encryption and signature functionality from Python programs. It is intended for use with Python 2.4 or greater. Platform: No particular restrictions Classifier: Development Status :: 5 - Production/Stable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gnupg-0.2.8/gnupg.py new/python-gnupg-0.2.9/gnupg.py --- old/python-gnupg-0.2.8/gnupg.py 2011-09-02 14:18:19.000000000 +0200 +++ new/python-gnupg-0.2.9/gnupg.py 2012-03-29 22:13:00.000000000 +0200 @@ -27,14 +27,15 @@ and so does not work on Windows). Renamed to gnupg.py to avoid confusion with the previous versions. -Modifications Copyright (C) 2008-2011 Vinay Sajip. All rights reserved. +Modifications Copyright (C) 2008-2012 Vinay Sajip. All rights reserved. A unittest harness (test_gnupg.py) has also been added. """ import locale +__version__ = "0.2.9" __author__ = "Vinay Sajip" -__date__ = "$02-Sep-2011 13:18:12$" +__date__ = "$29-Mar-2012 21:12:58$" try: from io import StringIO @@ -143,7 +144,8 @@ def handle_status(self, key, value): if key in ("TRUST_UNDEFINED", "TRUST_NEVER", "TRUST_MARGINAL", "TRUST_FULLY", "TRUST_ULTIMATE", "RSA_OR_IDEA", "NODATA", - "IMPORT_RES", "PLAINTEXT", "PLAINTEXT_LENGTH"): + "IMPORT_RES", "PLAINTEXT", "PLAINTEXT_LENGTH", + "POLICY_URL", "DECRYPTION_INFO", "DECRYPTION_OKAY"): pass elif key == "BADSIG": self.valid = False @@ -171,6 +173,10 @@ cls, self.timestamp) = value.split()[:5] self.status = 'signature error' + elif key == "DECRYPTION_FAILED": + self.valid = False + self.key_id = value + self.status = 'decryption failed' elif key == "NO_PUBKEY": self.valid = False self.key_id = value @@ -341,7 +347,8 @@ def handle_status(self, key, value): if key in ("ENC_TO", "USERID_HINT", "GOODMDC", "END_DECRYPTION", - "BEGIN_SIGNING", "NO_SECKEY", "ERROR", "NODATA"): + "BEGIN_SIGNING", "NO_SECKEY", "ERROR", "NODATA", + "CARDCTRL"): # in the case of ERROR, this is because a more specific error # message will have come first pass @@ -435,7 +442,7 @@ def handle_status(self, key, value): if key in ("USERID_HINT", "NEED_PASSPHRASE", "BAD_PASSPHRASE", - "GOOD_PASSPHRASE", "BEGIN_SIGNING"): + "GOOD_PASSPHRASE", "BEGIN_SIGNING", "CARDCTRL"): pass elif key == "SIG_CREATED": (self.type, Files old/python-gnupg-0.2.8/random_binary_data and new/python-gnupg-0.2.9/random_binary_data differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gnupg-0.2.8/setup.py new/python-gnupg-0.2.9/setup.py --- old/python-gnupg-0.2.8/setup.py 2011-05-11 09:43:55.000000000 +0200 +++ new/python-gnupg-0.2.9/setup.py 2012-02-08 10:56:42.000000000 +0100 @@ -1,20 +1,22 @@ from distutils.core import setup +from gnupg import __version__ as version + setup(name = "python-gnupg", description="A wrapper for the Gnu Privacy Guard (GPG or GnuPG)", long_description = "This module allows easy access to GnuPG's key \ management, encryption and signature functionality from Python programs. \ It is intended for use with Python 2.4 or greater.", - license="""Copyright (C) 2008-2011 by Vinay Sajip. All Rights Reserved. See LICENSE for license.""", - version = "0.2.8", - author = "Vinay Sajip", - author_email = "vinay_sa...@red-dove.com", - maintainer = "Vinay Sajip", - maintainer_email = "vinay_sa...@red-dove.com", - url = "http://www.red-dove.com/python_gnupg.html", - py_modules = ["gnupg"], - platforms = "No particular restrictions", - classifiers = [ + license="""Copyright (C) 2008-2012 by Vinay Sajip. All Rights Reserved. See LICENSE for license.""", + version=version, + author="Vinay Sajip", + author_email="vinay_sa...@red-dove.com", + maintainer="Vinay Sajip", + maintainer_email="vinay_sa...@red-dove.com", + url="http://www.red-dove.com/python_gnupg.html", + py_modules=["gnupg"], + platforms="No particular restrictions", + classifiers=[ 'Development Status :: 5 - Production/Stable', "Intended Audience :: Developers", 'License :: OSI Approved :: BSD License', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-gnupg-0.2.8/test_gnupg.py new/python-gnupg-0.2.9/test_gnupg.py --- old/python-gnupg-0.2.8/test_gnupg.py 2011-09-02 13:13:15.000000000 +0200 +++ new/python-gnupg-0.2.9/test_gnupg.py 2012-03-29 22:29:07.000000000 +0200 @@ -2,7 +2,7 @@ """ A test harness for gnupg.py. -Copyright (C) 2008-2011 Vinay Sajip. All rights reserved. +Copyright (C) 2008-2012 Vinay Sajip. All rights reserved. """ import doctest import logging @@ -253,6 +253,10 @@ logger.debug("ver: %r", verified.fingerprint) self.assertEqual(key.fingerprint, verified.fingerprint, "Fingerprints must match") + if not os.path.exists('random_binary_data'): + data_file = open('random_binary_data', 'wb') + data_file.write(os.urandom(5120 * 1024)) + data_file.close() data_file = open('random_binary_data', 'rb') sig = self.gpg.sign_file(data_file, keyid=key.fingerprint, passphrase='aable') -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org