From 7579642717a0a4f83488560d50e2b5b5d76eaced Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Oct 07 2020 19:29:58 +0000 Subject: Update to 2.1.0 and convert to pyproject macros (rhbz#1856288) Remove the python_provide macro --- diff --git a/python-pygments-pytest.spec b/python-pygments-pytest.spec index e327579..a8e62cb 100644 --- a/python-pygments-pytest.spec +++ b/python-pygments-pytest.spec @@ -6,8 +6,8 @@ %bcond_with tests Name: python-%{dash_name} -Version: 2.0.0 -Release: 2%{?dist} +Version: 2.1.0 +Release: 1%{?dist} Summary: A pygments lexer for pytest output License: MIT URL: https://github.com/asottile/pygments-pytest @@ -15,12 +15,7 @@ Source0: %{url}/archive/v%{version}/%{dash_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools -%if %{with tests} -BuildRequires: python3-pygments -BuildRequires: python3-pygments-ansi-color -BuildRequires: python3-pytest -%endif +BuildRequires: pyproject-rpm-macros %description This library provides a pygments lexer called pytest. @@ -28,7 +23,6 @@ This library also provides a sphinx extension. %package -n python3-%{dash_name} Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{dash_name} This library provides a pygments lexer called pytest. @@ -38,25 +32,29 @@ This library also provides a sphinx extension. %prep %autosetup -n %{dash_name}-%{version} +%generate_buildrequires +%pyproject_buildrequires %{?with_tests:-t} + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{pypi_name} %if %{with tests} %check %pytest -v %endif -%files -n python3-%{dash_name} +%files -n python3-%{dash_name} -f %pyproject_files %license LICENSE %doc README.md -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{pypi_name}.py -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog +* Wed Oct 07 2020 Charalampos Stratakis - 2.1.0-1 +- Update to 2.1.0 and convert to pyproject macros (rhbz#1856288) + * Wed Jul 29 2020 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 578aa21..a7f7ae5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pygments-pytest-2.0.0.tar.gz) = 0605f397db7678da1d8a3f8e111f12b07a5aa04102f64ad3ef94cc6f57468290abaf72ed080c912ec079605e28289e3ceb0d976bb6a572efefd44d19fea94140 +SHA512 (pygments-pytest-2.1.0.tar.gz) = baaa9f463ac228b9a9f6d26ab316b81a60d46185504844153cedeee52c566858c9007f5c8e95415f95e4c08b52a53cb8497d1aefbe1549e16df382231cc790fc