Compare commits

..

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
daf101a21c
!16 【轻量级 PR】:Rebuild for next release
From: @zhangruifang2020 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-10-29 01:48:59 +00:00
张瑞方
ea548f1c6c
Rebuild for next release
Signed-off-by: 张瑞方 <xdzhangruifang@163.com>
2022-10-26 07:52:47 +00:00
openeuler-ci-bot
eb46b9247a !13 update to 2.4.0
Merge pull request !13 from Markeryang/openEuler-22.03-LTS-Next
2021-12-28 08:59:14 +00:00
markeryang
957a02f251 update package to 2.4.0 2021-12-27 21:54:02 +08:00
openeuler-ci-bot
40016d5542 !11 Revert to 0.7.2
From: @huangtianhua
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
2021-02-08 09:35:50 +08:00
huangtianhua
bdca6040b7 Revert "Upgrade version to 2.0.0"
This reverts commit 7a4874a8ea27e007c65084f94a000f41e0f7e43a.
2021-02-07 09:52:51 +00:00
openeuler-ci-bot
47110ff880 !8 Upgrade python-prettytable to 2.0.0 in master
From: @s17723959267
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
2021-02-03 09:44:53 +08:00
yeah_wang
7a4874a8ea Upgrade version to 2.0.0 2021-02-02 21:20:59 +08:00
openeuler-ci-bot
37688fce12 !7 remove python2
From: @jlwwlsqc
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
2020-11-04 16:37:48 +08:00
openeuler-ci-bot
bedbea3c9f remove python2
Merge pull request !6 from 桐小哥/master
2020-11-04 15:48:02 +08:00
openeuler-ci-bot
639535f30a !6 update Source0
Merge pull request !6 from 桐小哥/master
2020-09-09 11:14:07 +08:00
桐小哥
0a666c5c62 update Source0 2020-09-05 10:14:51 +08:00
3 changed files with 24 additions and 57 deletions

Binary file not shown.

BIN
prettytable-2.4.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,17 +1,13 @@
Name: python-prettytable
Version: 0.7.2
Release: 18
Version: 2.4.0
Release: 2
Summary: Display tabular data in a visually appealing ASCII table format.
License: BSD
URL: http://pypi.python.org/pypi/PrettyTable
Source0: http://pypi.python.org/packages/source/P/PrettyTable/prettytable-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/source/p/prettytable/prettytable-%{version}.tar.gz
BuildArch: noarch
%if 0%{?with_python2}
BuildRequires: python2-devel python2-setuptools
%endif
BuildRequires: python3-devel python3-setuptools
BuildRequires: python-unversioned-command
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
%description
PrettyTable is a simple Python library designed to make it quick and easy to
@ -23,21 +19,6 @@ a row range.
%package_help
%if 0%{?with_python2}
%package -n python2-prettytable
Summary: Display tabular data in a visually appealing ASCII table format
%{?python_provide:%python_provide python2-prettytable}
%description -n python2-prettytable
PrettyTable is a simple Python library designed to make it quick and easy to
represent tabular data in visually appealing ASCII tables. It was inspired by
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
selection of which columns are to be printed, independent alignment of columns
(left or right justified or centred) and printing of "sub-tables" by specifying
a row range.
This package is for python2.
%endif
%package -n python3-prettytable
Summary: Display tabular data in a visually appealing ASCII table format.
%{?python_provide:%python_provide python3-prettytable}
@ -53,57 +34,43 @@ This package is for python3.
%prep
%autosetup -n prettytable-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
%if 0%{?with_python2}
%{__python} setup.py build
%endif
pushd %{py3dir}
%{__python3} setup.py build
popd
%check
%if 0%{?with_python2}
%{__python} prettytable_test.py
%endif
pushd %{py3dir}
%{__python3} prettytable_test.py
popd
%install
%if 0%{?with_python2}
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%endif
pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd
%files help
%defattr(-,root,root)
%doc README CHANGELOG
%if 0%{?with_python2}
%files -n python2-prettytable
%defattr(-,root,root)
%license COPYING
%{python_sitelib}/prettytable.py*
%{python_sitelib}/prettytable-%{version}*
%endif
%doc README.md CHANGELOG.md
%files -n python3-prettytable
%defattr(-,root,root)
%license COPYING
%{python3_sitelib}/prettytable.py*
%{python3_sitelib}/__pycache__/prettytable*
%{python3_sitelib}/prettytable*
%{python3_sitelib}/prettytable-%{version}*
%changelog
* Wed Oct 26 2022 zhangruifang <zhangruifang1@h-partners.com> - 2.4.0-2
- Rebuild for next release
* Mon Dec 27 2021 yanglongkang <yanglongkang@huawei.com> -2.4.0-1
- upadate to 2.4.0
* Wed Nov 4 2020 wangjie<wangjie294@huawei.com> -0.7.2-20
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 0.7.2-19
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: update Source0
* Wed Feb 19 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.7.2-18
- Type:enhancement
- ID:NA