Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c81f459ce6
!18 Change test method tox to tox --current-env
From: @desert-sailor 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
2023-06-15 00:44:14 +00:00
desert-sailor
eba95e8408 Change test method tox to tox --current-env 2023-06-14 22:51:38 +08:00
openeuler-ci-bot
947b76f301
!17 update to upstream version 4.12.2
From: @desert-sailor 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
2023-05-04 07:39:34 +00:00
desert-sailor
fb6360727d Add build requires python3-soupsieve and update to version 4.12.2 2023-05-04 14:53:41 +08:00
openeuler-ci-bot
61c83ba8b9
!16 Update package
From: @liqiuyu123 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
2022-11-16 02:29:13 +00:00
liqiuyu123
f0e087298f update package 2022-11-10 16:36:28 +08:00
openeuler-ci-bot
e66ef5fa56
!14 Update package beautifulsoup4 of version 4.10.0
From: @renliang16 
Reviewed-by: @xiyuanwang, @huangtianhua 
Signed-off-by: @huangtianhua
2022-05-25 03:41:53 +00:00
renliang16
a27340fa07 Update package beautifulsoup4 of version 4.10.0 2022-05-24 11:56:57 +00:00
openeuler-ci-bot
c597bf2521
!11 converts the code base to Python 3, and removes the use_2to3 reference in setup.py.
Merge pull request !11 from 桐小哥/master
2022-01-10 11:01:31 +00:00
shixuantong
91827993fb converts the code base to Python 3, and removes the use_2to3 reference in setup.py. 2022-01-10 17:58:01 +08:00
4 changed files with 120 additions and 31 deletions

View File

@ -0,0 +1,46 @@
From d44ce30ea0c77dc1f6ad5a5a8c84fccec6109a65 Mon Sep 17 00:00:00 2001
From: desert-sailor <dxwangk@isoftstone.com>
Date: Thu, 27 Apr 2023 11:33:09 +0800
Subject: [PATCH 1/2] add tox config file for test
---
tox.ini | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 tox.ini
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..6a461aa
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,27 @@
+[tox]
+env_list =
+ py{36, 37, 38, 39, 310, 311},bare,docs
+minversion = 3.28.0
+skip_missing_interpreters = true
+isolated_build = True
+
+[testenv]
+package = wheel
+wheel_build_env = .pkg
+description = run the tests with all dependencies installed
+deps = lxml
+ html5lib
+ soupsieve>=1.2
+ pytest>=6
+commands = pytest {tty:--color=yes} {posargs}
+
+[testenv:docs]
+basepython = python3
+description = build the documentation
+deps = sphinx
+commands = sphinx-build -b html doc/source doc/build/html
+
+[testenv:bare]
+description = run the tests on the oldest supported version of Python, without any dependencies installed
+basepython = python3.6
+deps = pytest>=6
--
2.33.0

Binary file not shown.

Binary file not shown.

View File

@ -1,51 +1,94 @@
Name: python-beautifulsoup4 %global _empty_manifest_terminate_build 0
Version: 4.9.3
Release: 1
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: python3-devel python3-html5lib python3-setuptools python3-lxml
%global _description\ Name: python-beautifulsoup4
This package provides a python library which is designed for quick\ Version: 4.12.2
turnaround projects.It provides methods for navigating and modifying\ Release: 2
a parse tree.It can help convert incoming documents to Unicode\ Summary: Screen-scraping library
License: MIT
URL: https://www.crummy.com/software/BeautifulSoup/bs4/
Source0: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
Patch0: 0001-add-tox-config-file-for-test.patch
BuildArch: noarch
Requires: python3-soupsieve
%description
This package provides a python library which is designed for quick
turnaround projects.It provides methods for navigating and modifying
a parse tree.It can help convert incoming documents to Unicode
and outgoing documents to utf-8. and outgoing documents to utf-8.
%description %_description %package -n python3-beautifulsoup4
Summary: Screen-scraping library
Provides: python-beautifulsoup4
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-html5lib
BuildRequires: python3-lxml
BuildRequires: python3-pip
BuildRequires: python3-pytest
BuildRequires: python3-tox
BuildRequires: python3-tox-current-env
BuildRequires: python3-soupsieve
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
%description -n python3-beautifulsoup4
This package provides a python library which is designed for quick
turnaround projects.It provides methods for navigating and modifying
a parse tree.It can help convert incoming documents to Unicode
and outgoing documents to utf-8.
%package -n python3-beautifulsoup4 %package help
Summary: %summary Summary: Screen-scraping library
%description -n python3-beautifulsoup4 %_description Provides: python3-beautifulsoup4-doc
Obsoletes: python3-BeautifulSoup < 1:3.2.1-2 %description help
Requires: python3-lxml This package provides a python library which is designed for quick
turnaround projects.It provides methods for navigating and modifying
a parse tree.It can help convert incoming documents to Unicode
and outgoing documents to utf-8.
%prep %prep
%setup -q -n beautifulsoup4-%{version} %autosetup -p1 -n beautifulsoup4-%{version}
rm -rf %{py3dir} && cp -a . %{py3dir}
%build %build
pushd %{py3dir} %pyproject_build
2to3 --write --nobackups .
%{py3_build}
%install %install
pushd %{py3dir} %pyproject_install
%{py3_install}
%check %check
pushd %{py3dir} TOX_TESTENV_PASSENV="${TOX_TESTENV_PASSENV:-*}" \
%{__python3} -m unittest discover -s bs4 || : CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
PATH="%{buildroot}%{_bindir}:$PATH" \
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
PYTHONDONTWRITEBYTECODE=1 \
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \
%{__python3} -m tox -e py%{python3_version_nodots} --current-env
%files -n python3-beautifulsoup4 %files -n python3-beautifulsoup4
%license COPYING.txt %license LICENSE
%doc NEWS.txt TODO.txt %doc NEWS.txt
%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info %{python3_sitelib}/beautifulsoup4-%{version}.dist-info/
%{python3_sitelib}/bs4 %{python3_sitelib}/bs4
%changelog %changelog
* Wed Jun 14 2023 Dongxing Wang <dxwangk@isoftstone.com> - 4.12.2-2
- Change test method tox to tox --current-env
* Wed Apr 26 2023 Dongxing Wang <dxwangk@isoftstone.com> - 4.12.2-1
- Add build requires pythone3-soupsieve and upgrade to 4.12.2
* Thu Nov 10 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.11.1-1
- Upgrade package to version 4.11.1
* Tue May 24 2022 renliang <renliang@uniontech.com> - 4.10.0-1
- Upgrade package python3-beautifulsoup4 to version 4.10.0
* 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 * Mon Jul 26 2021 liusheng<liusheng2048@huawei.com> - 4.9.3-1
- Upgrade to version 4.9.3 - Upgrade to version 4.9.3