14
0
forked from pool/python-pylint

- Version update to 2.1.1:

* latest release supports only python3
  * Require 2.0 series astroid

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=80
This commit is contained in:
Tomáš Chvátal
2018-09-18 10:12:19 +00:00
committed by Git OBS Bridge
parent 576c1ce4a8
commit 4a8b394c8b
4 changed files with 16 additions and 33 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fff220bcb996b4f7e2b0f6812fd81507b72ca4d8c4d05daf2655c333800cb9b3
size 516869

3
pylint-2.1.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31142f764d2a7cd41df5196f9933b12b7ee55e73ef12204b648ad7e556c119fb
size 555770

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 18 10:11:11 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Version update to 2.1.1:
* latest release supports only python3
* Require 2.0 series astroid
-------------------------------------------------------------------
Mon Jul 16 12:49:49 UTC 2018 - tchvatal@suse.com

View File

@@ -12,22 +12,21 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
%bcond_without python3
%define skip_python2 1
Name: python-pylint
Version: 1.9.2
Version: 2.1.1
Release: 0
Summary: Syntax and style checker for Python code
License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/pycqa/pylint
Source: https://files.pythonhosted.org/packages/source/p/pylint/pylint-%{version}.tar.gz
BuildRequires: %{python_module astroid >= 1.6.5}
BuildRequires: %{python_module astroid >= 2.0}
BuildRequires: %{python_module editdistance}
BuildRequires: %{python_module isort >= 4.2.5}
BuildRequires: %{python_module mccabe}
@@ -36,7 +35,7 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-astroid >= 1.6.5
Requires: python-astroid >= 2.0
Requires: python-editdistance
Requires: python-isort >= 4.2.5
Requires: python-mccabe
@@ -44,26 +43,8 @@ Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-backports.functools_lru_cache
BuildRequires: python2-configparser
BuildRequires: python2-enum34
BuildRequires: python2-singledispatch
%endif
%if %{with python3}
# test is checking that "tkinter.tix" is deprecated
BuildRequires: python3-tk
%endif
%ifpython2
Requires: python-backports.functools_lru_cache
Requires: python-configparser
Requires: python-enum34
Requires: python-singledispatch
%endif
%ifpython2
Provides: pylint = %{version}
Obsoletes: pylint < %{version}
%endif
%python_subpackages
%description
@@ -84,9 +65,6 @@ feature.
%prep
%setup -q -n pylint-%{version}
# FIXME: remove with next update
# The test fails here reliably
rm -f pylint/test/functional/using_constant_test.py
%build
%python_build
@@ -107,9 +85,7 @@ done
%python_uninstall_alternative pylint
%check
%if 0%{?have_python3}
PYTHONPATH=. python3 %{_bindir}/py.test pylint/test/
%endif
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" py.test-%{$python_bin_suffix} pylint/test/
%files %{python_files}
%license COPYING