diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..881e6b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/python-pysnooper-0.2.2.tar.gz diff --git a/python-pysnooper.spec b/python-pysnooper.spec new file mode 100644 index 0000000..1ddb14d --- /dev/null +++ b/python-pysnooper.spec @@ -0,0 +1,52 @@ +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 - 0.2.2-1 +- Update to latest version + +* Sat Jun 15 2019 Zbigniew Jędrzejewski-Szmek - 0.2.0-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..514aa75 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-pysnooper-0.2.2.tar.gz) = 5e4e903c7d53a5fb7aea3dd16b5fc85afbc05247ca61724179d17824b0d1d0a6b7c8ef83eb453536c3c1c29d4062799e8e81e4d3524a6022679738503bf2da7a