14
0

- update for singlespec

- rename from pep8 to pycodestyle
- delete shebang from pycodestyle.py
- update to version 2.3.1
  * renamed from pep8 to pycodestyle
  * removed use of project-level .pep8 config file
  * updated code style, added new warnings

- Fix update-alternatives implementation.

- Implement update-alternatives

- Update to 1.7.0
  + Announcements:
    * Repository moved to PyCQA Organization on GitHub:
      https://github.com/pycqa/pep8
  + Changes:
    * Reverted the fix in #368, "options passed on command line are only ones
      accepted" feature. This has many unintended consequences in pep8 and flake8
      and needs to be reworked when I have more time.
    * Added support for Python 3.5. (Issue #420 & #459)
    * Added support for multi-line config_file option parsing. (Issue #429)
    * Improved parameter parsing. (Issues #420 & #456)
  + Bugs:
    * Fixed BytesWarning on Python 3. (Issue #459)

- Update to 1.6.2:
  * Added check for breaking around a binary operator. (Issue #197, Pull #305)
  * Assign variables before referenced. (Issue #287)
  * Report E731 for lambda assignment. (Issue #277)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycodestyle?expand=0&rev=1
This commit is contained in:
Jan Matejek
2017-03-24 14:59:09 +00:00
committed by Git OBS Bridge
commit 1031b3f495
5 changed files with 436 additions and 0 deletions

82
python-pycodestyle.spec Normal file
View File

@@ -0,0 +1,82 @@
#
# spec file for package python-pycodestyle
#
# Copyright (c) 2017 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-%{**}}
%define oldpython python
%bcond_without test
Name: python-pycodestyle
Version: 2.3.1
Release: 0
Summary: Python style guide checker
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Provides: python-pep8 = %{version}
Obsoletes: python-pep8 < %{version}
%ifpython2
Provides: %{oldpython}-pep8 = %{version}
Obsoletes: %{oldpython}-pep8 < %{version}
%endif
%python_subpackages
%description
pycodestyle is a tool to check your Python code against some of the style
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
%build
%python_build
%install
%python_install
%python_clone %{buildroot}%{_bindir}/pycodestyle
ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle
%files %{python_files}
%defattr(-,root,root,-)
%python3_only %{_bindir}/pycodestyle
%{_bindir}/pycodestyle-%{python_bin_suffix}
%{python_sitelib}/*
%changelog