00f49f7
%global srcname PySnooper
04f1bda
Name:           python-pysnooper
bb5e3eb
Version:        1.2.0
5a0f58f
Release:        %autorelease
04f1bda
Summary:        Poor man's debugger for Python
04f1bda
04f1bda
License:        MIT
04f1bda
URL:            https://github.com/cool-RR/pysnooper
00f49f7
Source0:        %pypi_source
04f1bda
04f1bda
BuildArch:      noarch
04f1bda
BuildRequires:  python3-devel
b35465a
BuildRequires:  python3dist(pytest)
0c94537
BuildRequires:  python3dist(setuptools)
48bf68c
BuildRequires:  python3dist(six)
21ccbea
BuildRequires:  python3dist(setuptools)
04f1bda
04f1bda
%global _description %{expand:
04f1bda
PySnooper is a replacement for debug print statements in code. After decorating
04f1bda
a function it automatically logs which lines were run and any changes to local
73d01fd
variables.
73d01fd
73d01fd
@pysnooper.snoop()
73d01fd
def func(...):
73d01fd
  ...
73d01fd
}
04f1bda
04f1bda
%description %_description
04f1bda
04f1bda
%package -n python3-pysnooper
04f1bda
Summary:        %{summary}
04f1bda
%{?python_provides python3-pysnooper}
04f1bda
04f1bda
%description -n python3-pysnooper %_description
04f1bda
04f1bda
%prep
9e01bed
%autosetup -n PySnooper-%{version}
04f1bda
04f1bda
%build
04f1bda
%py3_build
04f1bda
04f1bda
%install
04f1bda
%py3_install
04f1bda
04f1bda
%check
21ccbea
PYTHONPATH=%{buildroot}%{python3_sitelib} %python3 -m pytest -v tests/
04f1bda
04f1bda
%files -n python3-pysnooper
04f1bda
%license LICENSE
04f1bda
%doc README.md
04f1bda
%{python3_sitelib}/pysnooper/
04f1bda
%{python3_sitelib}/PySnooper-%{version}-py%{python3_version}.egg-info/
04f1bda
04f1bda
%changelog
5a0f58f
%autochangelog