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:
committed by
Git OBS Bridge
parent
576c1ce4a8
commit
4a8b394c8b
@@ -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
3
pylint-2.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:31142f764d2a7cd41df5196f9933b12b7ee55e73ef12204b648ad7e556c119fb
|
||||||
|
size 555770
|
@@ -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
|
Mon Jul 16 12:49:49 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@@ -12,22 +12,21 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without python2
|
%define skip_python2 1
|
||||||
%bcond_without python3
|
|
||||||
Name: python-pylint
|
Name: python-pylint
|
||||||
Version: 1.9.2
|
Version: 2.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Syntax and style checker for Python code
|
Summary: Syntax and style checker for Python code
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/pycqa/pylint
|
URL: https://github.com/pycqa/pylint
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pylint/pylint-%{version}.tar.gz
|
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 editdistance}
|
||||||
BuildRequires: %{python_module isort >= 4.2.5}
|
BuildRequires: %{python_module isort >= 4.2.5}
|
||||||
BuildRequires: %{python_module mccabe}
|
BuildRequires: %{python_module mccabe}
|
||||||
@@ -36,7 +35,7 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-astroid >= 1.6.5
|
Requires: python-astroid >= 2.0
|
||||||
Requires: python-editdistance
|
Requires: python-editdistance
|
||||||
Requires: python-isort >= 4.2.5
|
Requires: python-isort >= 4.2.5
|
||||||
Requires: python-mccabe
|
Requires: python-mccabe
|
||||||
@@ -44,26 +43,8 @@ Requires: python-six
|
|||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
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
|
# test is checking that "tkinter.tix" is deprecated
|
||||||
BuildRequires: python3-tk
|
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
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -84,9 +65,6 @@ feature.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pylint-%{version}
|
%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
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -107,9 +85,7 @@ done
|
|||||||
%python_uninstall_alternative pylint
|
%python_uninstall_alternative pylint
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?have_python3}
|
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" py.test-%{$python_bin_suffix} pylint/test/
|
||||||
PYTHONPATH=. python3 %{_bindir}/py.test pylint/test/
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Reference in New Issue
Block a user