Hello community,
here is the log from the commit of package python-yubico for openSUSE:Factory checked in at 2016-02-29 09:14:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-yubico (Old)
and /work/SRC/openSUSE:Factory/.python-yubico.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-yubico"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-yubico/python-yubico.changes 2015-11-10 10:03:01.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-yubico.new/python-yubico.changes 2016-02-29 09:15:54.000000000 +0100
@@ -1,0 +2,10 @@
+Tue Feb 23 11:48:24 UTC 2016 - michael@stroeder.com
+
+- update to 1.3.2
+ * yubico/yubikey_usb_hid.py: change logic for pgm seq if no
+ config is valid, seq 0 is ok
+ * yubico/yubikey_usb_hid.py: that the new sequence is 0 is also ok
+ * yubico/yubikey_frame.py: Added comments explaining debug data.
+ * Solved: Unlock code couldn't be set
+
+-------------------------------------------------------------------
Old:
----
python-yubico-1.3.1.tar.gz
python-yubico-1.3.1.tar.gz.sig
New:
----
python-yubico-1.3.2.tar.gz
python-yubico-1.3.2.tar.gz.sig
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-yubico.spec ++++++
--- /var/tmp/diff_new_pack.VU8yKY/_old 2016-02-29 09:15:55.000000000 +0100
+++ /var/tmp/diff_new_pack.VU8yKY/_new 2016-02-29 09:15:55.000000000 +0100
@@ -22,7 +22,7 @@
BuildArch: noarch
%endif
Name: python-yubico
-Version: 1.3.1
+Version: 1.3.2
Release: 0
Summary: Python code for talking to Yubico's YubiKeys
License: BSD-2-Clause
++++++ python-yubico-1.3.1.tar.gz -> python-yubico-1.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/ChangeLog new/python-yubico-1.3.2/ChangeLog
--- old/python-yubico-1.3.1/ChangeLog 2015-10-01 15:59:08.000000000 +0200
+++ new/python-yubico-1.3.2/ChangeLog 2016-02-23 12:24:39.000000000 +0100
@@ -1,3 +1,32 @@
+2016-02-23 Dain Nilsson
+
+ * NEWS, release.py, yubico/yubico_version.py: Bumped version and
+ updated NEWS for release.
+
+2015-11-03 Klas Lindfors
+
+ * yubico/yubikey_usb_hid.py: change logic for pgm seq if no config is valid, seq 0 is ok
+
+2015-11-03 Klas Lindfors
+
+ * yubico/yubikey_usb_hid.py: that the new sequence is 0 is also ok
+
+2015-10-07 Dain Nilsson
+
+ * yubico/yubikey_frame.py: Added comments explaining debug data.
+
+2015-10-07 Dain Nilsson
+
+ * : Merge pull request #31 from axhoffmann/master Solved: Unlock code couldn't be set
+
+2015-10-01 Dain Nilsson
+
+ * MANIFEST.in: Include tests.
+
+2015-10-01 Dain Nilsson
+
+ * NEWS, yubico/yubico_version.py: Bumped version post release.
+
2015-10-01 Dain Nilsson
* NEWS, yubico/yubico_version.py: Update version and NEWS for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/MANIFEST.in new/python-yubico-1.3.2/MANIFEST.in
--- old/python-yubico-1.3.1/MANIFEST.in 2015-10-01 15:51:28.000000000 +0200
+++ new/python-yubico-1.3.2/MANIFEST.in 2016-02-23 12:21:35.000000000 +0100
@@ -5,3 +5,4 @@
include examples/*
include util/*
include doc/*
+recursive-include test *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/NEWS new/python-yubico-1.3.2/NEWS
--- old/python-yubico-1.3.1/NEWS 2015-10-01 15:58:46.000000000 +0200
+++ new/python-yubico-1.3.2/NEWS 2016-02-23 12:21:35.000000000 +0100
@@ -1,3 +1,7 @@
+* Version 1.3.2 (released 2016-02-23)
+ ** Various fixes to sequence number checking.
+ ** Fix issue with using an access code with the debug flag on.
+
* Version 1.3.1 (released 2015-10-01)
** Fixup release to correct packages listed in last release.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/PKG-INFO new/python-yubico-1.3.2/PKG-INFO
--- old/python-yubico-1.3.1/PKG-INFO 2015-10-01 15:59:08.000000000 +0200
+++ new/python-yubico-1.3.2/PKG-INFO 2016-02-23 12:24:40.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-yubico
-Version: 1.3.1
+Version: 1.3.2
Summary: Python code for talking to Yubico's YubiKeys
Home-page: https://github.com/Yubico/python-yubico
Author: Yubico Open Source Maintainers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/python_yubico.egg-info/PKG-INFO new/python-yubico-1.3.2/python_yubico.egg-info/PKG-INFO
--- old/python-yubico-1.3.1/python_yubico.egg-info/PKG-INFO 2015-10-01 15:59:08.000000000 +0200
+++ new/python-yubico-1.3.2/python_yubico.egg-info/PKG-INFO 2016-02-23 12:24:39.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-yubico
-Version: 1.3.1
+Version: 1.3.2
Summary: Python code for talking to Yubico's YubiKeys
Home-page: https://github.com/Yubico/python-yubico
Author: Yubico Open Source Maintainers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/python_yubico.egg-info/SOURCES.txt new/python-yubico-1.3.2/python_yubico.egg-info/SOURCES.txt
--- old/python-yubico-1.3.1/python_yubico.egg-info/SOURCES.txt 2015-10-01 15:59:08.000000000 +0200
+++ new/python-yubico-1.3.2/python_yubico.egg-info/SOURCES.txt 2016-02-23 12:24:39.000000000 +0100
@@ -19,7 +19,12 @@
python_yubico.egg-info/requires.txt
python_yubico.egg-info/top_level.txt
test/__init__.py
-test/__init__.pyc
+test/soft/__init__.py
+test/soft/test_yubico.py
+test/soft/test_yubikey_config.py
+test/soft/test_yubikey_frame.py
+test/usb/__init__.py
+test/usb/test_yubikey_usb_hid.py
util/yubikey-totp
util/yubikey-totp.1
yubico/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/release.py new/python-yubico-1.3.2/release.py
--- old/python-yubico-1.3.1/release.py 2015-10-01 15:51:09.000000000 +0200
+++ new/python-yubico-1.3.2/release.py 2016-02-23 12:21:35.000000000 +0100
@@ -123,9 +123,8 @@
if not self.skip_tests:
self.run_command('check')
- # Nosetests calls sys.exit(status)
try:
- self.run_command('nosetests')
+ self.run_command('test')
except SystemExit as e:
if e.code != 0:
raise DistutilsSetupError("There were test failures!")
Files old/python-yubico-1.3.1/test/__init__.pyc and new/python-yubico-1.3.2/test/__init__.pyc differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/test/soft/__init__.py new/python-yubico-1.3.2/test/soft/__init__.py
--- old/python-yubico-1.3.1/test/soft/__init__.py 1970-01-01 01:00:00.000000000 +0100
+++ new/python-yubico-1.3.2/test/soft/__init__.py 2016-02-23 12:21:35.000000000 +0100
@@ -0,0 +1,7 @@
+# Copyright (c) 2010, 2011, 2012 Yubico AB
+# See the file COPYING for licence statement.
+
+"""
+Unit tests testing logic of the library.
+These do not require a physical YubiKey to run.
+"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-yubico-1.3.1/test/soft/test_yubico.py new/python-yubico-1.3.2/test/soft/test_yubico.py
--- old/python-yubico-1.3.1/test/soft/test_yubico.py 1970-01-01 01:00:00.000000000 +0100
+++ new/python-yubico-1.3.2/test/soft/test_yubico.py 2016-02-23 12:21:35.000000000 +0100
@@ -0,0 +1,49 @@
+#!/usr/bin/env python
+#
+# Simple test cases for a Python version of the yubikey_crc16() function in ykcrc.c.
+#
+
+import struct
+import unittest
+import yubico.yubico_util as yubico_util
+from yubico.yubico_util import crc16
+
+CRC_OK_RESIDUAL=0xf0b8
+
+class TestCRC(unittest.TestCase):
+
+ def test_first(self):
+ """ Test CRC16 trivial case """
+ buffer = b'\x01\x02\x03\x04'
+ crc = crc16(buffer)
+ self.assertEqual(crc, 0xc66e)
+ return buffer,crc
+
+ def test_second(self):
+ """ Test CRC16 residual calculation """
+ buffer,crc = self.test_first()
+ # Append 1st complement for a "self-verifying" block -
+ # from example in Yubikey low level interface
+ crc_inv = 0xffff - crc
+ buffer += struct.pack(' %i\n" % (slot, old_pgm_seq, self._status.pgm_seq))
- if slot in [SLOT.CONFIG, SLOT.CONFIG2] or old_pgm_seq != 0:
- if self._status.pgm_seq == old_pgm_seq + 1:
- return
- elif self._status.pgm_seq == 1:
+ cfgs = self._status.valid_configs()
+ if not cfgs and self._status.pgm_seq == 0:
+ return
+ if self._status.pgm_seq == old_pgm_seq + 1:
return
raise YubiKeyUSBHIDError('YubiKey programming failed (seq %i not increased (%i))' % \