# Created by pyp2rpm-3.3.2 %global original_name PySnooper %global pypi_name pysnooper Name: python-%{pypi_name} Version: 0.2.2 Release: 1%{?dist} Summary: A poor man's debugger for Python License: MIT URL: https://github.com/cool-RR/PySnooper Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/PySnooper-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(pytest) %global _description \ PySnooper - Never use print for debugging again! You're trying to figure\ out why your Python code isn't doing what you think it should be doing.\ You'd love to use a full-fledged debugger with breakpoints and watches,\ but you can't be bothered to set one up right now. You want to know which\ lines are running and which aren't, and what the values of the values of\ the local variables are. Most people would use print lines, in strategic\ locations, some of them showing the values of variables. PySnooper lets\ you do the same, except instead of carefully crafting the right print lines,\ you just add one decorator line to the function you're interested in.\ You'll get a play-by-play log of your function, including which lines ran\ and when, and exactly when local variables were changed. %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -n PySnooper-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check py.test-3 %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{original_name}-%{version}-py?.?.egg-info %changelog * Wed Jun 19 2019 Lumír Balhar - 0.2.2-1 - Initial package.