diff --git a/isort-4.3.21.tar.gz b/isort-4.3.21.tar.gz deleted file mode 100644 index 7f4abf0..0000000 Binary files a/isort-4.3.21.tar.gz and /dev/null differ diff --git a/isort-5.12.0.tar.gz b/isort-5.12.0.tar.gz new file mode 100644 index 0000000..935bc1f Binary files /dev/null and b/isort-5.12.0.tar.gz differ diff --git a/python-isort.spec b/python-isort.spec index 5dc27a3..737acfb 100644 --- a/python-isort.spec +++ b/python-isort.spec @@ -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 - 4.3.21-1 - Package upgrade to 4.3.21 diff --git a/python-isort.yaml b/python-isort.yaml new file mode 100644 index 0000000..ce5ac9f --- /dev/null +++ b/python-isort.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: timothycrosley/isort +tag_prefix: "^" +separator: "."