Accepting request 905345 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/905345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2021-07-13 20:36:54 +00:00 committed by Git OBS Bridge
commit 841e2c27bb
4 changed files with 60 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aae32aa863c57735bba9665f2a1fa79416a4c528c45d021f0da5e62de504b3f8
size 717068

3
isort-5.9.2-gh.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3568ee5f34532b8cd75b27e6970e11a0de833b4832ce7b1e01d99180a67ca6f8
size 728644

View File

@ -1,3 +1,49 @@
-------------------------------------------------------------------
Thu Jul 8 13:48:37 UTC 2021 - Ben Greiner <code@bnavigator.de>
- update to version 5.9.2
* Improved behavior of isort --check --atomic against Cython
files.
* Fixed #1769: Future imports added below assignments when no
other imports present.
* Fixed #1772: skip-gitignore will check files not in the git
repository.
* Fixed #1762: in some cases when skip-gitignore is set, isort
fails to skip any files.
* Fixed #1767: Encoding issues surfacing when invalid characters
set in __init__.py files during placement.
* Fixed #1771: Improved handling of skips against named streamed
in content.
- Skip benchmarks
- Update test requirements:
* test expects example_isort_sorting_plugin with python-natsort
installed
* Python 3.9 tests fail without numpy installed because of some
typing check.
-------------------------------------------------------------------
Sun Jul 4 19:12:04 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 5.9.1:
- Fixed #1758: projects with many files and skip_ignore set can lead to a command-line overload.
- update to version 5.9.0:
- Improved CLI startup time.
- Implemented #1697: Provisional support for PEP 582: skip `__pypackages__` directories by default.
- Implemented #1705: More intuitive handling of isort:skip_file comments on streams.
- Implemented #1737: Support for using action comments to avoid adding imports to individual files.
- Implemented #1750: Ability to customize output format lines.
- Implemented #1732: Support for custom sort functions.
- Implemented #1722: Improved behavior for running isort in atomic mode over Cython source files.
- Fixed (https://github.com/PyCQA/isort/pull/1695): added imports being added to doc string in some cases.
- Fixed (https://github.com/PyCQA/isort/pull/1714): in rare cases line continuation combined with tabs can output invalid code.
- Fixed (https://github.com/PyCQA/isort/pull/1726): isort ignores reverse_sort when force_sort_within_sections is true.
- Fixed #1741: comments in hanging indent modes can lead to invalid code.
- Fixed #1744: repeat noqa comments dropped when * import and non * imports exist from the same package.
- Fixed #1721: repeat noqa comments on separate from lines with force-single-line set, sometimes get dropped.
- Goal Zero (Tickets related to aspirational goal of achieving 0 regressions for remaining 5.0.0 lifespan):
- Implemented #1394: 100% branch coverage (in addition to line coverage) enforced.
- Implemented #1751: Strict typing enforcement (turned on mypy strict mode).
-------------------------------------------------------------------
Mon Mar 22 21:09:24 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@ -1,5 +1,5 @@
#
# spec file for package python-isort-test
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@ -27,7 +27,7 @@
%endif
%define skip_python2 1
Name: python-isort%{psuffix}
Version: 5.8.0
Version: 5.9.2
Release: 0
Summary: A Python utility / library to sort Python imports
License: MIT
@ -53,6 +53,7 @@ BuildRequires: %{python_module colorama >= 0.4.3}
BuildRequires: %{python_module hypothesis-auto}
BuildRequires: %{python_module hypothesmith}
BuildRequires: %{python_module libcst}
BuildRequires: %{python_module natsort}
BuildRequires: %{python_module pip-api}
BuildRequires: %{python_module pipreqs}
BuildRequires: %{python_module poetry}
@ -62,6 +63,7 @@ BuildRequires: %{python_module pytest-mock}
# requirementslib not ready for python 3.9 yet -- gh#sarugaku/requirementslib#288
BuildRequires: %{python_module requirementslib >= 1.5 if %python-base < 3.9}
BuildRequires: git
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
%endif
%python_subpackages
@ -93,6 +95,8 @@ chmod -x LICENSE
%check
# test_projects_using_isort.py: these tests try to clone from online git repositories.
ignoretests="--ignore tests/integration/test_projects_using_isort.py"
# don't run benchmarks
ignoretests+=" --ignore tests/benchmark"
# test_setting_combinations.py::test_isort_is_idempotent
# is flaky https://github.com/PyCQA/isort/issues/1466
donttest="(test_setting_combinations and test_isort_is_idempotent)"
@ -107,7 +111,11 @@ export PATH="$(pwd)/isort-test-%{$python_bin_suffix}/usr/bin:$ORIGPATH"
export PYTHONPATH="$(pwd)/isort-test-%{$python_bin_suffix}%{$python_sitelib}"
export PYTHONDONTWRITEBYTECODE=1
for proj in build/isort-%{version}-py3-none-any.whl ./example_shared_isort_profile ./example_isort_formatting_plugin; do
for proj in build/isort-%{version}-py3-none-any.whl \
./example_shared_isort_profile \
./example_isort_formatting_plugin \
./example_isort_sorting_plugin
do
$python -m pip install --verbose \
--no-index \
--root $(pwd)/isort-test-%{$python_bin_suffix} \