Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-falcon for openSUSE:Factory checked in at 2021-11-22 23:04:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-falcon (Old) and /work/SRC/openSUSE:Factory/.python-falcon.new.1895 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-falcon" Mon Nov 22 23:04:00 2021 rev:14 rq:933137 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-falcon/python-falcon.changes 2020-03-17 13:11:23.641856496 +0100 +++ /work/SRC/openSUSE:Factory/.python-falcon.new.1895/python-falcon.changes 2021-11-22 23:04:39.721835802 +0100 @@ -1,0 +2,22 @@ +Mon Nov 22 16:25:06 UTC 2021 - Matej Cepl <[email protected]> + +- Don't create %%{python_sitelib}/examples directory, that' just + evil. + +------------------------------------------------------------------- +Wed Nov 17 12:09:52 UTC 2021 - Andreas Schneider <[email protected]> + +- Update to version 3.0.1 + This is a minor point release to take care of a couple of bugs + that we did not catch for 3.0.0. + - The api_helpers module was re-added, since it was renamed + to app_helpers (and effectively removed) without announcing + a corresponding breaking change. This module is now + considered deprecated, and will be removed in a future Falcon + version. + - ASGI HTTP headers were treated as UTF-8 encoded, not + taking the incompatibility with WSGI and porting of WSGI + applications into consideration. This was fixed, and ASGI + headers are now decoded and encoded as ISO-8859-1. + +------------------------------------------------------------------- Old: ---- falcon-2.0.0.tar.gz New: ---- falcon-3.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-falcon.spec ++++++ --- /var/tmp/diff_new_pack.yfWWCZ/_old 2021-11-22 23:04:40.469833293 +0100 +++ /var/tmp/diff_new_pack.yfWWCZ/_new 2021-11-22 23:04:40.469833293 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-falcon # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%define pythons python3 Name: python-falcon -Version: 2.0.0 +Version: 3.0.1 Release: 0 Summary: A web framework for building APIs and app backends License: Apache-2.0 @@ -31,34 +31,46 @@ # github pygments style is not available Patch0: python-falcon-sphinx-pygments-style.patch BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module ddt} +BuildRequires: %{python_module python-mimeparse >= 1.5.2} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six >= 1.4.0} +BuildRequires: %{python_module sphinx-tabs} # TODO: Cython support #BuildRequires: %%{python_module Cython} +%if 0%{?suse_version} >= 1550 +# SECTION test requirements +BuildRequires: %{python_module aiofiles} +BuildRequires: %{python_module aioredis} +BuildRequires: %{python_module cbor2} BuildRequires: %{python_module devel} +BuildRequires: %{python_module fakeredis} BuildRequires: %{python_module fixtures >= 1.3.0} BuildRequires: %{python_module jsonschema} BuildRequires: %{python_module msgpack-python} BuildRequires: %{python_module pecan} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest-httpx} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module python-mimeparse >= 1.5.2} BuildRequires: %{python_module requests} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six >= 1.4.0} BuildRequires: %{python_module testtools} BuildRequires: %{python_module ujson} +BuildRequires: %{python_module uvicorn} +BuildRequires: %{python_module websockets} +# /SECTION +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python3-Sphinx BuildRequires: python3-pygments-style-railscasts #Requires: python-Cython Requires: python-python-mimeparse Requires: python-six Requires(post): update-alternatives -Requires(postun): update-alternatives -%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 +Requires(postun):update-alternatives Suggests: %{name}-doc -%endif +BuildArch: noarch %python_subpackages %package -n %{name}-doc @@ -78,41 +90,53 @@ %setup -q -n falcon-%{version} %patch0 -p1 # remove unwanted shebang -sed -i '1s/^#!.*//' falcon/bench/bench.py falcon/cmd/print_routes.py falcon/bench/dj/manage.py +sed -i '1s/^#!.*//' falcon/bench/bench.py falcon/cmd/inspect_app.py falcon/bench/dj/manage.py chmod a-x falcon/bench/dj/manage.py # we don't want to require rapidjson just for testing rm tests/test_media_handlers.py +# Hidden files are evil +rm examples/asgilook/.coveragerc %build export CFLAGS="%{optflags} -fno-strict-aliasing" %python_build +export PYTHONPATH="$(pwd)" pushd docs -PYTHONPATH=$PATH:.. make html +make html rm _build/html/.buildinfo popd %install %python_install %python_clone -a %{buildroot}%{_bindir}/falcon-bench +%python_clone -a %{buildroot}%{_bindir}/falcon-inspect-app %python_clone -a %{buildroot}%{_bindir}/falcon-print-routes -%python_expand %fdupes %{buildroot}%{$python_sitelib} - +%{python_expand rm -rf %{buildroot}%{$python_sitelib}/examples + %fdupes %{buildroot}%{$python_sitelib} +} + +%if 0%{?suse_version} >= 1550 +# We do not have the following package on Leap 15.3 +# python-httpx +# python-pytest-trio %check export LANG=en_US.UTF8 -%pytest +%pytest tests +%endif %post -%{python_install_alternative falcon-bench falcon-print-routes} +%{python_install_alternative falcon-bench falcon-inspect-app falcon-print-routes} %postun -%{python_uninstall_alternative falcon-bench falcon-print-routes} +%{python_uninstall_alternative falcon-bench falocn-inspect-app falcon-print-routes} %files %{python_files} -%doc README.rst CHANGES.rst +%doc README.rst CHANGES.rst examples/ %license LICENSE %python_alternative %{_bindir}/falcon-bench +%python_alternative %{_bindir}/falcon-inspect-app %python_alternative %{_bindir}/falcon-print-routes -%{python_sitelib}/* +%{python_sitelib}/falcon* %files -n %{name}-doc %doc docs/_build/html ++++++ falcon-2.0.0.tar.gz -> falcon-3.0.1.tar.gz ++++++ ++++ 56058 lines of diff (skipped) ++++++ python-falcon-sphinx-pygments-style.patch ++++++ --- /var/tmp/diff_new_pack.yfWWCZ/_old 2021-11-22 23:04:40.681832581 +0100 +++ /var/tmp/diff_new_pack.yfWWCZ/_new 2021-11-22 23:04:40.681832581 +0100 @@ -1,8 +1,8 @@ -Index: falcon-2.0.0/docs/conf.py +Index: falcon-3.0.1/docs/conf.py =================================================================== ---- falcon-2.0.0.orig/docs/conf.py 2019-04-26 20:19:32.000000000 +0200 -+++ falcon-2.0.0/docs/conf.py 2019-05-21 16:42:08.910523827 +0200 -@@ -121,7 +121,7 @@ exclude_patterns = ['_build'] +--- falcon-3.0.1.orig/docs/conf.py 2021-05-11 00:19:26.000000000 +0200 ++++ falcon-3.0.1/docs/conf.py 2021-11-17 11:57:45.522196166 +0100 +@@ -138,7 +138,7 @@ exclude_patterns = ['_build', '_newsfrag #show_authors = False # The name of the Pygments (syntax highlighting) style to use.
