Hello community,

here is the log from the commit of package python-dbf for openSUSE:Factory 
checked in at 2019-09-16 10:49:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dbf (Old)
 and      /work/SRC/openSUSE:Factory/.python-dbf.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dbf"

Mon Sep 16 10:49:51 2019 rev:5 rq:730656 version:0.98.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dbf/python-dbf.changes    2019-07-26 
17:33:56.368096394 +0200
+++ /work/SRC/openSUSE:Factory/.python-dbf.new.7948/python-dbf.changes  
2019-09-16 10:49:57.311175709 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 09:45:05 UTC 2019 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 0.98.3:
+  * no obvious changelog
+
+-------------------------------------------------------------------

Old:
----
  dbf-0.98.2.tar.gz

New:
----
  dbf-0.98.3.tar.gz

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

Other differences:
------------------
++++++ python-dbf.spec ++++++
--- /var/tmp/diff_new_pack.nXe4tv/_old  2019-09-16 10:49:59.035175486 +0200
+++ /var/tmp/diff_new_pack.nXe4tv/_new  2019-09-16 10:49:59.039175486 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-dbf
-Version:        0.98.2
+Version:        0.98.3
 Release:        0
 Summary:        Pure python package for reading/writing dBase, FoxPro, and 
Visual FoxPro .dbf
 License:        BSD-3-Clause

++++++ dbf-0.98.2.tar.gz -> dbf-0.98.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dbf-0.98.2/PKG-INFO new/dbf-0.98.3/PKG-INFO
--- old/dbf-0.98.2/PKG-INFO     2019-07-11 20:34:24.000000000 +0200
+++ new/dbf-0.98.3/PKG-INFO     2019-08-20 04:26:38.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: dbf
-Version: 0.98.2
+Version: 0.98.3
 Summary: Pure python package for reading/writing dBase, FoxPro, and Visual 
FoxPro .dbf files (including memos)
 Home-page: https://pypi.python.org/pypi/dbf
 Author: Ethan Furman
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dbf-0.98.2/dbf/__init__.py 
new/dbf-0.98.3/dbf/__init__.py
--- old/dbf-0.98.2/dbf/__init__.py      2019-07-11 20:32:48.000000000 +0200
+++ new/dbf-0.98.3/dbf/__init__.py      2019-08-20 04:20:31.000000000 +0200
@@ -74,7 +74,7 @@
     long = int
     xrange = range
 
-version = 0, 98, 2
+version = 0, 98, 3
 
 NoneType = type(None)
 
@@ -1067,21 +1067,37 @@
             raise AttributeError('NullDate object has no attribute %s' % name)
 
     def __ge__(self, other):
-        if isinstance(other, (datetime.date)):
-            return self._date >= other
-        elif isinstance(other, (Date)):
-            if other:
-                return self._date >= other._date
-            return False
+        if self:
+            if isinstance(other, (datetime.date)):
+                return self._date >= other
+            elif isinstance(other, (Date)):
+                if other:
+                    return self._date >= other._date
+                return True
+        else:
+            if isinstance(other, (datetime.date)):
+                return False
+            elif isinstance(other, (Date)):
+                if other:
+                    return False
+                return True
         return NotImplemented
 
     def __gt__(self, other):
-        if isinstance(other, (datetime.date)):
-            return self._date > other
-        elif isinstance(other, (Date)):
-            if other:
-                return self._date > other._date
-            return True
+        if self:
+            if isinstance(other, (datetime.date)):
+                return self._date > other
+            elif isinstance(other, (Date)):
+                if other:
+                    return self._date > other._date
+                return True
+        else:
+            if isinstance(other, (datetime.date)):
+                return False
+            elif isinstance(other, (Date)):
+                if other:
+                    return False
+                return False
         return NotImplemented
 
     def __hash__(self):
@@ -3030,7 +3046,7 @@
         return '\n'.join(result)
 
     def __repr__(self):
