14
0
forked from pool/python-isort

8 Commits

Author SHA256 Message Date
5ab9285979 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
2d2761fe58 - Raise suse_version to disable pymama tests to <= 1600
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
8e320f4883 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
349ac22339 - 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/package/show/devel:languages:python/python-isort?expand=0&rev=121
2025-04-07 16:12:39 +00:00
4f4540169d 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
fc9d94cbe2 - 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
677959a307 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
54e5e8fa82 - 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 94 additions and 16 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,67 @@
-------------------------------------------------------------------
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> 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,7 @@
%bcond_with test %bcond_with test
%endif %endif
%if 0%{?suse_version} < 1550 %if 0%{?suse_version} <= 1600
%bcond_with pylama %bcond_with pylama
%else %else
%bcond_without pylama %bcond_without pylama
@@ -33,20 +33,22 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-isort%{psuffix} Name: python-isort%{psuffix}
Version: 5.13.2 Version: 6.0.1
Release: 0 Release: 0
Summary: A Python utility / library to sort Python imports Summary: A Python utility / library to sort Python imports
License: MIT License: MIT
URL: https://pycqa.github.io/isort/ URL: https://pycqa.github.io/isort/
# tests and example projects are not packaged for PyPI, get them from Github Source: https://files.pythonhosted.org/packages/source/i/isort/isort-%{version}.tar.gz
Source: https://github.com/PyCQA/isort/archive/%{version}.tar.gz#/isort-%{version}-gh.tar.gz # PATCH-FIX-UPSTREAM fix-typo.patch gh#PyCQA/isort/2392
BuildRequires: %{python_module base >= 3.8} Patch: 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 pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
Recommends: python-colorama >= 0.4.3 Recommends: python-colorama >= 0.4.3
Recommends: python-pip-api Recommends: python-pip-api
Recommends: python-pip-shims >= 0.5.2 Recommends: python-pip-shims >= 0.5.2
@@ -58,12 +60,11 @@ BuildArch: noarch
BuildRequires: %{python_module black} BuildRequires: %{python_module black}
BuildRequires: %{python_module colorama >= 0.4.3} BuildRequires: %{python_module colorama >= 0.4.3}
BuildRequires: %{python_module hypothesmith} BuildRequires: %{python_module hypothesmith}
BuildRequires: %{python_module isort == %{version}}
BuildRequires: %{python_module libcst} BuildRequires: %{python_module libcst}
BuildRequires: %{python_module natsort} BuildRequires: %{python_module natsort}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip-api} BuildRequires: %{python_module pip-api}
BuildRequires: %{python_module pipreqs} BuildRequires: %{python_module pipreqs}
BuildRequires: %{python_module poetry}
%if %{with pylama} %if %{with pylama}
BuildRequires: %{python_module pylama} BuildRequires: %{python_module pylama}
%endif %endif
@@ -80,11 +81,11 @@ isort your python imports for you so you don't have to.
isort is a Python utility / library to sort imports alphabetically, and isort is a Python utility / library to sort imports alphabetically, and
automatically separated into sections and by type. It provides a command line 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 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. too.
%prep %prep
%setup -q -n isort-%{version} %autosetup -p1 -n isort-%{version}
chmod -x LICENSE chmod -x LICENSE
%if %{without pylama} %if %{without pylama}