14
0
forked from pool/python-pylama

Accepting request 1086626 from home:bnavigator:branches:devel:languages:python

- Skip failing pylint test: pylint has advanced, but pylama is not
  maintained at the moment -- gh#klen/pylama#238

OBS-URL: https://build.opensuse.org/request/show/1086626
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylama?expand=0&rev=19
This commit is contained in:
2023-05-11 22:25:50 +00:00
committed by Git OBS Bridge
parent f87f88ff20
commit 6c1788245b
2 changed files with 13 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 11 20:00:18 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Skip failing pylint test: pylint has advanced, but pylama is not
maintained at the moment -- gh#klen/pylama#238
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 25 09:18:53 UTC 2022 - Ben Greiner <code@bnavigator.de> Thu Aug 25 09:18:53 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pylama # spec file for package python-pylama
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -26,10 +26,12 @@ URL: https://github.com/klen/pylama
Source: https://github.com/klen/pylama/archive/refs/tags/%{version}.tar.gz#/pylama-%{version}-gh.tar.gz Source: https://github.com/klen/pylama/archive/refs/tags/%{version}.tar.gz#/pylama-%{version}-gh.tar.gz
BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module mccabe >= 0.7.0} BuildRequires: %{python_module mccabe >= 0.7.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pycodestyle >= 2.9.1} BuildRequires: %{python_module pycodestyle >= 2.9.1}
BuildRequires: %{python_module pydocstyle >= 6.1.1} BuildRequires: %{python_module pydocstyle >= 6.1.1}
BuildRequires: %{python_module pyflakes >= 2.5.0} BuildRequires: %{python_module pyflakes >= 2.5.0}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: git-core BuildRequires: git-core
BuildRequires: mypy BuildRequires: mypy
@@ -76,11 +78,11 @@ Code audit tool for Python. Pylama wraps these tools:
%build %build
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_build %pyproject_wheel
%install %install
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pylama %python_clone -a %{buildroot}%{_bindir}/pylama
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -88,6 +90,8 @@ export LANG=en_US.UTF-8
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
# pylama-quotes is on PyPI but has no active Website or repository for code maintenance # pylama-quotes is on PyPI but has no active Website or repository for code maintenance
donttest="test_quotes" donttest="test_quotes"
# gh#klen/pylama#238
donttest+=" or test_pylint"
%pytest -k "not ($donttest)" %pytest -k "not ($donttest)"
%post %post