Hello community,

here is the log from the commit of package python-pyscard for openSUSE:Factory 
checked in at 2019-12-05 17:33:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyscard (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyscard.new.4691 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyscard"

Thu Dec  5 17:33:41 2019 rev:8 rq:750716 version:1.9.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyscard/python-pyscard.changes    
2019-04-04 12:09:00.821349020 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyscard.new.4691/python-pyscard.changes  
2019-12-05 17:33:44.249453289 +0100
@@ -1,0 +2,6 @@
+Sun Nov 24 16:44:11 UTC 2019 - Martin Hauke <[email protected]>
+
+- Update to version 1.9.9
+  * test: fix Exception test on 32-bits CPU
+
+-------------------------------------------------------------------

Old:
----
  pyscard-1.9.8.tar.gz

New:
----
  pyscard-1.9.9.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyscard.spec ++++++
--- /var/tmp/diff_new_pack.bTWSMr/_old  2019-12-05 17:33:44.657453231 +0100
+++ /var/tmp/diff_new_pack.bTWSMr/_new  2019-12-05 17:33:44.669453229 +0100
@@ -13,7 +13,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -21,7 +21,7 @@
 %bcond_without test
 %define modname pyscard
 Name:           python-pyscard
-Version:        1.9.8
+Version:        1.9.9
 Release:        0
 Summary:        Python module adding smart card support
 License:        LGPL-2.0-or-later
@@ -49,8 +49,6 @@
 %setup -q -n %{modname}-%{version}
 mv smartcard/doc .
 dos2unix LICENSE
-# PATCH-FIX-UPSTREAM  Fix Exception test on 32-bits CPU. Issue #72
-sed -i 's|available. (0x8010001D)")|available. (0x%08X)" % 
SCARD_E_NO_SERVICE)|' test/test_Exceptions.py
 
 %build
 export CFLAGS="%{optflags}"

++++++ pyscard-1.9.8.tar.gz -> pyscard-1.9.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyscard-1.9.8/ChangeLog new/pyscard-1.9.9/ChangeLog
--- old/pyscard-1.9.8/ChangeLog 2019-03-25 22:18:55.000000000 +0100
+++ new/pyscard-1.9.9/ChangeLog 2019-08-09 17:19:56.000000000 +0200
@@ -1,4 +1,9 @@
-1.9.8 (March 2018)
+1.9.9 (August 2019)
+    * Makefile: use twine to upload to pypi.python.org
+    * test: fix Exception test on 32-bits CPU
+    * test: correctly handle macOS versions older than 10.10
+
+1.9.8 (March 2019)
 ==================
     * SmartcardException: store the PC/SC return code in hresult
     * CardMonitoring: stop the looping only if PCSC exited
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyscard-1.9.8/Makefile new/pyscard-1.9.9/Makefile
--- old/pyscard-1.9.8/Makefile  2016-05-27 09:33:05.000000000 +0200
+++ new/pyscard-1.9.9/Makefile  2019-08-09 17:19:56.000000000 +0200
@@ -13,7 +13,9 @@
        rm -f smartcard/scard/scard_wrap.c
        # files generated by sphinx
        rm -rf smartcard/doc/_build
