Hello community, here is the log from the commit of package python-openpyxl for openSUSE:Factory checked in at 2017-08-28 15:13:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-openpyxl (Old) and /work/SRC/openSUSE:Factory/.python-openpyxl.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-openpyxl" Mon Aug 28 15:13:26 2017 rev:6 rq:518482 version:2.4.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-openpyxl/python-openpyxl.changes 2017-05-17 17:17:53.381005105 +0200 +++ /work/SRC/openSUSE:Factory/.python-openpyxl.new/python-openpyxl.changes 2017-08-28 15:15:00.918851304 +0200 @@ -1,0 +2,12 @@ +Thu Aug 24 06:01:22 UTC 2017 - [email protected] + +- update to 2.4.8: + * AutoFilter.sortState being assignd to the ws.sortState + * #766 Sheetnames with apostrophes need additional escaping + * #729 Cannot open files created by Microsoft Dynamics + * #819 Negative percents not case correctly + * #821 Runtime imports can cause deadlock + * #855 Print area containing only columns leads to corrupt file +- Fix Requires and BuildRequires + +------------------------------------------------------------------- Old: ---- openpyxl-2.4.7.tar.gz New: ---- openpyxl-2.4.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-openpyxl.spec ++++++ --- /var/tmp/diff_new_pack.cHEEiF/_old 2017-08-28 15:15:01.870717562 +0200 +++ /var/tmp/diff_new_pack.cHEEiF/_new 2017-08-28 15:15:01.878716438 +0200 @@ -18,21 +18,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-openpyxl -Version: 2.4.7 +Version: 2.4.8 Release: 0 Summary: A Python library to read/write Excel 2007 xlsx/xlsm files License: MIT and Python-2.0 Group: Development/Languages/Python Url: http://openpyxl.readthedocs.org Source: https://files.pythonhosted.org/packages/source/o/openpyxl/openpyxl-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module et_xmlfile} BuildRequires: %{python_module jdcal} -BuildRequires: %{python_module xml} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-et_xmlfile Requires: python-jdcal -Requires: python-xml # for embedded image support Recommends: python-Pillow BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ openpyxl-2.4.7.tar.gz -> openpyxl-2.4.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/PKG-INFO new/openpyxl-2.4.8/PKG-INFO --- old/openpyxl-2.4.7/PKG-INFO 2017-04-24 08:57:08.000000000 +0200 +++ new/openpyxl-2.4.8/PKG-INFO 2017-05-30 19:33:09.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: openpyxl -Version: 2.4.7 +Version: 2.4.8 Summary: A Python library to read/write Excel 2010 xlsx/xlsm files Home-page: https://openpyxl.readthedocs.io Author: See AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/.constants.json new/openpyxl-2.4.8/openpyxl/.constants.json --- old/openpyxl-2.4.7/openpyxl/.constants.json 2017-04-24 08:56:43.000000000 +0200 +++ new/openpyxl-2.4.8/openpyxl/.constants.json 2017-05-30 19:32:53.000000000 +0200 @@ -4,5 +4,5 @@ "__license__": "MIT/Expat", "__maintainer_email__": "[email protected]", "__url__": "https://openpyxl.readthedocs.io", - "__version__": "2.4.7" + "__version__": "2.4.8" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/cell/cell.py new/openpyxl-2.4.8/openpyxl/cell/cell.py --- old/openpyxl-2.4.7/openpyxl/cell/cell.py 2017-04-24 08:52:42.000000000 +0200 +++ new/openpyxl-2.4.8/openpyxl/cell/cell.py 2017-05-30 19:20:53.000000000 +0200 @@ -53,7 +53,7 @@ STRING_TYPES = (basestring, unicode, bytes) KNOWN_TYPES = NUMERIC_TYPES + TIME_TYPES + STRING_TYPES + (bool, type(None)) -PERCENT_REGEX = re.compile(r'^\-?(?P<number>[0-9]*\.?[0-9]*\s?)\%$') +PERCENT_REGEX = re.compile(r'^(?P<number>\-?[0-9]*\.?[0-9]*\s?)\%$') TIME_REGEX = re.compile(r""" ^(?: # HH:MM and HH:MM:SS (?P<hour>[0-1]{0,1}[0-9]{2}): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/chart/legend.py new/openpyxl-2.4.8/openpyxl/chart/legend.py --- old/openpyxl-2.4.7/openpyxl/chart/legend.py 2017-03-15 14:21:04.000000000 +0100 +++ new/openpyxl-2.4.8/openpyxl/chart/legend.py 2017-05-30 19:14:29.000000000 +0200 @@ -3,6 +3,7 @@ Typed, Integer, Alias, + Sequence, ) from openpyxl.descriptors.excel import ExtensionList from openpyxl.descriptors.nested import ( @@ -44,7 +45,7 @@ legendPos = NestedSet(values=(['b', 'tr', 'l', 'r', 't'])) position = Alias('legendPos') - legendEntry = Typed(expected_type=LegendEntry, allow_none=True) + legendEntry = Sequence(expected_type=LegendEntry) layout = Typed(expected_type=Layout, allow_none=True) overlay = NestedBool(allow_none=True) spPr = Typed(expected_type=GraphicalProperties, allow_none=True) @@ -57,7 +58,7 @@ def __init__(self, legendPos="r", - legendEntry=None, + legendEntry=(), layout=None, overlay=None, spPr=None, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/reader/excel.py new/openpyxl-2.4.8/openpyxl/reader/excel.py --- old/openpyxl-2.4.7/openpyxl/reader/excel.py 2017-03-16 19:05:43.000000000 +0100 +++ new/openpyxl-2.4.8/openpyxl/reader/excel.py 2017-05-30 19:20:53.000000000 +0200 @@ -44,7 +44,7 @@ from openpyxl.styles.stylesheet import apply_stylesheet from openpyxl.packaging.core import DocumentProperties -from openpyxl.packaging.manifest import Manifest +from openpyxl.packaging.manifest import Manifest, Override from openpyxl.packaging.workbook import WorkbookParser from openpyxl.packaging.relationship import get_dependents, get_rels_path @@ -123,11 +123,18 @@ def _find_workbook_part(package): - for ct in [XLTM, XLTX, XLSM, XLSX]: + workbook_types = [XLTM, XLTX, XLSM, XLSX] + for ct in workbook_types: part = package.find(ct) if part: return part + # some applications reassign the default for application/xml + defaults = set((p.ContentType for p in package.Default)) + workbook_type = defaults & set(workbook_types) + if workbook_type: + return Override("/" + ARC_WORKBOOK, workbook_type.pop()) + raise IOError("File contains no valid workbook part") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/reader/worksheet.py new/openpyxl-2.4.8/openpyxl/reader/worksheet.py --- old/openpyxl-2.4.7/openpyxl/reader/worksheet.py 2017-04-24 08:52:42.000000000 +0200 +++ new/openpyxl-2.4.8/openpyxl/reader/worksheet.py 2017-05-30 19:20:53.000000000 +0200 @@ -109,7 +109,7 @@ '{%s}headerFooter' % SHEET_MAIN_NS: ('HeaderFooter', HeaderFooter), '{%s}autoFilter' % SHEET_MAIN_NS: ('auto_filter', AutoFilter), '{%s}dataValidations' % SHEET_MAIN_NS: ('data_validations', DataValidationList), - '{%s}sortState' % SHEET_MAIN_NS: ('sort_state', SortState), + #'{%s}sheet/{%s}sortState' % (SHEET_MAIN_NS, SHEET_MAIN_NS): ('sort_state', SortState), '{%s}sheetPr' % SHEET_MAIN_NS: ('sheet_properties', WorksheetProperties), '{%s}sheetViews' % SHEET_MAIN_NS: ('views', SheetViewList), '{%s}sheetFormatPr' % SHEET_MAIN_NS: ('sheet_format', SheetFormatProperties) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/styles/stylesheet.py new/openpyxl-2.4.8/openpyxl/styles/stylesheet.py --- old/openpyxl-2.4.7/openpyxl/styles/stylesheet.py 2017-03-16 19:05:43.000000000 +0100 +++ new/openpyxl-2.4.8/openpyxl/styles/stylesheet.py 2017-05-30 19:14:29.000000000 +0200 @@ -163,6 +163,12 @@ style.numFmtId = formats.index(fmt) + 164 + def to_tree(self, tagname=None, idx=None, namespace=None): + tree = super(Stylesheet, self).to_tree(tagname, idx, namespace) + tree.set("xmlns", SHEET_MAIN_NS) + return tree + + def apply_stylesheet(archive, wb): """ Add styles to workbook if present @@ -182,6 +188,7 @@ wb._number_formats = stylesheet.number_formats wb._protections = stylesheet.protections wb._alignments = stylesheet.alignments + wb._table_styles = stylesheet.tableStyles # need to overwrite openpyxl defaults in case workbook has different ones wb._cell_styles = stylesheet.cell_styles @@ -222,8 +229,6 @@ stylesheet.cellXfs = CellStyleList(xf=xfs) stylesheet._split_named_styles(wb) - stylesheet.tableStyles = TableStyleList() + stylesheet.tableStyles = wb._table_styles - tree = stylesheet.to_tree() - tree.set("xmlns", SHEET_MAIN_NS) - return tree + return stylesheet.to_tree() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/styles/table.py new/openpyxl-2.4.8/openpyxl/styles/table.py --- old/openpyxl-2.4.7/openpyxl/styles/table.py 2017-03-16 19:05:43.000000000 +0100 +++ new/openpyxl-2.4.8/openpyxl/styles/table.py 2017-05-30 19:14:29.000000000 +0200 @@ -67,7 +67,6 @@ tagname = "tableStyles" - count = Integer(allow_none=True) defaultTableStyle = String(allow_none=True) defaultPivotStyle = String(allow_none=True) tableStyle = Sequence(expected_type=TableStyle, allow_none=True) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl/workbook/workbook.py new/openpyxl-2.4.8/openpyxl/workbook/workbook.py --- old/openpyxl-2.4.7/openpyxl/workbook/workbook.py 2017-04-24 08:52:42.000000000 +0200 +++ new/openpyxl-2.4.8/openpyxl/workbook/workbook.py 2017-05-30 19:20:53.000000000 +0200 @@ -20,6 +20,14 @@ from openpyxl.styles.cell_style import StyleArray from openpyxl.styles.named_styles import NamedStyle from openpyxl.styles.differential import DifferentialStyleList +from openpyxl.styles.alignment import Alignment +from openpyxl.styles.borders import DEFAULT_BORDER +from openpyxl.styles.fills import DEFAULT_EMPTY_FILL, DEFAULT_GRAY_FILL +from openpyxl.styles.fonts import DEFAULT_FONT +from openpyxl.styles.protection import Protection +from openpyxl.styles.colors import COLOR_INDEX +from openpyxl.styles.named_styles import NamedStyleList +from openpyxl.styles.table import TableStyleList from openpyxl.chartsheet import Chartsheet from .defined_name import DefinedName, DefinedNameList @@ -74,13 +82,6 @@ def _setup_styles(self): """Bootstrap styles""" - from openpyxl.styles.alignment import Alignment - from openpyxl.styles.borders import DEFAULT_BORDER - from openpyxl.styles.fills import DEFAULT_EMPTY_FILL, DEFAULT_GRAY_FILL - from openpyxl.styles.fonts import DEFAULT_FONT - from openpyxl.styles.protection import Protection - from openpyxl.styles.colors import COLOR_INDEX - from openpyxl.styles.named_styles import NamedStyleList self._fonts = IndexedList() self._fonts.add(DEFAULT_FONT) @@ -102,6 +103,7 @@ self._cell_styles = IndexedList([StyleArray()]) self._named_styles = NamedStyleList() self.add_named_style(NamedStyle(font=DEFAULT_FONT, builtinId=0)) + self._table_styles = TableStyleList() @property diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openpyxl-2.4.7/openpyxl.egg-info/PKG-INFO new/openpyxl-2.4.8/openpyxl.egg-info/PKG-INFO --- old/openpyxl-2.4.7/openpyxl.egg-info/PKG-INFO 2017-04-24 08:57:08.000000000 +0200 +++ new/openpyxl-2.4.8/openpyxl.egg-info/PKG-INFO 2017-05-30 19:33:08.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: openpyxl -Version: 2.4.7 +Version: 2.4.8 Summary: A Python library to read/write Excel 2010 xlsx/xlsm files Home-page: https://openpyxl.readthedocs.io Author: See AUTHORS
