14
0
forked from pool/python-isort

Accepting request 1059600 from home:bnavigator:branches:devel:languages:python

- Update to 5.11.4
  * No user relevant changes
- Release 5.11.3
  * Renable portray (#2043) @timothycrosley
  * Fix packaging pypoetry (#2042) @staticdev
  * Fix settings for py3.11 (#2040) @staticdev
- Release 5.11.2
  * Hotfix for --version. (#2035) @felixxm
- Release 5.11.1
  * Only call colorama.init if colorama is available (#2032)
    @tomaarsen
- Release 5.11.0
  * Add support to Python 3.11 support (#2024) @staticdev
  * Remove support to Python 3.6 (#2020) @barrelful
  * Fix Rich compatibility (#1961) @ofek
  * Add magic trailing comma option (#1876) @legau
  * Add missing space in unrecoverable exception message (#1933)
    @andersk
  * skip-gitignore: use allow list, not deny list (#1900)
    @bmalehorn
  * Infinite loop for unmatched parenthesis (#1919) @anirudnits
  * Split long cython import lines (#1931) @davidcollins001
  * Update plone profile: copy of black, plus three settings.
    (#1926) @mauritsvanrees
  * Add a command-line flag to sort all re-exports (#1862) (#1863)
    @parafoxia
  * Fix lines_before_imports appending lines after comments (#1861)
    @legau
  * Remove redundant multi_line_output = 3 from "Compatibility with
    black" (#1858) @jdufresne

OBS-URL: https://build.opensuse.org/request/show/1059600
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=103
This commit is contained in:
2023-01-19 13:41:32 +00:00
committed by Git OBS Bridge
parent 574e39555b
commit 9dbaabf48c
4 changed files with 44 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,27 +25,26 @@
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-isort%{psuffix}
Version: 5.10.1
Version: 5.11.4
Release: 0
Summary: A Python utility / library to sort Python imports
License: MIT
URL: https://pycqa.github.io/isort/
# tests and example projects are not packaged for PyPI, get them from Github
Source: https://github.com/PyCQA/isort/archive/%{version}.tar.gz#/isort-%{version}-gh.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-colorama >= 0.4.3
Recommends: python-pip-api
Recommends: python-pipreqs
Suggests: git
Recommends: python-setuptools
Suggests: git-core
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module black}
@@ -61,7 +60,7 @@ BuildRequires: %{python_module pylama}
BuildRequires: %{python_module pytest > 6.0}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module toml >= 0.10.2}
BuildRequires: git
BuildRequires: git-core
%endif
%python_subpackages
@@ -88,12 +87,8 @@ hypothesis.settings.register_profile(
)
" >> tests/conftest.py
# unpin natsort in example plugin -- https://github.com/PyCQA/isort/issues/1873
sed -i 's/natsort = "^/natsort = ">=/' example_isort_sorting_plugin/pyproject.toml
# unpin black in example plugin
sed -i 's/black = "^/black = ">=/' example_isort_formatting_plugin/pyproject.toml
%build
# Note: we also need the wheel for testing
%pyproject_wheel
%if !%{with test}