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 2022-09-18 17:31:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-prettytable (Old) and /work/SRC/openSUSE:Factory/.python-prettytable.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-prettytable" Sun Sep 18 17:31:48 2022 rev:5 rq:1004265 version:3.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-prettytable/python-prettytable.changes 2022-06-06 11:10:28.787303911 +0200 +++ /work/SRC/openSUSE:Factory/.python-prettytable.new.2083/python-prettytable.changes 2022-09-18 17:31:49.893702459 +0200 @@ -1,0 +2,6 @@ +Sat Sep 17 07:34:50 UTC 2022 - Dirk M??ller <[email protected]> + +- update to 3.4.1: + * Add option to specify line break character used in pagination + +------------------------------------------------------------------- Old: ---- prettytable-3.3.0.tar.gz New: ---- prettytable-3.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-prettytable.spec ++++++ --- /var/tmp/diff_new_pack.QfaVkf/_old 2022-09-18 17:31:50.429704023 +0200 +++ /var/tmp/diff_new_pack.QfaVkf/_new 2022-09-18 17:31:50.433704035 +0200 @@ -20,7 +20,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-prettytable -Version: 3.3.0 +Version: 3.4.1 Release: 0 Summary: Library for displaying tabular data in formatted fashion License: BSD-2-Clause ++++++ prettytable-3.3.0.tar.gz -> prettytable-3.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/.github/workflows/lint.yml new/prettytable-3.4.1/.github/workflows/lint.yml --- old/prettytable-3.3.0/.github/workflows/lint.yml 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/.github/workflows/lint.yml 2022-09-02 15:32:45.000000000 +0200 @@ -8,5 +8,7 @@ steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: pre-commit/[email protected] + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + - uses: pre-commit/[email protected] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/.github/workflows/release.yml new/prettytable-3.4.1/.github/workflows/release.yml --- old/prettytable-3.3.0/.github/workflows/release.yml 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/.github/workflows/release.yml 2022-09-02 15:32:45.000000000 +0200 @@ -20,7 +20,7 @@ fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.10" cache: pip @@ -39,7 +39,7 @@ - name: Upload packages to Jazzband if: github.event.action == 'published' - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: jazzband password: ${{ secrets.JAZZBAND_RELEASE_KEY }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/.github/workflows/require-pr-label.yml new/prettytable-3.4.1/.github/workflows/require-pr-label.yml --- old/prettytable-3.3.0/.github/workflows/require-pr-label.yml 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/.github/workflows/require-pr-label.yml 2022-09-02 15:32:45.000000000 +0200 @@ -9,7 +9,7 @@ runs-on: ubuntu-latest steps: - - uses: mheap/github-action-required-labels@v1 + - uses: mheap/github-action-required-labels@v2 with: mode: minimum count: 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/.github/workflows/test.yml new/prettytable-3.4.1/.github/workflows/test.yml --- old/prettytable-3.3.0/.github/workflows/test.yml 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/.github/workflows/test.yml 2022-09-02 15:32:45.000000000 +0200 @@ -18,7 +18,7 @@ - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} cache: pip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/.pre-commit-config.yaml new/prettytable-3.4.1/.pre-commit-config.yaml --- old/prettytable-3.3.0/.pre-commit-config.yaml 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/.pre-commit-config.yaml 2022-09-02 15:32:45.000000000 +0200 @@ -1,12 +1,12 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.32.1 + rev: v2.37.3 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.6.0 hooks: - id: black args: [--target-version=py37] @@ -17,7 +17,7 @@ - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 5.0.4 hooks: - id: flake8 additional_dependencies: [flake8-2020, flake8-implicit-str-concat] @@ -28,16 +28,16 @@ - id: python-check-blanket-noqa - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.3.0 hooks: - id: check-merge-conflict - id: check-yaml - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.20.1 + rev: v2.0.0 hooks: - id: setup-cfg-fmt - args: [--max-py-version=3.11] + args: [--max-py-version=3.11, --include-version-classifiers] - repo: https://github.com/tox-dev/tox-ini-fmt rev: 0.5.2 @@ -45,7 +45,7 @@ - id: tox-ini-fmt - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.6.2 + rev: v3.0.0-alpha.0 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/PKG-INFO new/prettytable-3.4.1/PKG-INFO --- old/prettytable-3.3.0/PKG-INFO 2022-05-05 17:20:34.741367600 +0200 +++ new/prettytable-3.4.1/PKG-INFO 2022-09-02 15:33:03.599464400 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: prettytable -Version: 3.3.0 +Version: 3.4.1 Summary: A simple Python library for easily displaying tabular data in a visually appealing ASCII table format Home-page: https://github.com/jazzband/prettytable Author: Luke Maurits @@ -8,7 +8,6 @@ Maintainer: Jazzband License: BSD (3 clause) Project-URL: Source, https://github.com/jazzband/prettytable -Platform: UNKNOWN Classifier: License :: OSI Approved :: BSD License Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 @@ -680,5 +679,3 @@ python -m pip install black black prettytable*.py ``` - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/src/prettytable/colortable.py new/prettytable-3.4.1/src/prettytable/colortable.py --- old/prettytable-3.3.0/src/prettytable/colortable.py 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/src/prettytable/colortable.py 2022-09-02 15:32:45.000000000 +0200 @@ -23,7 +23,7 @@ horizontal_color: str = "", junction_char: str = "+", junction_color: str = "", - ): + ) -> None: self.default_color = Theme.format_code(default_color) self.vertical_char = vertical_char self.vertical_color = Theme.format_code(vertical_color) @@ -53,7 +53,7 @@ class ColorTable(PrettyTable): - def __init__(self, field_names=None, **kwargs): + def __init__(self, field_names=None, **kwargs) -> None: super().__init__(field_names=field_names, **kwargs) # TODO: Validate option diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/src/prettytable/prettytable.py new/prettytable-3.4.1/src/prettytable/prettytable.py --- old/prettytable-3.3.0/src/prettytable/prettytable.py 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/src/prettytable/prettytable.py 2022-09-02 15:32:45.000000000 +0200 @@ -72,7 +72,7 @@ class PrettyTable: - def __init__(self, field_names=None, **kwargs): + def __init__(self, field_names=None, **kwargs) -> None: """Return a new PrettyTable instance Arguments: @@ -1126,7 +1126,8 @@ @property def top_right_junction_char(self): - """The character used when printing table borders to draw top-right line junctions + """ + The character used when printing table borders to draw top-right line junctions Arguments: @@ -1966,7 +1967,7 @@ return "\n".join(bits) - def paginate(self, page_length=58, **kwargs): + def paginate(self, page_length=58, line_break="\f", **kwargs): pages = [] kwargs["start"] = kwargs.get("start", 0) @@ -1977,7 +1978,7 @@ if kwargs["end"] == true_end: break kwargs["start"] += page_length - return "\f".join(pages) + return line_break.join(pages) ############################## # CSV STRING METHODS # @@ -2411,7 +2412,7 @@ class TableHandler(HTMLParser): - def __init__(self, **kwargs): + def __init__(self, **kwargs) -> None: HTMLParser.__init__(self) self.kwargs = kwargs self.tables = [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/src/prettytable.egg-info/PKG-INFO new/prettytable-3.4.1/src/prettytable.egg-info/PKG-INFO --- old/prettytable-3.3.0/src/prettytable.egg-info/PKG-INFO 2022-05-05 17:20:34.000000000 +0200 +++ new/prettytable-3.4.1/src/prettytable.egg-info/PKG-INFO 2022-09-02 15:33:03.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: prettytable -Version: 3.3.0 +Version: 3.4.1 Summary: A simple Python library for easily displaying tabular data in a visually appealing ASCII table format Home-page: https://github.com/jazzband/prettytable Author: Luke Maurits @@ -8,7 +8,6 @@ Maintainer: Jazzband License: BSD (3 clause) Project-URL: Source, https://github.com/jazzband/prettytable -Platform: UNKNOWN Classifier: License :: OSI Approved :: BSD License Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 @@ -680,5 +679,3 @@ python -m pip install black black prettytable*.py ``` - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/prettytable-3.3.0/tests/test_prettytable.py new/prettytable-3.4.1/tests/test_prettytable.py --- old/prettytable-3.3.0/tests/test_prettytable.py 2022-05-05 17:20:13.000000000 +0200 +++ new/prettytable-3.4.1/tests/test_prettytable.py 2022-09-02 15:32:45.000000000 +0200 @@ -1699,6 +1699,13 @@ assert "\f" in paginated assert paginated.endswith(expected_page_2) + # Act + paginated = t.paginate(page_length=4, line_break="\n") + + # Assert + assert "\f" not in paginated + assert "\n" in paginated + def test_add_rows(): """A table created with multiple add_row calls
