forked from pool/python-vim-vint
Accepting request 678595 from home:jayvdb:coala:python3-bears
- Add missing dependencies for Python 2, enum34 and pathlib and add missing test dependency mock - Remove unnecessary build dependency python-devel - Remove %bcond test - Fix CLI tests with test-sys-executable.patch - Change version == pins to >= in setup.py and test-requirements.txt - Update to v0.3.19 * New features + Initial support for stdin * Bug fixes + Disable ProhibitImplicitScopeVariable + Suppress warnings caused by map([], ' "x" ') + Fix linting autocmd + Fix acceptance tests * Optimize + ProhibitUnusedVariable + get_asset_path + ConfigProjectSource * Documentation + Link to default config + Fix a broken code block for example - Initial version v0.3.18 OBS-URL: https://build.opensuse.org/request/show/678595 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vim-vint?expand=0&rev=1
This commit is contained in:
78
python-vim-vint.spec
Normal file
78
python-vim-vint.spec
Normal file
@@ -0,0 +1,78 @@
|
||||
#
|
||||
# spec file for package python-vim-vint
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# 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/
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-vim-vint
|
||||
Version: 0.3.19
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Lint tool for Vim script Language
|
||||
Url: https://github.com/Kuniwak/vint
|
||||
Group: Development/Languages/Python
|
||||
Source: https://github.com/Kuniwak/vint/archive/v0.3.19.tar.gz
|
||||
Patch0: test-sys-executable.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module ansicolor >= 0.2.4}
|
||||
BuildRequires: %{python_module chardet >= 2.3.0}
|
||||
BuildRequires: %{python_module PyYAML >= 3.11}
|
||||
BuildRequires: %{python_module coverage >= 3.7.1}
|
||||
BuildRequires: %{python_module pathlib}
|
||||
BuildRequires: %{python_module pytest >= 2.6.4}
|
||||
BuildRequires: %{python_module pytest-cov >= 1.8.1}
|
||||
BuildRequires: python-enum34 >= 1.0.4
|
||||
BuildRequires: python2-mock >= 1.0.1
|
||||
BuildRequires: python-typing >= 3.6.2
|
||||
Requires: python-ansicolor >= 0.2.4
|
||||
Requires: python-chardet >= 2.3.0
|
||||
Requires: python-PyYAML >= 3.11
|
||||
%ifpython2
|
||||
Requires: python-enum34 >= 1.0.4
|
||||
Requires: python-pathlib >= 1.0.1
|
||||
Requires: python-typing >= 3.6.2
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A lint tool for the Vim script Language.
|
||||
|
||||
%prep
|
||||
%setup -q -n vint-%{version}
|
||||
%patch0 -p1
|
||||
sed -i 's/==/>=/g' setup.py test-requirements.txt
|
||||
sed -i -e '/^#!\//, 1d' vint/_bundles/vimlparser.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%python3_only %{_bindir}/vint
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user