12 Commits

Author SHA256 Message Date
5bf1bf51f2 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
b191ac4731 ... 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
bd09d90119 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
ba3f16291b - 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
7edf2129b3 Accepting request 1273976 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1273976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=47
2025-05-02 13:01:05 +00:00
f72bebbf48 Accepting request 1273972 from home:glaubitz:branches:devel:languages:python
- Raise suse_version to disable pymama tests to <= 1600

OBS-URL: https://build.opensuse.org/request/show/1273972
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=123
2025-05-02 09:34:05 +00:00
1732dc8731 Accepting request 1267733 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1267733
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=46
2025-04-07 16:56:01 +00:00
f6cfc1a80a Accepting request 1267719 from home:nkrapp:branches:devel:languages:python
- Update to 6.0.1
- Update to 6.0.0
- drop support-pytest-8.patch, merged upstream
- change source url back to pypi, tests are now included
- update build-requirements
- add fix-typo.patch to fix tests

OBS-URL: https://build.opensuse.org/request/show/1267719
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=121
2025-04-07 16:12:39 +00:00
554fa5e27a Accepting request 1218037 from devel:languages:python
- Remove not needed build dependencies

OBS-URL: https://build.opensuse.org/request/show/1218037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=45
2024-10-24 13:45:02 +00:00
e12a42ab8b - Remove not needed build dependencies
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=119
2024-10-24 11:57:01 +00:00
6bf79d370d Accepting request 1197676 from devel:languages:python
- Add patch support-pytest-8.patch:
  * Do not use the anti-pattern of pytest.warns(None).

OBS-URL: https://build.opensuse.org/request/show/1197676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-isort?expand=0&rev=44
2024-08-30 11:32:42 +00:00
a6bb8329ae - Add patch support-pytest-8.patch:
* Do not use the anti-pattern of pytest.warns(None).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isort?expand=0&rev=117
2024-08-30 02:58:04 +00:00
5 changed files with 107 additions and 27 deletions

13
fix-typo.patch Normal file
View File

@@ -0,0 +1,13 @@
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

BIN
isort-5.13.2-gh.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
isort-6.0.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,72 @@
-------------------------------------------------------------------
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>
- Raise suse_version to disable pymama tests to <= 1600
-------------------------------------------------------------------
Mon Apr 7 13:03:24 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 6.0.1
* fix multi_line_output_modes docs (#2096) @xinydev
* Ruff rules PT for pytest (#2372) @cclauss
* Ruff rules B017, B028, and E203 (#2371) @cclauss
* Lint Python code with ruff (#2359) @cclauss
* Fix test_find_imports_in_file_error failing on Windows (#2369) @kobarity
* Move flake8 settings into pyproject.toml (#2360) @cclauss
* Upgrade to uv>=0.6.0 and enable-cache (#2364) @cclauss
* Apply some ruff rules (#2353) @cclauss
* Add OSError handling in find_imports_in_file (#2331) @kobarity
* Link GH as changelog (#2354) @staticdev
- Update to 6.0.0
* Remove support for Python 3.8 (#2327) @DanielNoord
* Python 3.13 support (#2306) @mayty
* Updates round 3 (#2334) @matthewhughes934
* Speed up exists_case_sensitive calls (#2264) @correctmost
* nit: Fix deprecation message link (#2220) @syou6162
* Ensure that split_on_trailing_comma works with as imports (#2340) @DanielNoord
* Black profile: enable magic comma (#2236) @MrMino
* Fix google style test (#2336) @DanielNoord
* Update line_length and single_line_exclusions in google profile (#2149) @jagapiou
* Updates round 2 (#2329) @matthewhughes934
* Dependency updates round 1 (#2325) @matthewhughes934
* Run pre-commit autoupdate (#2321) @kurtmckee
* Allow --diff to be used with --jobs (#2302) @mnakama
* wemake has 80 chars hard limit, not 79 (#2241) @sobolevn
* Fix errors on main (#2320) @DanielNoord
* Fixed syntax error (#2289) @Sergio-prog
* fix: typo (#2298) @Rotzbua
* Fix sort_reexports code mangling (#2283) @Helveg
* fix: correct group by package tokenization (#2136) @glasnt
* Fix isort-action usage documentation (#2297) @jamescurtin
* Fix CDN for Ace (#2127) @abitrolly
* Fix help text (#2229) @stweil
* docs: fix spelling mistake (#2249) @cachho
* Bump poetry to 2.0.1 (#2341) @DanielNoord
* Fix misc unsafe dependencies (#2345) @staticdev
* Bump the github-actions group across 1 directory with 5 updates (#2324) @dependabot[bot]
* Bump gitpython from 3.1.40 to 3.1.41 (#2223) @dependabot[bot]
* Bump jinja2 from 3.1.2 to 3.1.3 (#2224) @dependabot[bot]
- drop support-pytest-8.patch, merged upstream
- change source url back to pypi, tests are now included
- update build-requirements
- add fix-typo.patch to fix tests
-------------------------------------------------------------------
Thu Oct 24 11:20:33 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Remove not needed build dependencies
-------------------------------------------------------------------
Fri Aug 30 02:57:29 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-pytest-8.patch:
* Do not use the anti-pattern of pytest.warns(None).
-------------------------------------------------------------------
Tue Feb 27 08:59:27 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-isort
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,29 +24,30 @@
%define psuffix %{nil}
%bcond_with test
%endif
%if 0%{?suse_version} < 1550
%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: 5.13.2
Version: 6.0.1
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.8}
Source: https://files.pythonhosted.org/packages/source/i/isort/isort-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-typo.patch gh#PyCQA/isort/2392
Patch0: fix-typo.patch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires: alts
Recommends: python-colorama >= 0.4.3
Recommends: python-pip-api
Recommends: python-pip-shims >= 0.5.2
@@ -58,19 +59,18 @@ BuildArch: noarch
BuildRequires: %{python_module black}
BuildRequires: %{python_module colorama >= 0.4.3}
BuildRequires: %{python_module hypothesmith}
BuildRequires: %{python_module isort == %{version}}
BuildRequires: %{python_module libcst}
BuildRequires: %{python_module natsort}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip-api}
BuildRequires: %{python_module pipreqs}
BuildRequires: %{python_module poetry}
%if %{with pylama}
BuildRequires: %{python_module pylama}
%endif
BuildRequires: %{python_module pytest > 6.0}
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
@@ -80,11 +80,11 @@ isort your python imports for you so you don't have to.
isort is a Python utility / library to sort imports alphabetically, and
automatically separated into sections and by type. It provides a command line
utility, Python library and plugins for various editors to quickly sort all your
imports. It requires Python 3.8+ to run but supports formatting Python 2 code
imports. It requires Python 3.9+ to run but supports formatting Python 2 code
too.
%prep
%setup -q -n isort-%{version}
%autosetup -p1 -n isort-%{version}
chmod -x LICENSE
%if %{without pylama}
@@ -110,6 +110,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
@@ -169,11 +170,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