update to version 2.0.3

This commit is contained in:
wang--ge 2022-10-26 15:36:58 +08:00
parent be467d0bc8
commit d72ba1d11c
3 changed files with 16 additions and 5 deletions

Binary file not shown.

BIN
Werkzeug-2.0.3.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-werkzeug
Version: 1.0.1
Release: 2
Version: 2.0.3
Release: 1
Summary: The comprehensive WSGI web application library.
License: BSD-3-Clause
URL: https://palletsprojects.com/p/werkzeug/
Source0: https://github.com/pallets/werkzeug/archive/1.0.1.tar.gz
Source0: https://files.pythonhosted.org/packages/6c/a8/60514fade2318e277453c9588545d0c335ea3ea6440ce5cdabfca7f73117/Werkzeug-2.0.3.tar.gz
BuildArch: noarch
BuildRequires: python3-werkzeug
@ -122,7 +122,12 @@ providing more structure and patterns for defining powerful
applications.
%prep
%autosetup -n werkzeug-1.0.1
%autosetup -n Werkzeug-%{version}
#remove test case which depend on xprocess
sed -i '/from xprocess import ProcessStarter/, +141d' tests/conftest.py
sed -i '/@pytest.mark.filterwarnings/, +221d' tests/test_serving.py
sed -i '/@pytest.mark.filterwarnings/, +40d' tests/middleware/test_http_proxy.py
sed -i '/@pytest.mark.filterwarnings/, +11d' tests/test_debug.py
%build
%py3_build
@ -156,7 +161,10 @@ mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
PYTHONPATH=%{buildroot}%{python3_sitelib}
depath=`pwd`
depath=$depath/src/
#export PYTHONPATH=%{buildroot}%{python3_sitelib}
export PYTHONPATH=$PYTHONPATH:$depath
/usr/bin/pytest -p no:unraisableexception
%files -n python3-werkzeug -f filelist.lst
@ -166,6 +174,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}
%{_docdir}/*
%changelog
* Tue Oct 25 2022 Ge Wang <wange20@h-partners.com> - 2.0.3-1
- Upgrade to version 2.0.3
* Tue Dec 21 2021 liwu <liwu13@huawei.com> - 1.2.1-2
- fix test failures due to unhandled exceptions being thrown without being propagated to caller