diff --git a/isort-4.3.21.tar.gz b/isort-4.3.21.tar.gz deleted file mode 100644 index 7f4abf08df98541c6b11c51b6b0365c6760d1c50..0000000000000000000000000000000000000000 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 0000000000000000000000000000000000000000..883f6a18a8ec3e8f74cd5de89027ff1fe2a9c335 Binary files /dev/null and b/isort-5.12.0.tar.gz differ diff --git a/python-isort.spec b/python-isort.spec index 5dc27a3ceb5e9516d10c0b5fb0dda1510abe903d..a8067976f7c3ca117dec159fb25d3655a5f958e3 100644 --- a/python-isort.spec +++ b/python-isort.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 -Name: python-isort -Version: 4.3.21 +%global pypi_name isort +Name: python-%{pypi_name} +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 +URL: https://github.com/pycqa/isort +Source0: %{pypi_source %{pypi_name}} BuildArch: noarch %description Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. @@ -20,9 +21,14 @@ BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-poetry-core BuildRequires: python3-pytest BuildRequires: python3-mock BuildRequires: python3-pylama +BuildRequires: python3-hypothesis +BuildRequires: python3-colorama +BuildRequires: python3-requirementslib %description -n python3-isort Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. @@ -35,30 +41,39 @@ Provides: python3-isort-doc A Python utility / library to sort Python imports. %prep -%autosetup -n isort-%{version} -sed -i -e '1{\@^#!.*@d}' isort/main.py +%autosetup -p1 -n %{pypi_name}-%{version} %build -%py3_build +%pyproject_build %install -%py3_install -mv %{buildroot}%{_bindir}/isort{,-%{python3_version}} -ln -s isort-%{python3_version} %{buildroot}%{_bindir}/isort-3 -ln -s isort-3 %{buildroot}%{_bindir}/isort +%pyproject_install +ln -s isort %{buildroot}%{_bindir}/isort-3 +ln -s isort-3 %{buildroot}%{_bindir}/isort-%{python3_version} %check -%{__python3} setup.py test +%pytest \ +--ignore tests/benchmark \ +--ignore tests/unit/profiles/test_black.py \ +--ignore tests/integration/test_hypothesmith.py \ +--ignore tests/integration/test_projects_using_isort.py \ +--ignore tests/unit/test_setuptools_command.py \ +--ignore tests/unit/test_main.py %files -n python3-isort -%doc README.rst *.md LICENSE +%doc *.md +%license LICENSE %{_bindir}/isort %{_bindir}/isort-3 %{_bindir}/isort-%{python3_version} +%{_bindir}/isort-identify-imports %{python3_sitelib}/isort/ -%{python3_sitelib}/isort-*.egg-info/ +%{python3_sitelib}/isort-*.dist-info/ %changelog +* Thu May 18 2023 Dongxing Wang - 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