6 Commits

Author SHA256 Message Date
a6d2790d0f Accepting request 1323247 from devel:languages:python
- Update to 7.0.0:
  * Breaking Changes
    + Drop support for Python 3.9 (#2430) @DanielNoord
  * Features
    + Show absolute paths in skipped file messages (#2416) @pranlawate
  * Fixes
    + Drop use of non-standard pkg_resources API (#2405) @dvarrazzo
    + Use working isort version in pre-commit example (#2402) @iainelder
    + fix typo in _get_files_from_dir_cached test (#2392) @tiltingpenguin
    + Resolve bandit warnings (#2379) @kurtmckee
    + Some fixes for Python 3.14 (#2433) @DanielNoord
    + Test on 3.14 and fix any bugs (#2425) @DanielNoord
    + Update CHANGELOG.md + Fix Formatting and Grammar (#2419) @lukbrew25
    + Fix output of hanging indent for long lines with noqa (#2407)
- Drop patch fix-typo.patch, merged upstream.

OBS-URL: https://build.opensuse.org/request/show/1323247
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=49
2025-12-17 16:38:03 +00:00
3dced7c567 - Update to 7.0.0:
* Breaking Changes
    + Drop support for Python 3.9 (#2430) @DanielNoord
  * Features
    + Show absolute paths in skipped file messages (#2416) @pranlawate
  * Fixes
    + Drop use of non-standard pkg_resources API (#2405) @dvarrazzo
    + Use working isort version in pre-commit example (#2402) @iainelder
    + fix typo in _get_files_from_dir_cached test (#2392) @tiltingpenguin
    + Resolve bandit warnings (#2379) @kurtmckee
    + Some fixes for Python 3.14 (#2433) @DanielNoord
    + Test on 3.14 and fix any bugs (#2425) @DanielNoord
    + Update CHANGELOG.md + Fix Formatting and Grammar (#2419) @lukbrew25
    + Fix output of hanging indent for long lines with noqa (#2407)
- Drop patch fix-typo.patch, merged upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=129
2025-12-17 03:58:55 +00:00
b0155a41c8 Accepting request 1291702 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=48
2025-07-10 20:13:57 +00:00
a0705cdd0b ... and group alts
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=127
2025-07-10 13:28:12 +00:00
a5ba4d8461 fix after spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=126
2025-07-10 13:26:30 +00:00
53548581e1 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=125
2025-07-10 13:24:47 +00:00
5 changed files with 44 additions and 41 deletions

View File

@@ -1,13 +0,0 @@
Index: isort-6.0.1/isort/deprecated/finders.py
===================================================================
--- isort-6.0.1.orig/isort/deprecated/finders.py
+++ isort-6.0.1/isort/deprecated/finders.py
@@ -309,7 +309,7 @@ class RequirementsFinder(ReqsBaseFinder)
for subfile_name in os.listdir(full_path):
results.extend(
os.path.join(full_path, subfile_name)
- for ext in cls.ext # type: ignore[attr-defined]
+ for ext in cls.exts # type: ignore[attr-defined]
if subfile_name.endswith(ext)
)
continue

Binary file not shown.

3
isort-7.0.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Wed Dec 17 03:58:06 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 7.0.0:
* Breaking Changes
+ Drop support for Python 3.9 (#2430) @DanielNoord
* Features
+ Show absolute paths in skipped file messages (#2416) @pranlawate
* Fixes
+ Drop use of non-standard pkg_resources API (#2405) @dvarrazzo
+ Use working isort version in pre-commit example (#2402) @iainelder
+ fix typo in _get_files_from_dir_cached test (#2392) @tiltingpenguin
+ Resolve bandit warnings (#2379) @kurtmckee
+ Some fixes for Python 3.14 (#2433) @DanielNoord
+ Test on 3.14 and fix any bugs (#2425) @DanielNoord
+ Update CHANGELOG.md + Fix Formatting and Grammar (#2419) @lukbrew25
+ Fix output of hanging indent for long lines with noqa (#2407)
- Drop patch fix-typo.patch, merged upstream.
-------------------------------------------------------------------
Thu Jul 10 13:23:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Fri May 2 08:59:30 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-isort
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,54 +24,48 @@
%define psuffix %{nil}
%bcond_with test
%endif
%if 0%{?suse_version} <= 1600
%bcond_with pylama
%else
%bcond_without pylama
%endif
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-isort%{psuffix}
Version: 6.0.1
Version: 7.0.0
Release: 0
Summary: A Python utility / library to sort Python imports
License: MIT
URL: https://pycqa.github.io/isort/
Source: https://files.pythonhosted.org/packages/source/i/isort/isort-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-typo.patch gh#PyCQA/isort/2392
Patch: fix-typo.patch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-colorama >= 0.4.3
Recommends: python-pip-api
Recommends: python-pip-shims >= 0.5.2
Recommends: python-pipreqs
Recommends: python-setuptools
Requires: alts
Recommends: python-colorama >= 0.4.6
Suggests: git-core
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module black}
BuildRequires: %{python_module colorama >= 0.4.3}
BuildRequires: %{python_module hypothesmith}
BuildRequires: %{python_module colorama >= 0.4.6}
BuildRequires: %{python_module hypothesmith >= 0.3.3}
BuildRequires: %{python_module isort == %{version}}
BuildRequires: %{python_module libcst}
BuildRequires: %{python_module natsort}
BuildRequires: %{python_module pip-api}
BuildRequires: %{python_module pipreqs}
%if %{with pylama}
BuildRequires: %{python_module pylama}
%endif
BuildRequires: %{python_module pytest > 6.0}
BuildRequires: %{python_module pytest >= 8.4}
BuildRequires: %{python_module pytest-benchmark >= 5.1}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module toml >= 0.10.2}
BuildRequires: git-core
%if %{with pylama}
BuildRequires: %{python_module pylama}
%endif
%endif
%python_subpackages
@@ -111,6 +105,7 @@ hypothesis.settings.register_profile(
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/isort
%python_clone -a %{buildroot}%{_bindir}/isort-identify-imports
%python_group_libalternatives isort isort-identify-imports
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@@ -170,11 +165,8 @@ pytest-%{$python_bin_suffix} -v \
%endif
%if !%{with test}
%post
%python_install_alternative isort isort-identify-imports
%postun
%python_uninstall_alternative isort
%pre
%python_libalternatives_reset_alternative isort
%files %{python_files}
%doc README.md