diff --git a/python-rich.changes b/python-rich.changes index e108b3d..aa74949 100644 --- a/python-rich.changes +++ b/python-rich.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Dec 5 01:45:25 UTC 2024 - Steve Kowalik + +- Switch to GitHub tarball so we can run the testsuite. +- Correct version guard for typing_extensions Requires. +- Drop Python 3.7 sections. + ------------------------------------------------------------------- Wed Nov 20 17:44:21 UTC 2024 - Dirk Müller diff --git a/python-rich.spec b/python-rich.spec index 5d8dd2b..378429c 100644 --- a/python-rich.spec +++ b/python-rich.spec @@ -23,15 +23,14 @@ Version: 13.9.4 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/Textualize/rich -Source: https://files.pythonhosted.org/packages/source/r/rich/rich-%{version}.tar.gz -BuildRequires: %{python_module dataclasses >= 0.7 if %python-base < 3.7} +Source: https://github.com/Textualize/rich/archive/refs/tags/v%{version}.tar.gz#/rich-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module markdown-it-py >= 2.2.0} BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module pygments >= 2.13.0} -BuildRequires: %{python_module typing_extensions >= 4.0.0 if %python-base < 3.9} +BuildRequires: %{python_module typing_extensions >= 4.0.0 if %python-base < 3.11} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-markdown-it-py >= 2.2.0 @@ -41,12 +40,9 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} # /SECTION -%if 0%{?python_version_nodots} < 39 +%if 0%{?python_version_nodots} < 311 Requires: python-typing_extensions >= 4.0.0 %endif -%if 0%{?python_version_nodots} < 37 -Requires: python-dataclasses >= 0.7 -%endif %python_subpackages %description @@ -63,10 +59,13 @@ markdown and more to the terminal. %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %license LICENSE %doc README.md %{python_sitelib}/rich -%{python_sitelib}/rich-%{version}*-info +%{python_sitelib}/rich-%{version}.dist-info %changelog diff --git a/rich-13.9.4.tar.gz b/rich-13.9.4.tar.gz index f105b5a..61709e5 100644 --- a/rich-13.9.4.tar.gz +++ b/rich-13.9.4.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:439594978a49a09530cff7ebc4b5c7103ef57baf48d5ea3184f21d9a2befa098 -size 223149 +oid sha256:22bfd7f24f6107ed222f6ab0cee6f0016e22cb6f91144b90c65b112663c7477c +size 15064359