15
0
Files
python-flake8-isort/python-flake8-isort.spec
Tomáš Chvátal 9b0ec3826d Accepting request 825718 from home:bnavigator:branches:devel:languages:python
- Update to version 4.0.0
  * support isort >= 5 [bnavigator, pkolbus]

- Update to version 3.0.1
  * Work around FailedToLoadPlugin exception by requiring isort 4.x. 
    Likewise, pin the major version of all dependencies, to reduce 
    risk of any future incompatibilities. [pkolbus] 
- Update to version 3.0.0
  * Let isort search the configuration, rather than flake8-isort
    try to find it. [jnns]

OBS-URL: https://build.opensuse.org/request/show/825718
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-isort?expand=0&rev=3
2020-08-11 09:14:41 +00:00

66 lines
2.1 KiB
RPMSpec

#
# spec file for package python-flake8-isort
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-flake8-isort
Version: 4.0.0
Release: 0
Summary: Plugin integrating isort in flake8
License: GPL-2.0-only
Group: Development/Languages/Python
URL: https://github.com/gforcada/flake8-isort
Source: https://files.pythonhosted.org/packages/source/f/flake8-isort/flake8-isort-%{version}.tar.gz
BuildRequires: %{python_module flake8 >= 3.2.1}
BuildRequires: %{python_module isort >= 4.3.5}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testfixtures}
BuildRequires: %{python_module toml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-flake8 >= 3.2.1
Requires: python-isort >= 4.3.5
Requires: python-testfixtures
BuildArch: noarch
%python_subpackages
%description
Use `isort`_ to check if the imports on your python files are sorted the way you expect.
%prep
%setup -q -n flake8-isort-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst CHANGES.rst
%license LICENSE*
%{python_sitelib}/flake8_isort.py*
%pycache_only %{python_sitelib}/__pycache__/flake8_isort*
%{python_sitelib}/flake8_isort-%{version}-py*.egg-info
%changelog