Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
dbcc67ac32
!11 Disable test
From: @wk333 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-04-25 08:38:38 +00:00
wk333
b623490ec9 Disable test 2024-04-25 16:20:16 +08:00
openeuler-ci-bot
30afa16b47
!8 Upgrade version to 5.12.0
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-12-19 08:18:01 +00:00
cherry530
061f48feeb Upgrade version to 5.12.0
Signed-off-by: cherry530 <707078654@qq.com>
2023-12-19 09:38:41 +08:00
openeuler-ci-bot
b49ad84a8e !4 Upgrade python-isort to 4.3.21
From: @huangtianhua
Reviewed-by: 
Signed-off-by:
2021-08-17 12:51:56 +00:00
huangtianhua
741047d0bb Upgrade to 4.3.21 to support OpenStack-W 2021-08-13 01:52:02 +00:00
openeuler-ci-bot
1af04066d5 !3 Remove python2-isort subpackage
Merge pull request !3 from ultra_planet/master
2020-08-05 15:03:11 +08:00
lingsheng
08929f48d6 Remove python2-isort subpackage 2020-08-05 14:34:19 +08:00
openeuler-ci-bot
10bd60265b !2 package init
Merge pull request !2 from small_leek/xsl
2020-02-27 10:04:22 +08:00
small_leek
f68db08031 package init isort 2020-02-26 20:47:41 -05:00
4 changed files with 50 additions and 44 deletions

Binary file not shown.

BIN
isort-5.12.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,76 +1,78 @@
Name: python-isort
Version: 4.3.4
Release: 6
Summary: A Python utility / library to sort imports
License: MIT
URL: https://github.com/timothycrosley/isort
Source0: %{url}/archive/%{version}/isort-%{version}.tar.gz
BuildArch: noarch
%global _empty_manifest_terminate_build 0
Name: python-isort
Version: 5.12.0
Release: 2
Summary: A Python utility / library to sort Python imports.
License: MIT
URL: https://github.com/timothycrosley/isort
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.
%package -n python2-isort
Summary: A Python utility / library to sort imports
%{?python_provide:%python_provide python2-isort}
BuildRequires: python2-devel python2-setuptools python2-mock python2-pytest python2-futures
Requires: python2-futures
%description -n python2-isort
Isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.
Python 2 version.
%package -n python3-isort
Summary: A Python utility / library to sort imports
Summary: A Python utility / library to sort Python imports.
%{?python_provide:%python_provide python3-isort}
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-mock python3-pytest
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
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.
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
%autosetup -n isort-%{version}
sed -i -e '1{\@^#!.*@d}' isort/main.py
%build
%py2_build
%py3_build
%install
%py2_install
mv %{buildroot}%{_bindir}/isort{,-%{python2_version}}
ln -s isort-%{python2_version} %{buildroot}%{_bindir}/isort-2
%py3_install
mv %{buildroot}%{_bindir}/isort{,-%{python3_version}}
ln -s isort-%{python3_version} %{buildroot}%{_bindir}/isort-3
ln -s isort-2 %{buildroot}%{_bindir}/isort
ln -s isort-3 %{buildroot}%{_bindir}/isort
%check
%{__python2} setup.py test
%{__python3} setup.py test
%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/
# Disable test because test is not available
# https://github.com/PyCQA/isort/issues/2129
#pytest tests
%files -n python3-isort
%doc README.rst *.md
%license 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
* 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
- Package init

4
python-isort.yaml Normal file
View File

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