-       $(PYTHON) setup.py sdist upload
+       rm -rf dist
+       $(PYTHON) setup.py sdist
+       python3 -m twine upload dist/*
 
 test: build
        $(PYTHON) setup.py test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyscard-1.9.8/PKG-INFO new/pyscard-1.9.9/PKG-INFO
--- old/pyscard-1.9.8/PKG-INFO  2019-03-25 22:19:53.000000000 +0100
+++ new/pyscard-1.9.9/PKG-INFO  2019-08-09 17:22:13.000000000 +0200
@@ -1,12 +1,12 @@
 Metadata-Version: 2.1
 Name: pyscard
-Version: 1.9.8
+Version: 1.9.9
 Summary: Smartcard module for Python.
 Home-page: https://github.com/LudovicRousseau/pyscard
 Author: Ludovic Rousseau
 Author-email: [email protected]
 License: UNKNOWN
-Download-URL: 
http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%201.9.8/pyscard-1.9.8.tar.gz/download
+Download-URL: 
http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%201.9.9/pyscard-1.9.9.tar.gz/download
 Description: Smartcard package for Python
 Platform: linux
 Platform: win32
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyscard-1.9.8/pyscard.egg-info/PKG-INFO 
new/pyscard-1.9.9/pyscard.egg-info/PKG-INFO
--- old/pyscard-1.9.8/pyscard.egg-info/PKG-INFO 2019-03-25 22:19:52.000000000 
+0100
+++ new/pyscard-1.9.9/pyscard.egg-info/PKG-INFO 2019-08-09 17:22:13.000000000 
+0200
@@ -1,12 +1,12 @@
 Metadata-Version: 2.1
 Name: pyscard
-Version: 1.9.8
+Version: 1.9.9
 Summary: Smartcard module for Python.
 Home-page: https://github.com/LudovicRousseau/pyscard
 Author: Ludovic Rousseau
 Author-email: [email protected]
 License: UNKNOWN
-Download-URL: 
http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%201.9.8/pyscard-1.9.8.tar.gz/download
+Download-URL: 
http://sourceforge.net/projects/pyscard/files/pyscard/pyscard%201.9.9/pyscard-1.9.9.tar.gz/download
 Description: Smartcard package for Python
 Platform: linux
 Platform: win32
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyscard-1.9.8/setup.py new/pyscard-1.9.9/setup.py
--- old/pyscard-1.9.8/setup.py  2019-03-25 22:18:55.000000000 +0100
+++ new/pyscard-1.9.9/setup.py  2019-08-09 17:19:56.000000000 +0200
@@ -81,7 +81,7 @@
     platform_extra_link_args = []   # ['-ggdb']
 
 
-VERSION_INFO = (1, 9, 8, 0)
+VERSION_INFO = (1, 9, 9, 0)
 VERSION_STR = '%i.%i.%i' % VERSION_INFO[:3]
 VERSION_ALT = '%i,%01i,%01i,%04i' % VERSION_INFO
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyscard-1.9.8/test/test_Exceptions.py 
new/pyscard-1.9.9/test/test_Exceptions.py
--- old/pyscard-1.9.8/test/test_Exceptions.py   2019-03-25 22:16:58.000000000 
+0100
+++ new/pyscard-1.9.9/test/test_Exceptions.py   2019-08-09 17:19:56.000000000 
+0200
@@ -38,7 +38,7 @@
         self.assertEqual(exc.hresult, SCARD_E_NO_SERVICE)
         text = str(exc)
         if get_platform().startswith('linux'):
-            self.assertEqual(text, "Failed to list readers: Service not 
available. (0x8010001D)")
+            self.assertEqual(text, "Failed to list readers: Service not 
available. (0x%08X)" % SCARD_E_NO_SERVICE)
 
     def test_NoReadersException(self):
         exc = NoReadersException()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyscard-1.9.8/test/test_SCardGetErrorMessage.py 
new/pyscard-1.9.9/test/test_SCardGetErrorMessage.py
--- old/pyscard-1.9.8/test/test_SCardGetErrorMessage.py 2019-03-25 
22:16:58.000000000 +0100
+++ new/pyscard-1.9.9/test/test_SCardGetErrorMessage.py 2019-08-09 
17:19:56.000000000 +0200
@@ -29,11 +29,15 @@
         self.assertEqual(res, expected)
 
         res = SCardGetErrorMessage(1)
+        expected = "Unknown error: 0x00000001"
         # macOS bug not yet fixed
-        if get_platform().startswith('macosx-') and get_platform() < 
'macosx-10.13':
-            expected = "Unkown error: 0x00000001"
-        else:
-            expected = "Unknown error: 0x00000001"
+        if get_platform().startswith('macosx-'):
+            version = get_platform()  # something like 'macosx-10.14-x86_64'
+            version = version.split('-')[1]  # '10.14'
+            major, minor = map(int, version.split('.'))  # (10, 14)
+            if major == 10 and minor < 13:
+                expected = "Unkown error: 0x00000001"
+
         self.assertEqual(res, expected)
 
 


Reply via email to