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-24 23:54:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-falcon (Old) and /work/SRC/openSUSE:Factory/.python-falcon.new.1895 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-falcon" Wed Nov 24 23:54:23 2021 rev:15 rq:933386 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-falcon/python-falcon.changes 2021-11-22 23:04:39.721835802 +0100 +++ /work/SRC/openSUSE:Factory/.python-falcon.new.1895/python-falcon.changes 2021-11-24 23:54:44.412425106 +0100 @@ -1,0 +2,12 @@ +Tue Nov 23 19:28:50 UTC 2021 - Ben Greiner <[email protected]> + +- Don't restrict to primary python3 flavor. Other packages depend + on this. +- Update requirements + * The only runtime deps have been removed in version 2.0 + * Test requirements from examples are obsolete +- Implement some python packaging best practises: + * Check for version in dist metadata + * uninstall alternative only takes master (there was even a typo) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-falcon.spec ++++++ --- /var/tmp/diff_new_pack.AxpmNJ/_old 2021-11-24 23:54:44.884423521 +0100 +++ /var/tmp/diff_new_pack.AxpmNJ/_new 2021-11-24 23:54:44.888423508 +0100 @@ -16,8 +16,8 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define pythons python3 +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-falcon Version: 3.0.1 Release: 0 @@ -33,40 +33,30 @@ 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 requests} BuildRequires: %{python_module testtools} BuildRequires: %{python_module ujson} -BuildRequires: %{python_module uvicorn} -BuildRequires: %{python_module websockets} -# /SECTION +%if 0%{?suse_version} >= 1550 +BuildRequires: %{python_module httpx if (%python-base without python36-base)} +BuildRequires: %{python_module uvicorn if (%python-base without python36-base)} +BuildRequires: %{python_module websockets if (%python-base without python36-base)} %endif +# /SECTION BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-pygments-style-railscasts #Requires: python-Cython -Requires: python-python-mimeparse -Requires: python-six Requires(post): update-alternatives Requires(postun):update-alternatives Suggests: %{name}-doc @@ -115,20 +105,20 @@ %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 tests -%endif +# there are no websockets and httpx for python 3.6 +python36_donttest=("--ignore" "tests/asgi") +if [ %{python3_version_nodots} -eq 36 ]; then + python3_donttest=("--ignore" "tests/asgi") +fi +%pytest "${$python_donttest[@]}" tests %post %{python_install_alternative falcon-bench falcon-inspect-app falcon-print-routes} %postun -%{python_uninstall_alternative falcon-bench falocn-inspect-app falcon-print-routes} +%python_uninstall_alternative falcon-bench %files %{python_files} %doc README.rst CHANGES.rst examples/ @@ -136,7 +126,8 @@ %python_alternative %{_bindir}/falcon-bench %python_alternative %{_bindir}/falcon-inspect-app %python_alternative %{_bindir}/falcon-print-routes -%{python_sitelib}/falcon* +%{python_sitelib}/falcon +%{python_sitelib}/falcon-%{version}*-info %files -n %{name}-doc %doc docs/_build/html
