代码拉取完成,页面将自动刷新
%global _empty_manifest_terminate_build 0
Name: python-isort
Version: 7.0.0
Release: 1
Summary: A Python utility / library to sort Python imports.
License: MIT
URL: https://github.com/timothycrosley/isort
Source0: https://files.pythonhosted.org/packages/source/i/isort/isort-%{version}.tar.gz
BuildArch: noarch
%description
Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.
%package -n python3-isort
Summary: A Python utility / library to sort Python imports.
%{?python_provide:%python_provide python3-isort}
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pytest
BuildRequires: python3-mock
BuildRequires: python3-pylama
BuildRequires: python3-pep517
BuildRequires: python3-hatchling
%description -n python3-isort
Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.
Python 3 version.
%package help
Summary: A Python utility / library to sort Python imports.
Provides: python3-isort-doc
%description help
A Python utility / library to sort Python imports.
%prep
%autosetup -n isort-%{version}
%build
%pyproject_build
%install
%pyproject_install
mv %{buildroot}%{_bindir}/isort{,-%{python3_version}}
ln -s isort-%{python3_version} %{buildroot}%{_bindir}/isort-3
ln -s isort-3 %{buildroot}%{_bindir}/isort
%check
# Disable test because test is not available
# https://github.com/PyCQA/isort/issues/2129
#pytest tests
%files -n python3-isort
%doc *.md LICENSE
%{_bindir}/isort
%{_bindir}/isort-3
%{_bindir}/isort-%{python3_version}
%{_bindir}/isort-identify-imports
%{python3_sitelib}/isort/
%{python3_sitelib}/isort-*.dist-info/
%changelog
* Thu Nov 20 2025 lvwq <lvwenqiang@kylinos.cn> - 7.0.0-1
- Update to 7.0.0
* Thu Oct 09 2025 Yu Peng <yupeng@kylinos.cn> - 6.1.0-1
- Upgrade to 6.1.0
* Update docs discussions channel
* Add python 3.14 classifier and badge
* Drop use of non-standard pkg_resources API
* Use working isort version in pre-commit example
* fix typo in _get_files_from_dir_cached test
* Resolve bandit warnings
* Add tox for cross-platform, parallel test suite execution
* Add Project URLs to PyPI Side Panel
* Fix typos
* Wed Aug 20 2025 zhang_wenyu <zhang_wenyu@hoperun.com> - 6.0.1-1
- Upgrade version to 6.0.1
* fix multi_line_output_modes docs
* Ruff rules PT for pytest
* Ruff rules B017, B028, and E203
* Lint Python code with ruff
* Move flake8 settings into pyproject.toml
* Upgrade to uv>=0.6.0 and enable-cache
* Apply some ruff rules
* Fri May 10 2024 xu_ping <707078654@qq.com> - 5.13.2-1
- Upgrade version to 5.13.2
* Thu Apr 25 2024 wangkai <13474090681@163.com> - 5.12.0-2
- Disable test
* Tue Sep 19 2023 xu_ping <707078654@qq.com> - 5.12.0-1
- Package upgrade to 5.12.0
* Mon Aug 02 2021 OpenStack_SIG <openstack@openeuler.org> - 4.3.21-1
- Package upgrade to 4.3.21
* Wed Aug 05 2020 lingsheng <lingsheng@huawei.com> - 4.3.4-7
- Remove python2-isort subpackage
* Mon Feb 24 2020 Senlin Xia <xiasenlin1@huawei.com> - 4.3.4-6
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。