Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-prettytable for 
openSUSE:Factory checked in at 2023-10-08 12:17:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-prettytable (Old)
 and      /work/SRC/openSUSE:Factory/.python-prettytable.new.28202 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-prettytable"

Sun Oct  8 12:17:18 2023 rev:10 rq:1116202 version:3.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-prettytable/python-prettytable.changes    
2023-09-08 21:15:16.997917910 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-prettytable.new.28202/python-prettytable.changes
 2023-10-08 12:19:59.929782460 +0200
@@ -1,0 +2,6 @@
+Sat Oct  7 11:19:59 UTC 2023 - Matej Cepl <mc...@cepl.eu>
+
+- Update to 3.9.0:
+  - Encode title and attributes of HTML tables
+
+-------------------------------------------------------------------

Old:
----
  prettytable-3.8.0.tar.gz

New:
----
  prettytable-3.9.0.tar.gz

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

Other differences:
------------------
++++++ python-prettytable.spec ++++++
--- /var/tmp/diff_new_pack.WiY4tW/_old  2023-10-08 12:20:01.533840131 +0200
+++ /var/tmp/diff_new_pack.WiY4tW/_new  2023-10-08 12:20:01.545840563 +0200
@@ -19,7 +19,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-prettytable
-Version:        3.8.0
+Version:        3.9.0
 Release:        0
 Summary:        Library for displaying tabular data in formatted fashion
 License:        BSD-2-Clause
@@ -38,9 +38,7 @@
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
 Requires:       python-wcwidth
-%if 0%{?python_version_nodots} < 38
-Requires:       python-importlib-metadata
-%endif
+Requires:       (python-importlib-metadata if python-base < 3.8)
 Provides:       python-PrettyTable = %{version}-%{release}
 Obsoletes:      python-PrettyTable < %{version}-%{release}
 %python_subpackages
@@ -53,7 +51,8 @@
 centred) and printing of "sub-tables" by specifying a row range.
 
 %prep
-%setup -q -n prettytable-%{version}
+%autosetup -p1 -n prettytable-%{version}
+
 sed -i '1 {/env python/d}' src/prettytable/prettytable.py
 
 %build

++++++ prettytable-3.8.0.tar.gz -> prettytable-3.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/prettytable-3.8.0/.github/workflows/require-pr-label.yml 
new/prettytable-3.9.0/.github/workflows/require-pr-label.yml
--- old/prettytable-3.8.0/.github/workflows/require-pr-label.yml        
2020-02-02 01:00:00.000000000 +0100
+++ new/prettytable-3.9.0/.github/workflows/require-pr-label.yml        
2020-02-02 01:00:00.000000000 +0100
@@ -12,7 +12,7 @@
       issues: write
 
     steps:
-      - uses: mheap/github-action-required-labels@v4
+      - uses: mheap/github-action-required-labels@v5
         with:
           mode: minimum
           count: 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prettytable-3.8.0/.pre-commit-config.yaml 
new/prettytable-3.9.0/.pre-commit-config.yaml
--- old/prettytable-3.8.0/.pre-commit-config.yaml       2020-02-02 
01:00:00.000000000 +0100
+++ new/prettytable-3.9.0/.pre-commit-config.yaml       2020-02-02 
01:00:00.000000000 +0100
@@ -1,12 +1,12 @@
 repos:
   - repo: https://github.com/asottile/pyupgrade
-    rev: v3.4.0
+    rev: v3.10.1
     hooks:
       - id: pyupgrade
         args: [--py38-plus]
 
   - repo: https://github.com/psf/black
-    rev: 23.3.0
+    rev: 23.7.0
     hooks:
       - id: black
 
@@ -17,7 +17,7 @@
         args: [--add-import=from __future__ import annotations]
 
   - repo: https://github.com/PyCQA/flake8
-    rev: 6.0.0
+    rev: 6.1.0
     hooks:
       - id: flake8
         additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
@@ -37,36 +37,39 @@
       - id: check-toml
       - id: check-yaml
       - id: end-of-file-fixer
+      - id: trailing-whitespace
+        exclude: .github/ISSUE_TEMPLATE/bug_report.md|tests/test_prettytable.py
+
+  - repo: https://github.com/pre-commit/mirrors-mypy
+    rev: v1.5.1
+    hooks:
+      - id: mypy
+        additional_dependencies: [types-colorama, types-setuptools]
+        args: [--pretty, --show-error-codes]
+        exclude: ^tests/
 
   - repo: https://github.com/tox-dev/pyproject-fmt
-    rev: 0.10.0
+    rev: 1.1.0
     hooks:
       - id: pyproject-fmt
+        additional_dependencies: [tox]
 
   - repo: https://github.com/abravalheri/validate-pyproject
-    rev: v0.13
+    rev: v0.14
     hooks:
       - id: validate-pyproject
 
   - repo: https://github.com/tox-dev/tox-ini-fmt
-    rev: 1.3.0
+    rev: 1.3.1
     hooks:
       - id: tox-ini-fmt
 
   - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v3.0.0-alpha.9-for-vscode
