diff --git a/pylint-1.9.2.tar.gz b/pylint-1.9.2.tar.gz deleted file mode 100644 index f279770..0000000 --- a/pylint-1.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fff220bcb996b4f7e2b0f6812fd81507b72ca4d8c4d05daf2655c333800cb9b3 -size 516869 diff --git a/pylint-2.1.1.tar.gz b/pylint-2.1.1.tar.gz new file mode 100644 index 0000000..35e1d0f --- /dev/null +++ b/pylint-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31142f764d2a7cd41df5196f9933b12b7ee55e73ef12204b648ad7e556c119fb +size 555770 diff --git a/python-pylint.changes b/python-pylint.changes index aea0b60..f20c1c8 100644 --- a/python-pylint.changes +++ b/python-pylint.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Sep 18 10:11:11 UTC 2018 - Tomáš Chvátal + +- 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 diff --git a/python-pylint.spec b/python-pylint.spec index 1daa148..b9db51c 100644 --- a/python-pylint.spec +++ b/python-pylint.spec @@ -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