14
0
forked from pool/python-isort

- update to 4.3.1

* Fixed issue #654: Trailing comma count error
 * Fixed issue #651: Add imports option is broken
 * Fixed issue #650: Wrong error message displayed
- update to 4.3.0
 * Fixed #557: force_alphabetical_sort and force_sort_within_sections can now be utilized together without extra new lines
 * Added --no-lines-before for more granular control over section output
 * Fixed #493: Unwanted conversion to Windows line endings
 * Implemented --version-number to retrieve just the version number without the isort logo
- Remove patch-shebang.patch and replace it with a sed-call

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=6
This commit is contained in:
2018-02-02 20:53:14 +00:00
committed by Git OBS Bridge
parent 6258cc11bf
commit 29f9d05da0
6 changed files with 29 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-isort
#
# 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
@@ -16,22 +16,25 @@
#
%{!?license: %global license %doc}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-isort
Version: 4.2.15
Version: 4.3.1
Release: 0
Summary: A Python utility / library to sort Python imports
License: MIT
Group: Development/Languages/Python
Url: https://github.com/timothycrosley/isort
# Tests are not included in pypi package
# Tests included in pypi package fail
Source: https://github.com/timothycrosley/isort/archive/%{version}.tar.gz
Patch0: patch-shebang.patch
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python2-futures
%ifpython2
Requires: python-futures
%endif
BuildArch: noarch
%python_subpackages
@@ -46,7 +49,7 @@ any dependencies.
%prep
%setup -q -n isort-%{version}
%patch0
sed -i '1s/^#!.*//' isort/main.py
chmod -x LICENSE
%build
@@ -62,11 +65,6 @@ chmod -x LICENSE
%defattr(-,root,root,-)
%{python_sitelib}/*
%python3_only %{_bindir}/isort
%doc README.rst
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license LICENSE
%else
%doc LICENSE
%endif
%changelog