!8 Upgrade version to 5.12.0
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
30afa16b47
Binary file not shown.
BIN
isort-5.12.0.tar.gz
Normal file
BIN
isort-5.12.0.tar.gz
Normal file
Binary file not shown.
@ -1,11 +1,11 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-isort
|
||||
Version: 4.3.21
|
||||
Version: 5.12.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/43/00/8705e8d0c05ba22f042634f791a61f4c678c32175763dcf2ca2a133f4739/isort-4.3.21.tar.gz
|
||||
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.
|
||||
@ -23,6 +23,7 @@ BuildRequires: python3-wheel
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-pylama
|
||||
BuildRequires: python-pep517
|
||||
|
||||
%description -n python3-isort
|
||||
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
|
||||
%autosetup -n isort-%{version}
|
||||
sed -i -e '1{\@^#!.*@d}' isort/main.py
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
@ -48,17 +48,21 @@ ln -s isort-%{python3_version} %{buildroot}%{_bindir}/isort-3
|
||||
ln -s isort-3 %{buildroot}%{_bindir}/isort
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
pytest tests
|
||||
|
||||
%files -n python3-isort
|
||||
%doc README.rst *.md LICENSE
|
||||
%doc *.md LICENSE
|
||||
%{_bindir}/isort
|
||||
%{_bindir}/isort-3
|
||||
%{_bindir}/isort-%{python3_version}
|
||||
%{_bindir}/isort-identify-imports
|
||||
%{python3_sitelib}/isort/
|
||||
%{python3_sitelib}/isort-*.egg-info/
|
||||
|
||||
%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
|
||||
- Package upgrade to 4.3.21
|
||||
|
||||
|
||||
4
python-isort.yaml
Normal file
4
python-isort.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: timothycrosley/isort
|
||||
tag_prefix: "^"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user