forked from pool/python-isort
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5ab9285979 | |||
| 2d2761fe58 | |||
| 8e320f4883 | |||
| 349ac22339 | |||
| 4f4540169d | |||
| fc9d94cbe2 | |||
| 677959a307 | |||
| 54e5e8fa82 |
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user