- 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:
Tomáš Chvátal 2018-08-08 12:39:58 +00:00 committed by Git OBS Bridge
parent 3952b8659f
commit e680be71d6
2 changed files with 11 additions and 18 deletions

View File

@ -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 Wed Apr 11 06:33:20 UTC 2018 - arun@gmx.de

View File

@ -18,7 +18,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python %define oldpython python
%bcond_without test
Name: python-pycodestyle Name: python-pycodestyle
Version: 2.4.0 Version: 2.4.0
Release: 0 Release: 0
@ -27,7 +26,6 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://pycodestyle.readthedocs.io/ Url: https://pycodestyle.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/p/pycodestyle/pycodestyle-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pycodestyle/pycodestyle-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@ -35,10 +33,8 @@ BuildArch: noarch
Provides: %{oldpython}-pep8 = %{version} Provides: %{oldpython}-pep8 = %{version}
Obsoletes: %{oldpython}-pep8 < %{version} Obsoletes: %{oldpython}-pep8 < %{version}
%endif %endif
%ifpython3 Provides: python-pep8 = %{version}
Provides: python3-pep8 = %{version} Obsoletes: python-pep8 < %{version}
Obsoletes: python3-pep8 < %{version}
%endif
%python_subpackages %python_subpackages
%description %description
@ -48,18 +44,6 @@ conventions in `PEP 8`.
This package used to be called ``pep8`` but was renamed to ``pycodestyle`` This package used to be called ``pep8`` but was renamed to ``pycodestyle``
to reduce confusion. 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 %prep
%setup -q -n pycodestyle-%{version} %setup -q -n pycodestyle-%{version}
sed -ri '1s/^#!.*//' pycodestyle.py sed -ri '1s/^#!.*//' pycodestyle.py
@ -72,6 +56,9 @@ sed -ri '1s/^#!.*//' pycodestyle.py
%python_clone %{buildroot}%{_bindir}/pycodestyle %python_clone %{buildroot}%{_bindir}/pycodestyle
ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle
%check
%python_exec setup.py test
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst