commit 03b382ec95081cf4f25d17dbfe5b95df6ebcaee2939ebca495e0cd5f34f59e56 Author: Dominique Leuenberger Date: Mon Oct 9 17:47:09 2017 +0000 Accepting request 532672 from devel:languages:python new package, dependency of avocado framework OBS-URL: https://build.opensuse.org/request/show/532672 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-inspektor?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/inspektor-0.4.5.tar.gz b/inspektor-0.4.5.tar.gz new file mode 100644 index 0000000..c483bb9 --- /dev/null +++ b/inspektor-0.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d21f51abd4311fb58faff3cd6915866eaef7f43d84b2b4bfc67bf28e7e3a068 +size 30836 diff --git a/python-inspektor.changes b/python-inspektor.changes new file mode 100644 index 0000000..464e978 --- /dev/null +++ b/python-inspektor.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sun Oct 8 09:16:01 UTC 2017 - jengelh@inai.de + +- Remove history lesson from description. + +------------------------------------------------------------------- +Thu Oct 5 11:45:25 UTC 2017 - mpluskal@suse.com + +- Initial package for version 0.4.5 diff --git a/python-inspektor.spec b/python-inspektor.spec new file mode 100644 index 0000000..0d124a6 --- /dev/null +++ b/python-inspektor.spec @@ -0,0 +1,76 @@ +# +# spec file for package python +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global pkgname inspektor +Name: python-%{pkgname} +Version: 0.4.5 +Release: 0 +Summary: Program used to verify the code of your python project +License: GPL-2.0 +Group: Development/Languages/Python +Url: https://github.com/avocado-framework/inspektor +Source: https://github.com/avocado-framework/inspektor/archive/%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz +BuildRequires: %{python_module base} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module logutils} +BuildRequires: %{python_module pep8} +BuildRequires: %{python_module pylint} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-logutils +Requires: python-pep8 +Requires: python-pylint +Requires: python-six +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Inspektor is a program used to verify the code of a Python project. +It checks code with the help of pylint, checks indentation with +pycodestyle, and checks for PEP8 compliance. + +Inspektor can work with Git and SVN checkouts. + +%prep +%setup -q -n %{pkgname}-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/inspekt +%fdupes %{buildroot} + +%post +%python_install_alternative inspekt + +%postun +%python_uninstall_alternative inspekt + +%files %{python_files} +%doc LICENSE README.rst +%python_alternative %{_bindir}/inspekt +%{python_sitelib}/* + +%changelog