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
2 changed files with 15 additions and 13 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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

@@ -24,13 +24,12 @@
%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
@@ -40,15 +39,15 @@ 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
Patch0: fix-typo.patch
BuildRequires: %{python_module base >= 3.9}
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
Requires: alts
Recommends: python-colorama >= 0.4.3
Recommends: python-pip-api
Recommends: python-pip-shims >= 0.5.2
@@ -65,13 +64,13 @@ 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-mock}
BuildRequires: %{python_module toml >= 0.10.2}
BuildRequires: git-core
%if %{with pylama}
BuildRequires: %{python_module pylama}
%endif
%endif
%python_subpackages
@@ -111,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
@@ -170,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