diff --git a/1.0.1.tar.gz b/1.0.1.tar.gz deleted file mode 100644 index fcf65c699988ba778a147d4f1d47a4977dded72e..0000000000000000000000000000000000000000 Binary files a/1.0.1.tar.gz and /dev/null differ diff --git a/Werkzeug-2.0.3.tar.gz b/Werkzeug-2.0.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..207ede1acfc4f3a96ded10e04fad12bb93e48880 Binary files /dev/null and b/Werkzeug-2.0.3.tar.gz differ diff --git a/python-werkzeug.spec b/python-werkzeug.spec index cd8594b0e3aae63b5935953412c6f9e0e4279c82..8ff642bb4c906f48ec4408527048882559160161 100644 --- a/python-werkzeug.spec +++ b/python-werkzeug.spec @@ -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 - 2.0.3-1 +- Upgrade to version 2.0.3 + * Tue Dec 21 2021 liwu - 1.2.1-2 - fix test failures due to unhandled exceptions being thrown without being propagated to caller