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

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
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,12 +24,13 @@
%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
@@ -39,15 +40,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
Patch0: fix-typo.patch
Patch: 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: alts
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
@@ -64,13 +65,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
@@ -110,7 +111,6 @@ 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,8 +170,11 @@ pytest-%{$python_bin_suffix} -v \
%endif
%if !%{with test}
%pre
%python_libalternatives_reset_alternative isort
%post
%python_install_alternative isort isort-identify-imports
%postun
%python_uninstall_alternative isort
%files %{python_files}
%doc README.md