Name: python-tokenize-rt Version: 5.0.0 Release: 2%{?dist} Summary: Wrapper for Python's stdlib `tokenize` supporting roundtrips License: MIT URL: https://github.com/asottile/tokenize-rt Source: %{url}/archive/v%{version}/tokenize-rt-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Testing requirements # covdefaults (from tox.ini -> requirements-dev.txt) is not packaged # for Fedora, using pytest directly BuildRequires: python3dist(pytest) %global _description %{expand: The stdlib tokenize module does not properly roundtrip. This wrapper around the stdlib provides two additional tokens ESCAPED_NL and UNIMPORTANT_WS, and a Token data type. Use src_to_tokens and tokens_to_src to roundtrip. This library is useful if you are writing a refactoring tool based on the python tokenization.} %description %_description %package -n python3-tokenize-rt Summary: %{summary} %description -n python3-tokenize-rt %_description %prep %autosetup -p1 -n tokenize-rt-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files tokenize_rt %check %pytest %files -n python3-tokenize-rt -f %{pyproject_files} %doc README.md %{_bindir}/tokenize-rt %changelog * Fri Jan 20 2023 Fedora Release Engineering - 5.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Oct 04 2022 Roman Inflianskas - 5.0.0-1 - Update to 5.0.0 (resolve rhbz#2131856) * Fri Jul 22 2022 Fedora Release Engineering - 4.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jul 13 2022 Roman Inflianskas - 4.2.1-1 - Initial package