From 0f5a14e4229107d69e0eeae7d14e5b2ef516d9bc Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: May 12 2023 22:37:29 +0000 Subject: Update to 2.3.0 - Closes rhbz#2162954 - Convert to rpmautospec - Adopt pyproject-rpm-macros - Change homepage to package defined GitHub's one - Enable checks --- diff --git a/.gitignore b/.gitignore index 5a61118..db60181 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /termcolor-1.1.0.tar.gz +/termcolor-2.2.0.tar.gz +/termcolor-2.3.0.tar.gz diff --git a/python-termcolor.spec b/python-termcolor.spec index 1048919..86fdd9b 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -2,18 +2,18 @@ %global sum ANSI Color formatting for output in terminal Name: python-%{pypi_name} -Version: 1.1.0 +Version: 2.3.0 Release: %autorelease Summary: %{sum} License: MIT -URL: http://pypi.python.org/pypi/termcolor/1.1.0 -Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +URL: https://github.com/termcolor/termcolor +Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools - +BuildRequires: pyproject-rpm-macros +BuildRequires: python3dist(pytest) %description ANSI Color formatting for output in terminal. @@ -21,34 +21,29 @@ ANSI Color formatting for output in terminal. %package -n python3-%{pypi_name} Summary: %{sum} -%{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} A Python 3 version of ANSI Color formatting for output in terminal. - %prep %setup -q -n %{pypi_name}-%{version} +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build - +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{pypi_name} +%check +%pytest -%files -n python3-%{pypi_name} -%doc README.rst +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc CHANGES.md README.md %license COPYING.txt -%{python3_sitelib}/%{pypi_name}.py* -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info - -# there is an asterisk in the name of the file, -# because sometimes the suffix of the architecture is added -%{python3_sitelib}/__pycache__/%{pypi_name}.cpython-%{python3_version_nodots}*.py? - %changelog %autochangelog diff --git a/sources b/sources index 7687dc5..f08f3f5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -043e89644f8909d462fbbfa511c768df termcolor-1.1.0.tar.gz +SHA512 (termcolor-2.3.0.tar.gz) = 0ccfd9320235215b85ddbf099399aaa325dd7176be7a39225377a81c372f9733105dcfe4a9e577cdca451be1f9b5538a071fc511bccd226fe0c4cbecb536bbf3