Compare commits
No commits in common. "dbcc67ac32655e5a44d48e336cd5b8eebbc96257" and "58d084e18b4666808905ed03f4e394e077d7a77a" have entirely different histories.
dbcc67ac32
...
58d084e18b
BIN
isort-4.3.4.tar.gz
Normal file
BIN
isort-4.3.4.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,78 +1,76 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
Name: python-isort
|
||||||
Name: python-isort
|
Version: 4.3.4
|
||||||
Version: 5.12.0
|
Release: 6
|
||||||
Release: 2
|
Summary: A Python utility / library to sort 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/source/i/isort/isort-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/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.
|
||||||
|
|
||||||
%package -n python3-isort
|
%package -n python2-isort
|
||||||
Summary: A Python utility / library to sort Python imports.
|
Summary: A Python utility / library to sort imports
|
||||||
%{?python_provide:%python_provide python3-isort}
|
%{?python_provide:%python_provide python2-isort}
|
||||||
|
BuildRequires: python2-devel python2-setuptools python2-mock python2-pytest python2-futures
|
||||||
|
Requires: python2-futures
|
||||||
|
|
||||||
# Base build requires
|
%description -n python2-isort
|
||||||
BuildRequires: python3-devel
|
Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.
|
||||||
BuildRequires: python3-setuptools
|
Python 2 version.
|
||||||
BuildRequires: python3-pbr
|
|
||||||
BuildRequires: python3-pip
|
%package -n python3-isort
|
||||||
BuildRequires: python3-wheel
|
Summary: A Python utility / library to sort imports
|
||||||
BuildRequires: python3-pytest
|
%{?python_provide:%python_provide python3-isort}
|
||||||
BuildRequires: python3-mock
|
BuildRequires: python3-devel python3-setuptools
|
||||||
BuildRequires: python3-pylama
|
BuildRequires: python3-mock python3-pytest
|
||||||
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.
|
||||||
Python 3 version.
|
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
|
%prep
|
||||||
%autosetup -n isort-%{version}
|
%autosetup -n isort-%{version}
|
||||||
|
sed -i -e '1{\@^#!.*@d}' isort/main.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%py2_install
|
||||||
|
mv %{buildroot}%{_bindir}/isort{,-%{python2_version}}
|
||||||
|
ln -s isort-%{python2_version} %{buildroot}%{_bindir}/isort-2
|
||||||
|
|
||||||
%py3_install
|
%py3_install
|
||||||
mv %{buildroot}%{_bindir}/isort{,-%{python3_version}}
|
mv %{buildroot}%{_bindir}/isort{,-%{python3_version}}
|
||||||
ln -s isort-%{python3_version} %{buildroot}%{_bindir}/isort-3
|
ln -s isort-%{python3_version} %{buildroot}%{_bindir}/isort-3
|
||||||
ln -s isort-3 %{buildroot}%{_bindir}/isort
|
ln -s isort-2 %{buildroot}%{_bindir}/isort
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Disable test because test is not available
|
%{__python2} setup.py test
|
||||||
# https://github.com/PyCQA/isort/issues/2129
|
%{__python3} setup.py test
|
||||||
#pytest tests
|
|
||||||
|
|
||||||
|
%files -n python2-isort
|
||||||
|
%doc README.rst *.md
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/isort
|
||||||
|
%{_bindir}/isort-2
|
||||||
|
%{_bindir}/isort-%{python2_version}
|
||||||
|
%{python2_sitelib}/isort/
|
||||||
|
%{python2_sitelib}/isort-*.egg-info/
|
||||||
|
|
||||||
%files -n python3-isort
|
%files -n python3-isort
|
||||||
%doc *.md LICENSE
|
%doc README.rst *.md
|
||||||
%{_bindir}/isort
|
%license LICENSE
|
||||||
%{_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
|
||||||
* 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
|
* Mon Feb 24 2020 Senlin Xia <xiasenlin1@huawei.com> - 4.3.4-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: timothycrosley/isort
|
|
||||||
tag_prefix: "^"
|
|
||||||
separator: "."
|
|
||||||
Loading…
x
Reference in New Issue
Block a user