Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-uvicorn for openSUSE:Factory checked in at 2023-05-13 17:17:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-uvicorn (Old) and /work/SRC/openSUSE:Factory/.python-uvicorn.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-uvicorn" Sat May 13 17:17:07 2023 rev:11 rq:1086703 version:0.22.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-uvicorn/python-uvicorn.changes 2023-04-22 22:02:59.642125296 +0200 +++ /work/SRC/openSUSE:Factory/.python-uvicorn.new.1533/python-uvicorn.changes 2023-05-13 17:17:15.302247779 +0200 @@ -1,0 +2,67 @@ +Fri May 12 08:24:05 UTC 2023 - daniel.gar...@suse.com + +- Add fix-websocket-tests.patch gh#encode/uvicorn#1929 +- Update to version 0.22.0: + * Version 0.22.0 (#1957) + * Remove unused events (#1956) + * remove a few mypy excludes (#1954) + * Add `--timeout-graceful-shutdown` parameter (#1950) + * Fix typo in setup.cfg (#1953) + * Update `scripts/check` (#1952) + * Add `WatchFilesReload` pause method (#1930) + * Create PULL_REQUEST_TEMPLATE.md (#1946) + * Handle `SIGBREAK` for Windows (#1909) + * Fix shutdown event on Windows in reloader (#1584) + * Handle missing trustme/cryptography gracefully in the test suite (#1940) + * Add type hints to test_auto_detection.py (#1937) + * Fix watchgod deprecation warning (#1938) + * Upgrade and fix Black (#1926) + * Use ruff instead of flake8, autoflake and isort (#1925) + * Upgrade MyPy and fix issues (#1931) + * Pin websockets to <11.0 (#1928) + * Bump coverage from 7.1.0 to 7.2.2 (#1920) + * Fix instructions so they work in zsh as well as Bash (#1915) + * [`Docs`] : Hypercorn supports HTTP/3 (#1913) + * Version 0.21.1 (#1904) + * Reset lifespan state on each request (#1903) + * Version 0.21.0 (#1892) + * Improve discoverability when `--port=0` is used (#1890) + * Fix mypy on test_websockets (#1889) + * Add type annotation on `test_websockets.py` (#1880) + * Introduce lifespan state (#1818) + * Bump build from 0.9.0 to 0.10.0 (#1882) + * Bump pytest from 7.2.0 to 7.2.1 (#1883) + * Bump a2wsgi from 1.6.0 to 1.7.0 (#1886) + * Add type annotation on `test_logging.py` (#1881) + * fix: typo (#1871) + * Bump cryptography from 38.0.3 to 39.0.1 (#1865) + * Improve import time (#1846) + * Bump coverage from 6.5.0 to 7.1.0 (#1856) + * Bump twine from 4.0.1 to 4.0.2 (#1857) + * Bump types-pyyaml from 6.0.12.2 to 6.0.12.3 (#1858) + * Move a2wsgi to the explicit optionals section in the requirements (#1849) + * Replace current WSGIMiddleware implementation by a2wsgi one (#1825) + * Send code 1012 on shutdown for websockets (#1816) + * Change default `--app-dir` from from "." (dot) to "" (empty string). (#1835) + * Bump types-pyyaml from 6.0.12.1 to 6.0.12.2 (#1827) + * Bump pytest from 7.1.3 to 7.2.0 (#1830) + * Fix cli_usage tool on systems without an activated virtualenv (#1823) + * Fix ASGI application on the documentation (#1821) + * Delete setup.py (#1822) + * tests: test to start server with invalid host (#1813) + * Use unused TCP ports on the test suite (#1804) + * Use `surrogateescape` to encode headers on `websockets` implementation (#1005) + * Update hypercorn link on the README (#1800) + * Fix one example in REAME (#1794) + * Replace `files` by `exclude` on mypy configuration (#1793) + * Bump mypy from 0.982 to 0.991 (#1789) + * Bump mkdocs from 1.4.0 to 1.4.2 (#1787) + * Bump build from 0.8.0 to 0.9.0 (#1791) + * Fix warning on reload failure (#1784) + * Allow headers to be sent as iterables (#1782) + * Add test to make sure we send connection close when client sends it (#1776) + * Replace `AF_UNIX` by `AF_INET` on subprocess test (#1775) + * Replace uvicorn files by uvicorn folder on mypy settings (#1771) + * Add type annotation to `wsproto_impl.py` (#1754) + +------------------------------------------------------------------- Old: ---- uvicorn-0.20.0.tar.gz New: ---- fix-websocket-tests.patch uvicorn-0.22.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-uvicorn.spec ++++++ --- /var/tmp/diff_new_pack.Kl9h7V/_old 2023-05-13 17:17:15.962251576 +0200 +++ /var/tmp/diff_new_pack.Kl9h7V/_new 2023-05-13 17:17:15.966251599 +0200 @@ -18,12 +18,14 @@ %{?sle15_python_module_pythons} Name: python-uvicorn -Version: 0.20.0 +Version: 0.22.0 Release: 0 Summary: An Asynchronous Server Gateway Interface server License: BSD-3-Clause URL: https://github.com/encode/uvicorn Source: https://github.com/encode/uvicorn/archive/%{version}.tar.gz#/uvicorn-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix-websocket-tests.patch -- gh#encode/uvicorn#1929 +Patch0: fix-websocket-tests.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} @@ -42,6 +44,7 @@ Suggests: python-uvloop >= 0.14.0 Suggests: python-watchfiles >= 0.13 Suggests: python-wsproto >= 1.2.0 +Suggests: python-websockets Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch @@ -94,7 +97,8 @@ %check # Required for reporting bugs %python_exec -m uvicorn --version -%pytest +# No module python-a2wsgi +%pytest --ignore tests/middleware/test_wsgi.py %files %{python_files} %doc README.md ++++++ _service ++++++ --- /var/tmp/diff_new_pack.Kl9h7V/_old 2023-05-13 17:17:15.994251761 +0200 +++ /var/tmp/diff_new_pack.Kl9h7V/_new 2023-05-13 17:17:15.998251783 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="disabled"> <param name="url">https://github.com/encode/uvicorn.git</param> <param name="scm">git</param> - <param name="revision">0.20.0</param> + <param name="revision">0.22.0</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> </service> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.Kl9h7V/_old 2023-05-13 17:17:16.022251922 +0200 +++ /var/tmp/diff_new_pack.Kl9h7V/_new 2023-05-13 17:17:16.022251922 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/encode/uvicorn.git</param> - <param name="changesrevision">448be75222093041561d136f9f2f5577d6e361ee</param></service></servicedata> + <param name="changesrevision">71043a9c8fb6436a63110179650e32bcae4a6cbf</param></service></servicedata> (No newline at EOF) ++++++ fix-websocket-tests.patch ++++++ Index: uvicorn-0.22.0/tests/protocols/test_websocket.py =================================================================== --- uvicorn-0.22.0.orig/tests/protocols/test_websocket.py +++ uvicorn-0.22.0/tests/protocols/test_websocket.py @@ -584,7 +584,7 @@ async def test_asgi_return_value( async with run_server(config): with pytest.raises(websockets.exceptions.ConnectionClosed) as exc_info: await connect(f"ws://127.0.0.1:{unused_tcp_port}") - assert exc_info.value.code == 1006 + assert exc_info.value.code in {1000, 1006} @pytest.mark.anyio ++++++ uvicorn-0.20.0.tar.gz -> uvicorn-0.22.0.tar.gz ++++++ ++++ 3941 lines of diff (skipped)