From ec0b5addeb8a7ce1925c466d800c0c1dcb5ab44d12aa10652aaaf89f11361c0e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 6 Jun 2021 12:01:51 +0000 Subject: [PATCH] - update to 9.1: **Version 9.1 fixes a security issue introduced in version 8.0.** * Restored compatibility of ``python -m websockets`` with Python < 3.9. * Restored compatibility with mypy. * Fixed issues with the packaging of the 9.0 release. * :class:`~datastructures.Headers` and :exc:`~datastructures.MultipleValuesError` were moved from ``websockets.http`` to :mod:`websockets.datastructures`. If you're using them, you should adjust the import path. * The ``client``, ``server``, ``protocol``, and ``auth`` modules were moved from the ``websockets`` package to ``websockets.legacy`` sub-package, as part of an upcoming refactoring. Despite the name, they're still fully supported. The refactoring should be a transparent upgrade for most uses when it's available. The legacy implementation will be preserved according to the `backwards-compatibility policy`_. * The ``framing``, ``handshake``, ``headers``, ``http``, and ``uri`` modules in the ``websockets`` package are deprecated. These modules provided low-level APIs for reuse by other WebSocket implementations, but that never happened. Keeping these APIs public makes it more difficult to improve websockets for no actual benefit. * Added compatibility with Python 3.9. * Added support for IRIs in addition to URIs. * Added close codes 1012, 1013, and 1014. * Raised an error when passing a :class:`dict` to OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=25 --- 8.1.tar.gz | 3 --- 9.1.tar.gz | 3 +++ python-websockets.changes | 28 ++++++++++++++++++++++++++++ python-websockets.spec | 4 ++-- 4 files changed, 33 insertions(+), 5 deletions(-) delete mode 100644 8.1.tar.gz create mode 100644 9.1.tar.gz diff --git a/8.1.tar.gz b/8.1.tar.gz deleted file mode 100644 index 9ce3589..0000000 --- a/8.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c19ce96ad5f7606127d3915364144df93fb865a215784b06048fae3d39364f14 -size 156472 diff --git a/9.1.tar.gz b/9.1.tar.gz new file mode 100644 index 0000000..8ba72f5 --- /dev/null +++ b/9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9036e41b6351827dec39b46f33d52a851261b66f3355c181667ee0ae59c52900 +size 191813 diff --git a/python-websockets.changes b/python-websockets.changes index 33e55f3..d81d9f3 100644 --- a/python-websockets.changes +++ b/python-websockets.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Sun Jun 6 12:00:22 UTC 2021 - Dirk Müller + +- update to 9.1: + **Version 9.1 fixes a security issue introduced in version 8.0.** + * Restored compatibility of ``python -m websockets`` with Python < 3.9. + * Restored compatibility with mypy. + * Fixed issues with the packaging of the 9.0 release. + * :class:`~datastructures.Headers` and + :exc:`~datastructures.MultipleValuesError` were moved from + ``websockets.http`` to :mod:`websockets.datastructures`. If you're using + them, you should adjust the import path. + * The ``client``, ``server``, ``protocol``, and ``auth`` modules were + moved from the ``websockets`` package to ``websockets.legacy`` + sub-package, as part of an upcoming refactoring. Despite the name, + they're still fully supported. The refactoring should be a transparent + upgrade for most uses when it's available. The legacy implementation + will be preserved according to the `backwards-compatibility policy`_. + * The ``framing``, ``handshake``, ``headers``, ``http``, and ``uri`` + modules in the ``websockets`` package are deprecated. These modules + provided low-level APIs for reuse by other WebSocket implementations, + but that never happened. Keeping these APIs public makes it more + difficult to improve websockets for no actual benefit. + * Added compatibility with Python 3.9. + * Added support for IRIs in addition to URIs. + * Added close codes 1012, 1013, and 1014. + * Raised an error when passing a :class:`dict` to + ------------------------------------------------------------------- Sat Nov 28 10:59:12 UTC 2020 - John Vandenberg diff --git a/python-websockets.spec b/python-websockets.spec index 9bf7ebe..223bae4 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -1,7 +1,7 @@ # # spec file for package python-websockets # -# 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-websockets -Version: 8.1 +Version: 9.1 Release: 0 Summary: An implementation of the WebSocket Protocol (RFC 6455) License: BSD-3-Clause