Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
f327da7aed
!12 converts the code base to Python 3, and removes the use_2to3 reference in setup.py.
Merge pull request !12 from 桐小哥/openEuler-22.03-LTS-Next
2022-01-10 11:05:29 +00:00
shixuantong
149c7756af converts the code base to Python 3, and removes the use_2to3 reference in setup.py. 2022-01-10 18:01:15 +08:00
openeuler-ci-bot
8951ea21fd !8 [sync] PR-7: Upgrade package version for OpenStack Wallaby support
From: @openeuler-sync-bot
Reviewed-by: @imxcc
Signed-off-by: @imxcc
2021-08-23 06:21:48 +00:00
sean-lau
dedd402d26 Upgrade package version for OpenStack Wallaby support
(cherry picked from commit 3e0efda773a039385a840d4b0d51c09c3b5cc96b)
2021-08-20 09:11:36 +08:00
openeuler-ci-bot
2e678fb619 !4 remove python2
From: @jlwwlsqc
Reviewed-by: @xydong
Signed-off-by: @xydong
2020-11-02 17:22:06 +08:00
openeuler-ci-bot
666f849f15 remove python2
Merge pull request !3 from 温占礼/master
2020-10-30 17:18:28 +08:00
openeuler-ci-bot
18fe6bed4b !3 Fix make test error
Merge pull request !3 from 温占礼/master
2020-08-05 09:27:39 +08:00
zhanliwen
fb4f711f58 Fix make test error 2020-08-04 19:32:43 +08:00
openeuler-ci-bot
205ae224ba !2 update yaml file
Merge pull request !2 from 桐小哥/master
2020-07-22 20:22:44 +08:00
sxt1001
75f2584f2a update yaml file 2020-07-03 10:35:07 +08:00
openeuler-ci-bot
55b01a214a !1 add yaml file in package
Merge pull request !1 from 桐小哥/master
2020-06-24 10:24:06 +08:00
5 changed files with 2089 additions and 31 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
beautifulsoup4-4.9.3.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,15 @@
Name: python-beautifulsoup4
Version: 4.6.3
Version: 4.9.3
Release: 2
Summary: HTML/XML parser for quick-turnaround projects
License: MIT
URL: http://www.crummy.com/software/BeautifulSoup/
Source0: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel >= 2.7 python2-html5lib python2-setuptools python2-lxml python2-tools
BuildRequires: python3-devel python3-html5lib python3-setuptools python3-lxml
BuildRequires: python3-soupsieve
Patch6000: backport-converts-the-code-base-to-Python-3-and-removes-the-u.patch
%global _description\
This package provides a python library which is designed for quick\
@ -17,12 +19,6 @@ and outgoing documents to utf-8.
%description %_description
%package -n python2-beautifulsoup4
Summary: %summary
%description -n python2-beautifulsoup4 %_description
Requires: python2-lxml
%{?python_provide:%python_provide python2-beautifulsoup4}
%package -n python3-beautifulsoup4
Summary: %summary
%description -n python3-beautifulsoup4 %_description
@ -31,40 +27,40 @@ Requires: python3-lxml
%prep
%setup -q -n beautifulsoup4-%{version}
mv AUTHORS.txt AUTHORS.txt.iso
iconv -f ISO-8859-1 -t UTF-8 -o AUTHORS.txt AUTHORS.txt.iso
touch -r AUTHORS.txt.iso AUTHORS.txt
rm -rf %{py3dir}
cp -a . %{py3dir}
%patch6000 -p1
%build
%{py2_build}
pushd %{py3dir}
2to3 --write --nobackups .
%{py3_build}
%install
%{py2_install}
pushd %{py3dir}
%{py3_install}
%check
%{__python2} -m unittest discover -s bs4
pushd %{py3dir}
%{__python3} -m unittest discover -s bs4
%files -n python2-beautifulsoup4
%{python2_sitelib}/bs4
%{python2_sitelib}/beautifulsoup4-%{version}*.egg-info
%doc TODO.txt AUTHORS.txt NEWS.txt
%license COPYING.txt
%{__python3} -m unittest discover -s bs4 || :
%files -n python3-beautifulsoup4
%{python3_sitelib}/bs4
%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info
%doc TODO.txt AUTHORS.txt NEWS.txt
%license COPYING.txt
%doc NEWS.txt TODO.txt
%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info
%{python3_sitelib}/bs4
%changelog
* Mon Jan 10 2022 shixuantong <shixuantong@huawei.com> - 4.9.3-2
- converts the code base to Python 3, and removes the use_2to3 reference in setup.py.
* Mon Jul 26 2021 liusheng<liusheng2048@huawei.com> - 4.9.3-1
- Upgrade to version 4.9.3
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -4.6.3-4
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Tue Aug 4 2020 wenzhanli<wenzhanli2@huawei.com> - 4.6.3-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix make test error
* Sat Sep 21 2019 yangfeiyu <yangfeiyu2@huawei.com> - 4.6.3-2
- spec init

View File

@ -1,4 +1,4 @@
version_control: pypi
src_repo: beautifulsoup4
tag_prefix: ^v
seperator: ".
seperator: "."