Ai
5 Star 0 Fork 16

src-openEuler/python-isort
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-isort.spec 3.23 KB
一键复制 编辑 原始数据 按行查看 历史
lwq 提交于 2025-11-20 14:17 +08:00 . Update to 7.0.0
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-isort.git
git@gitee.com:src-openeuler/python-isort.git
src-openeuler
python-isort
python-isort
master

搜索帮助