Name: python-pysnooper
# No tags on github: https://github.com/cool-RR/PySnooper/issues/128
%global commit de4027c0eff322252d57eff90327546257f5ff08
Version: 0.2.2
Release: 1%{?dist}
Summary: Poor man's debugger for Python
License: MIT
URL: https://github.com/cool-RR/pysnooper
Source0: https://github.com/cool-RR/pysnooper/archive/%commit/python-pysnooper-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: %{py3_dist pytest}
%global _description %{expand:
PySnooper is a replacement for debug print statements in code. After decorating
a function it automatically logs which lines were run and any changes to local
variables.}
%description %_description
%package -n python3-pysnooper
Summary: %{summary}
%{?python_provides python3-pysnooper}
%description -n python3-pysnooper %_description
%prep
%autosetup -n PySnooper-%{commit}
%build
%py3_build
%install
%py3_install
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} %__python3 -m pytest -v tests/
%files -n python3-pysnooper
%license LICENSE
%doc README.md
%{python3_sitelib}/pysnooper/
%{python3_sitelib}/PySnooper-%{version}-py%{python3_version}.egg-info/
%changelog
* Mon Jun 24 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.2-1
- Update to latest version
* Sat Jun 15 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.0-1
- Initial packaging