-        return to_bytes(self._data)
+        return '%r' % to_bytes(self._data)
 
     def _commit_flux(self):
         """
@@ -3464,7 +3480,7 @@
 
 
     def __repr__(self):
-        return to_bytes(self._data)
+        return '%r' % to_bytes(self._data)
 
     def __str__(self):
         result = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dbf-0.98.2/dbf/test.py new/dbf-0.98.3/dbf/test.py
--- old/dbf-0.98.2/dbf/test.py  2019-07-11 20:32:48.000000000 +0200
+++ new/dbf-0.98.3/dbf/test.py  2019-08-20 04:20:31.000000000 +0200
@@ -311,9 +311,9 @@
         "DateTime comparisons"
         nodatetime1 = DateTime()
         nodatetime2 = DateTime()
-        datetime1 = Date.fromordinal(1000)
-        datetime2 = Date.fromordinal(20000)
-        datetime3 = Date.fromordinal(300000)
+        datetime1 = DateTime.fromordinal(1000)
+        datetime2 = DateTime.fromordinal(20000)
+        datetime3 = DateTime.fromordinal(300000)
         self.compareTimes(nodatetime1, nodatetime2, datetime1, datetime2, 
datetime3)
 
     def test_datetime_replace(self):
@@ -345,9 +345,9 @@
         "Time comparisons"
         notime1 = Time()
         notime2 = Time()
-        time1 = Date.fromordinal(1000)
-        time2 = Date.fromordinal(2000)
-        time3 = Date.fromordinal(3000)
+        time1 = Time.fromfloat(7.75)
+        time2 = Time.fromfloat(9.5)
+        time3 = Time.fromfloat(16.25)
         self.compareTimes(notime1, notime2, time1, time2, time3)
 
     @unittest.skipIf(pytz is None, 'pytz not installed')
@@ -449,7 +449,11 @@
         self.assertEqual(bool(actual_datetime), True)
 
     def compareTimes(self, empty1, empty2, uno, dos, tres):
-        self.assertEqual(empty1, empty2)
+        self.assertTrue(empty1 is empty2)
+        self.assertTrue(empty1 < uno, '%r is not less than %r' % (empty1, uno))
+        self.assertFalse(empty1 > uno, '%r is less than %r' % (empty1, uno))
+        self.assertTrue(uno > empty1, '%r is not greater than %r' % (empty1, 
uno))
+        self.assertFalse(uno < empty1, '%r is greater than %r' % (empty1, uno))
         self.assertEqual(uno < dos, True)
         self.assertEqual(uno <= dos, True)
         self.assertEqual(dos <= dos, True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dbf-0.98.2/dbf.egg-info/PKG-INFO 
new/dbf-0.98.3/dbf.egg-info/PKG-INFO
--- old/dbf-0.98.2/dbf.egg-info/PKG-INFO        2019-07-11 20:34:24.000000000 
+0200
+++ new/dbf-0.98.3/dbf.egg-info/PKG-INFO        2019-08-20 04:26:38.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: dbf
-Version: 0.98.2
+Version: 0.98.3
 Summary: Pure python package for reading/writing dBase, FoxPro, and Visual 
FoxPro .dbf files (including memos)
 Home-page: https://pypi.python.org/pypi/dbf
 Author: Ethan Furman
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dbf-0.98.2/setup.py new/dbf-0.98.3/setup.py
--- old/dbf-0.98.2/setup.py     2019-07-11 20:32:48.000000000 +0200
+++ new/dbf-0.98.3/setup.py     2019-08-20 04:20:31.000000000 +0200
@@ -21,7 +21,7 @@
 
 data = dict(
         name='dbf',
-        version='0.98.2',
+        version='0.98.3',
         license='BSD License',
         description='Pure python package for reading/writing dBase, FoxPro, 
and Visual FoxPro .dbf files (including memos)',
         long_description=long_desc,


Reply via email to