Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xlrd for openSUSE:Factory 
checked in at 2026-03-15 14:32:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xlrd (Old)
 and      /work/SRC/openSUSE:Factory/.python-xlrd.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xlrd"

Sun Mar 15 14:32:14 2026 rev:17 rq:1339011 version:2.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xlrd/python-xlrd.changes  2025-05-09 
18:53:18.173932548 +0200
+++ /work/SRC/openSUSE:Factory/.python-xlrd.new.8177/python-xlrd.changes        
2026-03-15 14:33:00.592976043 +0100
@@ -1,0 +2,6 @@
+Sat Mar 14 20:31:36 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 2.0.2:
+  * Fix bug reading sheets containing invalid formulae.
+
+-------------------------------------------------------------------

Old:
----
  xlread-2.0.1-gh.tar.gz

New:
----
  xlread-2.0.2-gh.tar.gz

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

Other differences:
------------------
++++++ python-xlrd.spec ++++++
--- /var/tmp/diff_new_pack.hmxV11/_old  2026-03-15 14:33:01.080996132 +0100
+++ /var/tmp/diff_new_pack.hmxV11/_new  2026-03-15 14:33:01.080996132 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xlrd
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-xlrd
-Version:        2.0.1
+Version:        2.0.2
 Release:        0
 Summary:        Python module for extracting data from .xls Excel spreadsheet 
files
 License:        BSD-3-Clause

++++++ xlread-2.0.1-gh.tar.gz -> xlread-2.0.2-gh.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xlrd-2.0.1/CHANGELOG.rst new/xlrd-2.0.2/CHANGELOG.rst
--- old/xlrd-2.0.1/CHANGELOG.rst        2020-12-11 11:12:16.000000000 +0100
+++ new/xlrd-2.0.2/CHANGELOG.rst        2025-06-14 10:44:53.000000000 +0200
@@ -1,6 +1,13 @@
 Changes
 =======
 
+2.0.2 (14 June 2025)
+--------------------
+
+- Fix bug reading sheets containing invalid formulae.
+
+Thanks to sanshi42 for the fix!
+
 2.0.1 (11 December 2020)
 ------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xlrd-2.0.1/README.rst new/xlrd-2.0.2/README.rst
--- old/xlrd-2.0.1/README.rst   2020-12-11 11:12:16.000000000 +0100
+++ new/xlrd-2.0.2/README.rst   2025-06-14 10:44:53.000000000 +0200
@@ -37,6 +37,10 @@
 
 Quick start:
 
+.. code-block:: bash
+
+    pip install xlrd
+    
 .. code-block:: python
 
     import xlrd
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xlrd-2.0.1/docs/conf.py new/xlrd-2.0.2/docs/conf.py
--- old/xlrd-2.0.1/docs/conf.py 2020-12-11 11:12:16.000000000 +0100
+++ new/xlrd-2.0.2/docs/conf.py 2025-06-14 10:44:53.000000000 +0200
@@ -10,7 +10,10 @@
 source_suffix = '.rst'
 master_doc = 'index'
 project = u'xlrd'
-copyright = '2005-%s Stephen John Machin, Lingfo Pty Ltd' % 
datetime.datetime.now().year
+copyright = (
+    '2005-2019 Stephen John Machin, Lingfo Pty Ltd. '
+    '2019-%s Chris Withers'
+) % datetime.datetime.now().year
 version = release = __VERSION__
 exclude_patterns = ['_build']
 pygments_style = 'sphinx'
Binary files old/xlrd-2.0.1/tests/samples/invalid_formula.xls and 
new/xlrd-2.0.2/tests/samples/invalid_formula.xls differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xlrd-2.0.1/tests/test_formulas.py 
new/xlrd-2.0.2/tests/test_formulas.py
--- old/xlrd-2.0.1/tests/test_formulas.py       2020-12-11 11:12:16.000000000 
+0100
+++ new/xlrd-2.0.2/tests/test_formulas.py       2025-06-14 10:44:53.000000000 
+0200
@@ -79,3 +79,12 @@
 
     def test_choose(self):
         self.assertEqual(self.get_value(1, 6), "'C'")
+
+    def test_evaluate_name_formula_with_invalid_operand(self):
+        book = xlrd.open_workbook(from_sample('invalid_formula.xls'))
+        sheet = book.sheet_by_index(0)
+        cell = sheet.cell(0, 0)
+
+        self.assertEqual(cell.ctype, xlrd.XL_CELL_ERROR)
+        self.assertIn(cell.value, xlrd.error_text_from_code)
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xlrd-2.0.1/xlrd/formula.py 
new/xlrd-2.0.2/xlrd/formula.py
--- old/xlrd-2.0.1/xlrd/formula.py      2020-12-11 11:12:16.000000000 +0100
+++ new/xlrd-2.0.2/xlrd/formula.py      2025-06-14 10:44:53.000000000 +0200
@@ -953,7 +953,7 @@
                 ])
                 res = Operand(oREF, None, rank, otext)
                 if bop.kind == oERR or aop.kind == oERR:
-                    res = oERR
+                    res.kind = oERR
                 elif bop.kind == oREF == aop.kind:
                     if aop.value is not None and bop.value is not None:
                         assert len(aop.value) == 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xlrd-2.0.1/xlrd/info.py new/xlrd-2.0.2/xlrd/info.py
--- old/xlrd-2.0.1/xlrd/info.py 2020-12-11 11:12:16.000000000 +0100
+++ new/xlrd-2.0.2/xlrd/info.py 2025-06-14 10:44:53.000000000 +0200
@@ -1 +1 @@
-__version__ = __VERSION__ = "2.0.1"
+__version__ = __VERSION__ = "2.0.2"

Reply via email to