From a1dbe301d34acbcaee0b8ae7df948da7782edac6e2f0c218af3a7c6012df3f83 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 21 Nov 2022 14:25:12 +0000 Subject: [PATCH] Accepting request 1037123 from systemsmanagement:ansible OBS-URL: https://build.opensuse.org/request/show/1037123 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rich?expand=0&rev=42 --- _service | 4 ++++ python-rich.changes | 26 ++++++++++++++++++++++++++ python-rich.spec | 15 +++++---------- rich-12.5.1.tar.gz | 3 --- rich-12.6.0.tar.gz | 3 +++ 5 files changed, 38 insertions(+), 13 deletions(-) create mode 100644 _service delete mode 100644 rich-12.5.1.tar.gz create mode 100644 rich-12.6.0.tar.gz diff --git a/_service b/_service new file mode 100644 index 0000000..1bd86b8 --- /dev/null +++ b/_service @@ -0,0 +1,4 @@ + + + + diff --git a/python-rich.changes b/python-rich.changes index 9b67730..3cc4d9e 100644 --- a/python-rich.changes +++ b/python-rich.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Mon Nov 21 09:44:40 UTC 2022 - Johannes Kastl + +- change Source URL to https://files.pythonhosted.org +- change Upstream URL to https://github.com/Textualize/rich +- add _service file to easily download this +- remove CHANGELOG.md, as this is not present in the PyPI tarball +- Update to 12.6.0: + * Added + - Parse ANSI escape sequences in pretty repr #2470 + - Add support for FORCE_COLOR env var #2449 + - Allow a max_depth argument to be passed to the install() hook #2486 + - Document using None as name in __rich_repr__ for tuple positional args #2379 + - Add font_aspect_ratio parameter in SVG export https://github.com/Textualize/rich/pull/2539/files + - Added Table.add_section method. #2544 + * Fixed + - Handle stdout/stderr being null #2513 + - Fix NO_COLOR support on legacy Windows #2458 + - Fix pretty printer handling of cyclic references #2524 + - Fix missing mode property on file wrapper breaking uploads via requests #2495 + - Fix mismatching default value of parameter ensure_ascii #2538 + - Remove unused height parameter in Layout class #2540 + - Fixed exception in Syntax.rich_measure for empty files + * Changed + - Removed border from code blocks in Markdown + ------------------------------------------------------------------- Wed Jul 20 20:30:10 UTC 2022 - Ben Greiner diff --git a/python-rich.spec b/python-rich.spec index 30b7cbd..4874101 100644 --- a/python-rich.spec +++ b/python-rich.spec @@ -19,16 +19,14 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -# https://github.com/Textualize/rich/issues/2410 -%define commit cde23ed0a1ecad8c63436148c7e1fb6f0073fca8 Name: python-rich -Version: 12.5.1 +Version: 12.6.0 Release: 0 Summary: A Python library for rich text and beautiful formatting in the terminal License: MIT Group: Development/Languages/Python -URL: https://github.com/willmcgugan/rich -Source: https://github.com/willmcgugan/rich/archive/%{commit}.tar.gz#/rich-%{version}.tar.gz +URL: https://github.com/Textualize/rich +Source: https://files.pythonhosted.org/packages/source/r/rich/rich-%{version}.tar.gz BuildRequires: %{python_module commonmark >= 0.9.0} BuildRequires: %{python_module dataclasses >= 0.7 if %python-base < 3.7} BuildRequires: %{python_module pip} @@ -57,7 +55,7 @@ Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal. %prep -%setup -q -n rich-%{commit} +%setup -q -n rich-%{version} %build %pyproject_wheel @@ -66,12 +64,9 @@ markdown and more to the terminal. %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%check -%pytest -k 'not test_log' - %files %{python_files} %license LICENSE -%doc CHANGELOG.md README.md +%doc README.md %{python_sitelib}/rich %{python_sitelib}/rich-%{version}*-info diff --git a/rich-12.5.1.tar.gz b/rich-12.5.1.tar.gz deleted file mode 100644 index 3fb82a0..0000000 --- a/rich-12.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56155068c26e0ba5baf3a5b0768a27e5182f863fd0c07c17de95c9be8117d634 -size 15035078 diff --git a/rich-12.6.0.tar.gz b/rich-12.6.0.tar.gz new file mode 100644 index 0000000..087a55d --- /dev/null +++ b/rich-12.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba3a3775974105c221d31141f2c116f4fd65c5ceb0698657a11e9f295ec93fd0 +size 220114