+    rev: v3.0.3
     hooks:
       - id: prettier
         args: [--prose-wrap=always, --print-width=88]
         exclude: ^.github/ISSUE_TEMPLATE/bug_report.md$
 
-  - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: "v1.3.0"
-    hooks:
-      - id: mypy
-        additional_dependencies: [types-colorama, types-setuptools]
-        args: [--pretty, --show-error-codes]
-        exclude: ^tests/
-
 ci:
   autoupdate_schedule: quarterly
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prettytable-3.8.0/PKG-INFO 
new/prettytable-3.9.0/PKG-INFO
--- old/prettytable-3.8.0/PKG-INFO      2020-02-02 01:00:00.000000000 +0100
+++ new/prettytable-3.9.0/PKG-INFO      2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: prettytable
-Version: 3.8.0
+Version: 3.9.0
 Summary: A simple Python library for easily displaying tabular data in a 
visually appealing ASCII table format
 Project-URL: Changelog, https://github.com/jazzband/prettytable/releases
 Project-URL: Homepage, https://github.com/jazzband/prettytable
@@ -11,7 +11,6 @@
 License-File: LICENSE
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prettytable-3.8.0/pyproject.toml 
new/prettytable-3.9.0/pyproject.toml
--- old/prettytable-3.8.0/pyproject.toml        2020-02-02 01:00:00.000000000 
+0100
+++ new/prettytable-3.9.0/pyproject.toml        2020-02-02 01:00:00.000000000 
+0100
@@ -16,7 +16,6 @@
 classifiers = [
   "License :: OSI Approved :: BSD License",
   "Programming Language :: Python",
-  "Programming Language :: Python :: 3",
   "Programming Language :: Python :: 3 :: Only",
   "Programming Language :: Python :: 3.8",
   "Programming Language :: Python :: 3.9",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prettytable-3.8.0/src/prettytable/prettytable.py 
new/prettytable-3.9.0/src/prettytable/prettytable.py
--- old/prettytable-3.8.0/src/prettytable/prettytable.py        2020-02-02 
01:00:00.000000000 +0100
+++ new/prettytable-3.9.0/src/prettytable/prettytable.py        2020-02-02 
01:00:00.000000000 +0100
@@ -2139,14 +2139,16 @@
         open_tag = ["<table"]
         if options["attributes"]:
             for attr_name in options["attributes"]:
-                open_tag.append(f' 
{attr_name}="{options["attributes"][attr_name]}"')
+                open_tag.append(
+                    f' 
{escape(attr_name)}="{escape(options["attributes"][attr_name])}"'
+                )
         open_tag.append(">")
         lines.append("".join(open_tag))
 
         # Title
         title = options["title"] or self._title
         if title:
-            lines.append(f"    <caption>{title}</caption>")
+            lines.append(f"    <caption>{escape(title)}</caption>")
 
         # Headers
         if options["header"]:
@@ -2207,14 +2209,16 @@
             open_tag.append(' rules="cols"')
         if options["attributes"]:
             for attr_name in options["attributes"]:
-                open_tag.append(f' 
{attr_name}="{options["attributes"][attr_name]}"')
+                open_tag.append(
+                    f' 
{escape(attr_name)}="{escape(options["attributes"][attr_name])}"'
+                )
         open_tag.append(">")
         lines.append("".join(open_tag))
 
         # Title
         title = options["title"] or self._title
         if title:
-            lines.append(f"    <caption>{title}</caption>")
+            lines.append(f"    <caption>{escape(title)}</caption>")
 
         # Headers
         if options["header"]:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prettytable-3.8.0/tests/test_prettytable.py 
new/prettytable-3.9.0/tests/test_prettytable.py
--- old/prettytable-3.8.0/tests/test_prettytable.py     2020-02-02 
01:00:00.000000000 +0100
+++ new/prettytable-3.9.0/tests/test_prettytable.py     2020-02-02 
01:00:00.000000000 +0100
@@ -1070,13 +1070,13 @@
 
     def test_HtmlOutputWithTitle(self):
         t = helper_table()
-        t.title = "Title"
-        result = t.get_html_string()
+        t.title = "Title & Title"
+        result = t.get_html_string(attributes={"bgcolor": "red", "a<b": "1<2"})
         assert (
             result.strip()
             == """
-<table>
-    <caption>Title</caption>
+<table bgcolor="red" a&lt;b="1&lt;2">
+    <caption>Title &amp; Title</caption>
     <thead>
         <tr>
             <th>Field 1</th>
@@ -1107,13 +1107,15 @@
 
     def test_HtmlOutputFormattedWithTitle(self):
         t = helper_table()
-        t.title = "Title"
-        result = t.get_html_string(format=True)
+        t.title = "Title & Title"
+        result = t.get_html_string(
+            attributes={"bgcolor": "red", "a<b": "1<2"}, format=True
+        )
         assert (
             result.strip()
             == """
-<table frame="box" rules="cols">
-    <caption>Title</caption>
+<table frame="box" rules="cols" bgcolor="red" a&lt;b="1&lt;2">
+    <caption>Title &amp; Title</caption>
     <thead>
         <tr>
             <th style="padding-left: 1em; padding-right: 1em; text-align: 
center">Field 1</th>

Reply via email to