%global srcname flake8-deprecated Name: python-%{srcname} Version: 2.2.1 Release: 2%{?dist} Summary: Flake8 plugin that warns about deprecated method calls License: GPL-2.0-only URL: https://github.com/gforcada/flake8-deprecated Source0: https://github.com/gforcada/flake8-deprecated/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: No language, library or framework ever get everything right from the very beginning. The project evolves, new features are added/changed/removed. This means that projects relying on them must keep an eye on what's currently best practices. This flake8 plugin helps you keeping up with method deprecations and giving hints about what they should be replaced with.} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel %description -n python%{python3_pkgversion}-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l flake8_deprecated %check %pytest run_tests.py %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %doc CHANGES.rst README.rst %changelog * Fri Jul 19 2024 Fedora Release Engineering - 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Mar 21 2024 Scott K Logan - 2.2.1-1 - Update to 2.2.1 - Add `-l` flag to %%pyproject_save_files * Tue Nov 22 2022 Scott K Logan - 2.0.1-2 - Define _description variable to reduce duplication - Drop macro from URL to improve ergonomics * Thu Nov 10 2022 Scott K Logan - 2.0.1-1 - Initial package (rhbz#2141870)