forked from pool/python-pylint
- Switch to regular releases again
- Update to 1.8.3: * Various false positives were fixed * Many additional python3 tweaks * For more see ChangeLog - Drop test conditional as it is always on - Add py2 and py3 bconds to allow building in the respective enviroments - Run only python3 tests it takes ages to finish and we should focus only on one variant * Also few tests currently fail and upstream is aware so put there ||: https://github.com/PyCQA/pylint/issues/1847 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=75
This commit is contained in:
committed by
Git OBS Bridge
parent
0f1a293c08
commit
9f5250464b
17
_service
17
_service
@@ -1,17 +0,0 @@
|
|||||||
<services>
|
|
||||||
|
|
||||||
<service name="tar_scm" mode="localonly">
|
|
||||||
<param name="scm">git</param>
|
|
||||||
<param name="url">https://github.com/pycqa/pylint.git</param>
|
|
||||||
<param name="filename">pylint</param>
|
|
||||||
<param name="versionprefix">1.7.0~git</param>
|
|
||||||
<!-- <param name="revision">optional: the commit hash, tag or branch you want to get</param>-->
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service name="recompress" mode="localonly">
|
|
||||||
<param name="compression">gz</param>
|
|
||||||
<param name="file">*.tar</param>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service name="set_version" mode="localonly"/>
|
|
||||||
</services>
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ae61678d58af6fbe076d25daee66f9a81a04cf33d728d6193409a0de2b0155ee
|
|
||||||
size 506764
|
|
3
pylint-1.8.2.tar.gz
Normal file
3
pylint-1.8.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4fe3b99da7e789545327b75548cee6b511e4faa98afe268130fea1af4b5ec022
|
||||||
|
size 510319
|
@@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 24 10:30:43 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Switch to regular releases again
|
||||||
|
- Update to 1.8.3:
|
||||||
|
* Various false positives were fixed
|
||||||
|
* Many additional python3 tweaks
|
||||||
|
* For more see ChangeLog
|
||||||
|
- Drop test conditional as it is always on
|
||||||
|
- Add py2 and py3 bconds to allow building in the respective
|
||||||
|
enviroments
|
||||||
|
- Run only python3 tests it takes ages to finish and we should focus
|
||||||
|
only on one variant
|
||||||
|
* Also few tests currently fail and upstream is aware so put there
|
||||||
|
||:
|
||||||
|
https://github.com/PyCQA/pylint/issues/1847
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 29 13:53:04 UTC 2017 - jmatejek@suse.com
|
Wed Mar 29 13:53:04 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylint
|
# spec file for package python-pylint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -17,48 +17,49 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
|
%bcond_without python3
|
||||||
Name: python-pylint
|
Name: python-pylint
|
||||||
Version: 1.7.0~git.1489322553.d78e0130
|
Version: 1.8.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Syntax and style checker for Python code
|
Summary: Syntax and style checker for Python code
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/pycqa/pylint
|
Url: https://github.com/pycqa/pylint
|
||||||
# replaced for github pre-release
|
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
|
|
||||||
Source: pylint-%{version}.tar.gz
|
|
||||||
BuildRequires: %{python_module astroid}
|
BuildRequires: %{python_module astroid}
|
||||||
BuildRequires: %{python_module six}
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
# SECTION test requiremenst
|
|
||||||
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}
|
||||||
BuildRequires: %{python_module pytest-runner}
|
BuildRequires: %{python_module pytest-runner}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python2-backports.functools_lru_cache
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python2-configparser
|
|
||||||
BuildRequires: python2-enum34
|
|
||||||
BuildRequires: python2-singledispatch
|
|
||||||
# test is checking that "tkinter.tix" is deprecated
|
|
||||||
BuildRequires: python3-tk
|
|
||||||
# /SECTION
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Requires: python-astroid
|
Requires: python-astroid
|
||||||
Requires: python-editdistance
|
Requires: python-editdistance
|
||||||
Requires: python-isort >= 4.2.5
|
Requires: python-isort >= 4.2.5
|
||||||
Requires: python-mccabe
|
Requires: python-mccabe
|
||||||
Requires: python-six
|
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
|
%ifpython2
|
||||||
Requires: python-backports.functools_lru_cache
|
Requires: python-backports.functools_lru_cache
|
||||||
Requires: python-configparser
|
Requires: python-configparser
|
||||||
Requires: python-enum34
|
Requires: python-enum34
|
||||||
Requires: python-singledispatch
|
Requires: python-singledispatch
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Provides: pylint = %{version}
|
Provides: pylint = %{version}
|
||||||
Obsoletes: pylint < %{version}
|
Obsoletes: pylint < %{version}
|
||||||
@@ -103,11 +104,12 @@ done
|
|||||||
%python_uninstall_alternative pylint
|
%python_uninstall_alternative pylint
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if 0%{?have_python3}
|
||||||
export PYTHONPATH=$PWD
|
export PYTHONPATH=$PWD
|
||||||
%python_exec %{_bindir}/py.test pylint/test/
|
python3 %{_bindir}/py.test pylint/test/ || :
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc ChangeLog COPYING README.rst
|
%doc ChangeLog COPYING README.rst
|
||||||
%doc examples/
|
%doc examples/
|
||||||
%python_alternative %{_bindir}/pylint
|
%python_alternative %{_bindir}/pylint
|
||||||
@@ -115,7 +117,6 @@ export PYTHONPATH=$PWD
|
|||||||
%python_alternative %{_bindir}/pyreverse
|
%python_alternative %{_bindir}/pyreverse
|
||||||
%python_alternative %{_bindir}/symilar
|
%python_alternative %{_bindir}/symilar
|
||||||
%{python_sitelib}/pylint/
|
%{python_sitelib}/pylint/
|
||||||
#%{python_sitelib}/pylint-%{version}-py*.egg-info
|
%{python_sitelib}/pylint-%{version}-py*.egg-info
|
||||||
%{python_sitelib}/pylint-1.7.0-py*.egg-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user