forked from pool/python-pycodestyle
Accepting request 595497 from home:apersaud:branches:devel:languages:python
update to latest version OBS-URL: https://build.opensuse.org/request/show/595497 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycodestyle?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
67f19c64e4
commit
3952b8659f
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pycodestyle
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,7 +20,7 @@
|
||||
%define oldpython python
|
||||
%bcond_without test
|
||||
Name: python-pycodestyle
|
||||
Version: 2.3.1
|
||||
Version: 2.4.0
|
||||
Release: 0
|
||||
Summary: Python style guide checker
|
||||
License: MIT
|
||||
@@ -30,7 +30,6 @@ Source: https://files.pythonhosted.org/packages/source/p/pycodestyle/pyc
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-pep8 = %{version}
|
||||
@@ -40,7 +39,6 @@ Obsoletes: %{oldpython}-pep8 < %{version}
|
||||
Provides: python3-pep8 = %{version}
|
||||
Obsoletes: python3-pep8 < %{version}
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -62,7 +60,6 @@ Features
|
||||
|
||||
* Comes with a comprehensive test suite.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n pycodestyle-%{version}
|
||||
sed -ri '1s/^#!.*//' pycodestyle.py
|
||||
@@ -76,7 +73,8 @@ sed -ri '1s/^#!.*//' pycodestyle.py
|
||||
ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%python3_only %{_bindir}/pycodestyle
|
||||
%{_bindir}/pycodestyle-%{python_bin_suffix}
|
||||
%{python_sitelib}/*
|
||||
|
Reference in New Issue
Block a user