- Really run tests
- Drop devel dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycodestyle?expand=0&rev=7
This commit is contained in:
parent
3952b8659f
commit
e680be71d6
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 8 12:39:45 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Really run tests
|
||||
- Drop devel dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 11 06:33:20 UTC 2018 - arun@gmx.de
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_without test
|
||||
Name: python-pycodestyle
|
||||
Version: 2.4.0
|
||||
Release: 0
|
||||
@ -27,7 +26,6 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://pycodestyle.readthedocs.io/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pycodestyle/pycodestyle-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@ -35,10 +33,8 @@ BuildArch: noarch
|
||||
Provides: %{oldpython}-pep8 = %{version}
|
||||
Obsoletes: %{oldpython}-pep8 < %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Provides: python3-pep8 = %{version}
|
||||
Obsoletes: python3-pep8 < %{version}
|
||||
%endif
|
||||
Provides: python-pep8 = %{version}
|
||||
Obsoletes: python-pep8 < %{version}
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -48,18 +44,6 @@ conventions in `PEP 8`.
|
||||
This package used to be called ``pep8`` but was renamed to ``pycodestyle``
|
||||
to reduce confusion.
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
* Plugin architecture: Adding new checks is easy.
|
||||
|
||||
* Parseable output: Jump to error location in your editor.
|
||||
|
||||
* Small: Just one Python file, requires only stdlib. You can use just
|
||||
the ``pycodestyle.py`` file for this purpose.
|
||||
|
||||
* Comes with a comprehensive test suite.
|
||||
|
||||
%prep
|
||||
%setup -q -n pycodestyle-%{version}
|
||||
sed -ri '1s/^#!.*//' pycodestyle.py
|
||||
@ -72,6 +56,9 @@ sed -ri '1s/^#!.*//' pycodestyle.py
|
||||
%python_clone %{buildroot}%{_bindir}/pycodestyle
|
||||
ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
|
Loading…
x
Reference in New Issue
Block a user