Upgrade version to 5.12.0

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2023-12-07 15:24:39 +08:00
parent b49ad84a8e
commit 061f48feeb
4 changed files with 13 additions and 5 deletions

Binary file not shown.

BIN
isort-5.12.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-isort Name: python-isort
Version: 4.3.21 Version: 5.12.0
Release: 1 Release: 1
Summary: A Python utility / library to sort Python imports. Summary: A Python utility / library to sort Python imports.
License: MIT License: MIT
URL: https://github.com/timothycrosley/isort URL: https://github.com/timothycrosley/isort
Source0: https://files.pythonhosted.org/packages/43/00/8705e8d0c05ba22f042634f791a61f4c678c32175763dcf2ca2a133f4739/isort-4.3.21.tar.gz Source0: https://files.pythonhosted.org/packages/source/i/isort/isort-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
%description %description
Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.
@ -23,6 +23,7 @@ BuildRequires: python3-wheel
BuildRequires: python3-pytest BuildRequires: python3-pytest
BuildRequires: python3-mock BuildRequires: python3-mock
BuildRequires: python3-pylama BuildRequires: python3-pylama
BuildRequires: python-pep517
%description -n python3-isort %description -n python3-isort
Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.
@ -36,7 +37,6 @@ A Python utility / library to sort Python imports.
%prep %prep
%autosetup -n isort-%{version} %autosetup -n isort-%{version}
sed -i -e '1{\@^#!.*@d}' isort/main.py
%build %build
%py3_build %py3_build
@ -48,17 +48,21 @@ ln -s isort-%{python3_version} %{buildroot}%{_bindir}/isort-3
ln -s isort-3 %{buildroot}%{_bindir}/isort ln -s isort-3 %{buildroot}%{_bindir}/isort
%check %check
%{__python3} setup.py test pytest tests
%files -n python3-isort %files -n python3-isort
%doc README.rst *.md LICENSE %doc *.md LICENSE
%{_bindir}/isort %{_bindir}/isort
%{_bindir}/isort-3 %{_bindir}/isort-3
%{_bindir}/isort-%{python3_version} %{_bindir}/isort-%{python3_version}
%{_bindir}/isort-identify-imports
%{python3_sitelib}/isort/ %{python3_sitelib}/isort/
%{python3_sitelib}/isort-*.egg-info/ %{python3_sitelib}/isort-*.egg-info/
%changelog %changelog
* 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 * Mon Aug 02 2021 OpenStack_SIG <openstack@openeuler.org> - 4.3.21-1
- Package upgrade to 4.3.21 - Package upgrade to 4.3.21

4
python-isort.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: timothycrosley/isort
tag_prefix: "^"
separator: "."