- Switch to pyproject macros.
- Clean up {Build,}Requires. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:avocado/python-inspektor?expand=0&rev=19
This commit is contained in:
commit
715f8cdb9e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
inspektor-0.5.2.tar.gz
Normal file
3
inspektor-0.5.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d09e29a4e0fd8e2e33beffa3e1cab3eaf769695ef319f4d480bb53900d511f54
|
||||||
|
size 33718
|
51
python-inspektor.changes
Normal file
51
python-inspektor.changes
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 9 06:39:32 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- Clean up {Build,}Requires.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 29 13:20:53 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Only build for primary python3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 14 04:51:13 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Only build for 3.8, some depends only built there.
|
||||||
|
- There is no test suite, remove trying to run it.
|
||||||
|
- Remove broken %ifpython3 macro.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 16 09:59:52 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.5.2
|
||||||
|
* No changelog available
|
||||||
|
- Use pypi url for source
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 2 08:47:15 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Do not run tests on old distributions
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 9 08:21:56 UTC 2018 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Update dependencies to match latest python packaging changes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 27 11:20:41 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.5.1:
|
||||||
|
* No changelog available
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
88
python-inspektor.spec
Normal file
88
python-inspektor.spec
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-inspektor
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{suse_version} >= 1550
|
||||||
|
# cliff and stevedore are only built for primary python3
|
||||||
|
%define pythons python3
|
||||||
|
%endif
|
||||||
|
%global pkgname inspektor
|
||||||
|
Name: python-%{pkgname}
|
||||||
|
Version: 0.5.2
|
||||||
|
Release: 0
|
||||||
|
Summary: Program used to verify the code of your python project
|
||||||
|
License: GPL-2.0-only
|
||||||
|
URL: https://github.com/avocado-framework/inspektor
|
||||||
|
Source: https://files.pythonhosted.org/packages/42/8a/9e375ac0bb498760fe2408a2e0f1fe09808933e593d1b6f04193492b9048/inspektor-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module astroid >= 1.2.1}
|
||||||
|
BuildRequires: %{python_module cmd2}
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module logutils >= 0.3.3}
|
||||||
|
BuildRequires: %{python_module pbr >= 1.4}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module pycodestyle >= 2.0.0}
|
||||||
|
BuildRequires: %{python_module pylint >= 1.3.1}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-cliff
|
||||||
|
BuildRequires: python3-stevedore
|
||||||
|
Requires: python-cliff
|
||||||
|
Requires: python-pycodestyle >= 2.0.0
|
||||||
|
Requires: python-pylint >= 1.3.1
|
||||||
|
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
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%check
|
||||||
|
# No test suite
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/inspekt
|
||||||
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative inspekt
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative inspekt
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%python_alternative %{_bindir}/inspekt
|
||||||
|
%{python_sitelib}/%{pkgname}
|
||||||
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user