Commit Graph

22 Commits

Author SHA256 Message Date
4438c717b0 - update to 10.1:
* Made the second parameter of connection handlers optional. It will be
    deprecated in the next major release. The request path is available in
    the :attr:`~legacy.protocol.WebSocketCommonProtocol.path` attribute of
    the first argument.
    If you implemented the connection handler of a server as::
        async def handler(request, path):
            ...
  
    You should replace it by::
  
        async def handler(request):
            path = request.path  # if handler() uses the path argument
            ...
  * Added ``python -m websockets --version``.
  * Reverted optimization of default compression settings for clients, mainly to
    avoid triggering bugs in poorly implemented servers like `AWS API Gateway`_.
  * Mirrored the entire :class:`~asyncio.Server` API
    in :class:`~server.WebSocketServer`.
  * Improved performance for large messages on ARM processors.
  * Documented how to auto-reload on code changes in development.
  * Avoided half-closing TCP connections that are already closed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=33
2022-02-04 22:09:57 +00:00
8798c73929 Accepting request 928326 from home:bnavigator:branches:devel:languages:python
- Reactivate python39 build, only disable testing. No need to break
  consuming packages -- gh#aaugustin/websockets#1051

OBS-URL: https://build.opensuse.org/request/show/928326
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=32
2021-10-31 22:35:16 +00:00
a70bdba5bb - The test suite is temporarily broken on Python 3.9.7
(gh#aaugustin/websockets#1051).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=31
2021-10-30 12:32:16 +00:00
eed2c397fc - Update to 10.0:
- Backwards-incompatible changes
    - websockets 10.0 requires Python ≥ 3.7.
    - The ``loop`` parameter is deprecated from all APIs.
      The ``loop`` parameter is also removed
      from `~server.WebSocketServer`. This should be transparent.
    - `~client.connect` times out after 10 seconds by default.
      You can adjust the timeout with the ``open_timeout`` parameter. Set it to
      `None` to disable the timeout entirely.
    - The ``legacy_recv`` option is deprecated.
    - The signature of `~exceptions.ConnectionClosed` changed.
      If you raise `~exceptions.ConnectionClosed` or a subclass, rather
      than catch them when websockets raises them, you must change your code.
    - A ``msg`` parameter was added to `~exceptions.InvalidURI`.
      If you raise `~exceptions.InvalidURI`, rather than catch it when
      websockets raises it, you must change your code.
  - New features
    - websockets 10.0 introduces a Sans-I/O API for easier
      integration in third-party libraries.
    - Added compatibility with Python 3.10.
    - Added `~websockets.broadcast` to send a message to many
      clients.
    - Added support for reconnecting automatically by using
      `~client.connect` as an asynchronous iterator.
    - Added ``open_timeout`` to :func:`~client.connect`.
    - Documented how to integrate with Django.
    - Documented how to deploy websockets in production, with
      several options.
    - Documented how to authenticate connections.
    - Documented how to broadcast messages to many connections.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=30
2021-10-29 13:14:59 +00:00
2bb628a6c4 - Increase WEBSOCKETS_TESTS_TIMEOUT_FACTOR to 10 to make
test_keepalive_ping_with_no_ping_timeout pass again.
- Remove skip-test_keepalive_ping_with_no_ping_timeout.patch, of course.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=29
2021-08-11 09:19:36 +00:00
99b8f93569 - Add skip-test_keepalive_ping_with_no_ping_timeout.patch for
gh#aaugustin/websockets#1026.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=28
2021-08-10 07:52:37 +00:00
44a7704273 - Use %pyunittest macro instead of doing it on our own.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=27
2021-08-10 07:18:23 +00:00
ec0b5addeb - 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
2021-06-06 12:01:51 +00:00
bb2e419fd2 Accepting request 851475 from home:jayvdb:branches:devel:languages:python
- Remove Suggest python-asyncio, which is in Python 3 stdlib

OBS-URL: https://build.opensuse.org/request/show/851475
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=23
2020-11-30 14:56:05 +00:00
Tomáš Chvátal
545814b52f Accepting request 770596 from home:mcalabkova:branches:devel:languages:python
- update to 8.1
  * Added compatibility with Python 3.8.
- drop upstreamed patch python38-support.patch

OBS-URL: https://build.opensuse.org/request/show/770596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=21
2020-02-06 14:02:22 +00:00
Steve Kowalik
5d7a8a7115 - Add python38-support.patch from upstream that fixes build failures
against Python 3.8.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=19
2019-10-16 03:20:52 +00:00
Tomáš Chvátal
7b88575164 - Update to 8.0.2:
* Restored the ability to pass a socket with the sock parameter of :func:`~server.serve`.
  * Removed an incorrect assertion when a connection drops.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=17
2019-08-13 16:38:51 +00:00
Tomáš Chvátal
0cb733750b - Update to 8.0.1:
* Version 8.0 drops compatibility with Python 3.4 and 3.5.
  * Various fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=15
2019-07-22 11:43:21 +00:00
Tomáš Chvátal
8dfd9c5d56 - Update to 7.0:
* Various fixes
  * Repository layout changes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=13
2019-04-16 11:12:33 +00:00
Tomáš Chvátal
591e075f50 - Call the tests the same way as upstream to avoid import cycles
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=11
2018-10-01 07:22:45 +00:00
Tomáš Chvátal
a72473c5d2 - Do make sure to error out on test failure.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=10
2018-09-24 07:35:33 +00:00
Tomáš Chvátal
4ac177645d OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=8 2018-08-30 07:23:48 +00:00
Tomáš Chvátal
347c6888c5 - Version update to 6.0:
* compatibility with python 3.6

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=7
2018-08-29 11:42:56 +00:00
Tomáš Chvátal
4167eebaa7 Accepting request 619360 from home:abergmann:branches:devel:languages:python
- Update to version 5.0.1
  * CVE-2018-1000518: Defend against zip bombs (boo#1099269).

OBS-URL: https://build.opensuse.org/request/show/619360
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=5
2018-06-27 11:03:33 +00:00
Todd R
4f76900e5f Accepting request 532451 from home:StefanBruens:branches:devel:languages:python
- Add WEBSOCKETS_TESTS_TIMEOUT_FACTOR=5, otherwise tests in several
  projects fail

OBS-URL: https://build.opensuse.org/request/show/532451
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=3
2017-10-09 00:58:40 +00:00
Dominique Leuenberger
a6d27bf09d Accepting request 522412 from devel:languages:python
singlespec version of python3-websockets

OBS-URL: https://build.opensuse.org/request/show/522412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-websockets?expand=0&rev=1
2017-09-11 14:18:33 +00:00
Todd R
6dba30eff3 Accepting request 522408 from home:TheBlackCat:branches:devel:languages:python
singlespec version of python3-websockets

OBS-URL: https://build.opensuse.org/request/show/522408
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=1
2017-09-08 18:35:22 +00:00