Skip to content

Commit

Permalink
Update python-isort to version 5.6.4 / rev 20 via SR 841728
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/841728
by user bnavigator + dimstar_suse
- Update to Version 5.6.4
  * Fixed #1556: Empty line added between imports that should be
    skipped.
- Version 5.6.3
  * Improved packaging of test files alongside source distribution
    (see: PyCQA/isort#1555).
- Version 5.6.2
  * Fixed #1548: On rare occasions an unecessary empty line can be
    added when an import is marked as skipped.
  * Fixed #1542: Bug in VERTICAL_PREFIX_FROM_MODULE_IMPORT wrap
    mode.
  * Fixed #1552: Pylama test dependent on source layout.
  * Goal Zero: (Tickets related to aspirational goal of achieving 0
    regressions for remaining 5.0.0 lifespan):
  * Zope added to integration test suite
  * Additional testing of CLI (simulate unseekable streams)
- now only requires poetry.core as PEP517 backend

- Fix building and install
  • Loading branch information
bnavigator authored and bmwiedemann committed Oct 29, 2020
1 parent d309f3c commit d706b45
Show file tree
Hide file tree
Showing 8 changed files with 207 additions and 42 deletions.
Binary file modified packages/p/python-isort/.files
Binary file not shown.
84 changes: 84 additions & 0 deletions packages/p/python-isort/.rev
Expand Up @@ -245,4 +245,88 @@ Let's see which package is missing in ringX for test flavor</comment>
- URL moved to https://pycqa.github.io/isort/</comment>
<requestid>833014</requestid>
</revision>
<revision rev="20" vrev="1">
<srcmd5>15231dbb74dfe2a28d386fbb223912f1</srcmd5>
<version>5.6.4</version>
<time>1603961283</time>
<user>dimstar_suse</user>
<comment>- Update to Version 5.6.4
* Fixed #1556: Empty line added between imports that should be
skipped.
- Version 5.6.3
* Improved packaging of test files alongside source distribution
(see: https://github.com/PyCQA/isort/pull/1555).
- Version 5.6.2
* Fixed #1548: On rare occasions an unecessary empty line can be
added when an import is marked as skipped.
* Fixed #1542: Bug in VERTICAL_PREFIX_FROM_MODULE_IMPORT wrap
mode.
* Fixed #1552: Pylama test dependent on source layout.
* Goal Zero: (Tickets related to aspirational goal of achieving 0
regressions for remaining 5.0.0 lifespan):
* Zope added to integration test suite
* Additional testing of CLI (simulate unseekable streams)
- now only requires poetry.core as PEP517 backend

- Fix building and installation of exampleprojects for testing
- Update to 5.6.1
* Fixed #1546: Unstable (non-idempotent) behavior with certain
src trees.
- Changelog for 5.6.0
* Implemented #1433: Provide helpful feedback in case a custom
config file is specified without a configuration.
* Implemented #1494: Default to sorting imports within .pxd
files.
* Implemented #1502: Improved float-to-top behavior when there
is an existing import section present at top-of-file.
* Implemented #1511: Support for easily seeing all files isort
will be ran against using isort . --show-files.
* Implemented #1487: Improved handling of encoding errors.
* Improved handling of unsupported configuration option errors
(see #1475).
* Fixed #1463: Better interactive documentation for future
option.
* Fixed #1461: Quiet config option not respected by file API in
some circumstances.
* Fixed #1482: pylama integration is not working correctly out-
of-the-box.
* Fixed #1492: --check does not work with stdin source.
* Fixed #1499: isort gets confused by single line, multi-line
style comments when using float-to-top.
* Fixed #1525: Some warnings can't be disabled with --quiet.
* Fixed #1523: in rare cases isort can ignore direct from import
if as import is also on same line.
+ Potentially breaking changes:
* Implemented #1540: Officially support Python 3.9 stdlib
imports by default.
* Fixed #1443: Incorrect third vs first party categorization -
namespace packages.
* Fixed #1486: &quot;Google&quot; profile is not quite Google style.
* Fixed &quot;PyCharm&quot; profile to always add 2 lines to be consistent
with what PyCharm &quot;Optimize Imports&quot; does.
+ Goal Zero:
* Implemented #1472: Full testing of stdin CLI Options
* Added additional branch coverage.
* More projects added to integration test suite.
- Changelog for 5.5.5
* Fixed #1539: in extremely rare cases isort 5.5.4 introduces
syntax error by removing closing paren.
- Changelog for 5.5.4
* Fixed #1507: in rare cases isort changes the content of
multiline strings after a yield statement.
* Fixed #1505: Support case where known_SECTION points to a
section not listed in sections.
- Use upstream's way of PIP with Poetry PEP517 backend to install
the package so we can use Github archive only
- A Poetry update required to modify the examples installation for
testing
- Test flavor does not depend on installed base package anymore
- Update to 5.5.3
* Fixed #1488: in rare cases isort can mangle yield from or raise
from statements.
- Version 5.5.2
* Fixed #1469: --diff option is ignored when input is from stdin.
</comment>
<requestid>841728</requestid>
</revision>
</revisionlist>
2 changes: 1 addition & 1 deletion packages/p/python-isort/_multibuild
@@ -1,3 +1,3 @@
<multibuild>
<package>test</package>
<flavor>test</flavor>
</multibuild>
1 change: 0 additions & 1 deletion packages/p/python-isort/isort-5.5.1-gh.tar.gz

This file was deleted.

1 change: 0 additions & 1 deletion packages/p/python-isort/isort-5.5.1.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/p/python-isort/isort-5.6.4-gh.tar.gz
91 changes: 91 additions & 0 deletions packages/p/python-isort/python-isort.changes
@@ -1,3 +1,94 @@
-------------------------------------------------------------------
Tue Oct 13 18:28:28 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

- Update to Version 5.6.4
* Fixed #1556: Empty line added between imports that should be
skipped.
- Version 5.6.3
* Improved packaging of test files alongside source distribution
(see: https://github.com/PyCQA/isort/pull/1555).
- Version 5.6.2
* Fixed #1548: On rare occasions an unecessary empty line can be
added when an import is marked as skipped.
* Fixed #1542: Bug in VERTICAL_PREFIX_FROM_MODULE_IMPORT wrap
mode.
* Fixed #1552: Pylama test dependent on source layout.
* Goal Zero: (Tickets related to aspirational goal of achieving 0
regressions for remaining 5.0.0 lifespan):
* Zope added to integration test suite
* Additional testing of CLI (simulate unseekable streams)
- now only requires poetry.core as PEP517 backend

-------------------------------------------------------------------
Fri Oct 9 16:47:11 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

- Fix building and installation of exampleprojects for testing

-------------------------------------------------------------------
Thu Oct 8 15:56:53 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

- Update to 5.6.1
* Fixed #1546: Unstable (non-idempotent) behavior with certain
src trees.
- Changelog for 5.6.0
* Implemented #1433: Provide helpful feedback in case a custom
config file is specified without a configuration.
* Implemented #1494: Default to sorting imports within .pxd
files.
* Implemented #1502: Improved float-to-top behavior when there
is an existing import section present at top-of-file.
* Implemented #1511: Support for easily seeing all files isort
will be ran against using isort . --show-files.
* Implemented #1487: Improved handling of encoding errors.
* Improved handling of unsupported configuration option errors
(see #1475).
* Fixed #1463: Better interactive documentation for future
option.
* Fixed #1461: Quiet config option not respected by file API in
some circumstances.
* Fixed #1482: pylama integration is not working correctly out-
of-the-box.
* Fixed #1492: --check does not work with stdin source.
* Fixed #1499: isort gets confused by single line, multi-line
style comments when using float-to-top.
* Fixed #1525: Some warnings can't be disabled with --quiet.
* Fixed #1523: in rare cases isort can ignore direct from import
if as import is also on same line.
+ Potentially breaking changes:
* Implemented #1540: Officially support Python 3.9 stdlib
imports by default.
* Fixed #1443: Incorrect third vs first party categorization -
namespace packages.
* Fixed #1486: "Google" profile is not quite Google style.
* Fixed "PyCharm" profile to always add 2 lines to be consistent
with what PyCharm "Optimize Imports" does.
+ Goal Zero:
* Implemented #1472: Full testing of stdin CLI Options
* Added additional branch coverage.
* More projects added to integration test suite.
- Changelog for 5.5.5
* Fixed #1539: in extremely rare cases isort 5.5.4 introduces
syntax error by removing closing paren.
- Changelog for 5.5.4
* Fixed #1507: in rare cases isort changes the content of
multiline strings after a yield statement.
* Fixed #1505: Support case where known_SECTION points to a
section not listed in sections.
- Use upstream's way of PIP with Poetry PEP517 backend to install
the package so we can use Github archive only
- A Poetry update required to modify the examples installation for
testing
- Test flavor does not depend on installed base package anymore

-------------------------------------------------------------------
Mon Sep 21 11:48:02 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

- Update to 5.5.3
* Fixed #1488: in rare cases isort can mangle yield from or raise
from statements.
- Version 5.5.2
* Fixed #1469: --diff option is ignored when input is from stdin.

-------------------------------------------------------------------
Tue Sep 8 14:08:11 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

Expand Down
69 changes: 30 additions & 39 deletions packages/p/python-isort/python-isort.spec
Expand Up @@ -27,35 +27,31 @@
%endif
%define skip_python2 1
Name: python-isort%{psuffix}
Version: 5.5.1
Version: 5.6.4
Release: 0
Summary: A Python utility / library to sort Python imports
License: MIT
URL: https://pycqa.github.io/isort/
# only PyPI archive contains setup.py
Source: https://files.pythonhosted.org/packages/source/i/isort/isort-%{version}.tar.gz
# ... but test data are not packaged for PyPI, get them from git sources
Source1: https://github.com/PyCQA/isort/archive/%{version}.tar.gz#/isort-%{version}-gh.tar.gz
BuildRequires: %{python_module setuptools}
# 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 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-hypothesmith
Recommends: python-pip-api
Recommends: python-pipreqs
Recommends: python-requirementslib >= 1.5.4
Recommends: python-tomlkit
Recommends: python-requirementslib
Suggests: git
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module black}
BuildRequires: %{python_module hypothesis-auto}
BuildRequires: %{python_module hypothesmith}
# we cannot just use the source dir on test flavor because tests expect the
# installed entrypoint (through alternatives)
BuildRequires: %{python_module isort = %{version}}
BuildRequires: %{python_module libcst}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pip-api}
Expand All @@ -64,8 +60,7 @@ BuildRequires: %{python_module poetry}
BuildRequires: %{python_module pylama}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requirementslib >= 1.5.4}
BuildRequires: %{python_module tomlkit}
BuildRequires: %{python_module requirementslib >= 1.5}
BuildRequires: git
%endif
%python_subpackages
Expand All @@ -82,47 +77,43 @@ too.
%prep
%setup -q -n isort-%{version}
chmod -x LICENSE
%if %{with test}
tar -x --strip-components=1 -f %{SOURCE1} \
isort-%{version}/example_isort_formatting_plugin \
isort-%{version}/example_shared_isort_profile \
isort-%{version}/.isort.cfg \
isort-%{version}/setup.cfg
%endif

%if !%{with test}
%build
%python_build
%endif
%pyproject_wheel

%if !%{with test}
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/isort
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif

%if %{with test}
%check
%{python_expand # create egg-info for example projects
for exampledir in example_shared_isort_profile example_isort_formatting_plugin; do
pushd $exampledir
# don't enforce exact same environment as upstream's devel project
rm poetry.lock
# no dependency download, we have them all by BuildRequires
sed -i '/tool.poetry.dependencies/,/^$/ d' pyproject.toml
poetry-%{$python_bin_suffix} install
# append current dir, only use colon if not empty
export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}$(pwd)"
popd
ORIGPATH=$PATH
%{python_expand # install isort and required example projects into custom root
mkdir isort-test-%{$python_bin_suffix}
for proj in isort*.whl ./example_shared_isort_profile ./example_isort_formatting_plugin; do
$python -m pip install --verbose \
--no-index \
--root $(pwd)/isort-test-%{$python_bin_suffix} \
--no-deps \
--use-pep517 \
--no-build-isolation \
--progress-bar off \
--disable-pip-version-check \
${proj}
done
}

export PATH="$(pwd)/isort-test-%{$python_bin_suffix}/usr/bin:$ORIGPATH"
export PYTHONPATH="$(pwd)/isort-test-%{$python_bin_suffix}%{$python_sitelib}"
export PYTHONDONTWRITEBYTECODE=1
# test_projects_using_isort.py: these tests try to clone from
# online git repositories.
# test_settung_combinations.py::test_isort_is_idempotent
# is flaky https://github.com/PyCQA/isort/issues/1466
%{pytest -W "ignore::UserWarning" \
pytest-%{$python_bin_suffix} -v \
-W "ignore::UserWarning" \
-W "ignore::DeprecationWarning" \
--ignore tests/integration/test_projects_using_isort.py \
-k "not (test_setting_combinations and test_isort_is_idempotent)"
Expand All @@ -141,7 +132,7 @@ done
%license LICENSE
%python_alternative %{_bindir}/isort
%{python_sitelib}/isort
%{python_sitelib}/isort-%{version}-py*.egg-info
%{python_sitelib}/isort-%{version}.dist-info
%endif

%changelog

0 comments on commit d706b45

Please sign in to comment.