required to test python-pycrdt-websocket
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx-ws?expand=0&rev=1
This commit is contained in:
commit
dbae9e96e4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
httpx_ws-0.6.0.tar.gz
Normal file
3
httpx_ws-0.6.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:60218f531fb474a2143af38568f4b7d94ba356780973443365c8e2c87882bb8c
|
||||
size 22627
|
5
python-httpx-ws.changes
Normal file
5
python-httpx-ws.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 30 11:21:19 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Initial specfile for v0.6.0 required to test
|
||||
python-pycrdt-websocket
|
80
python-httpx-ws.spec
Normal file
80
python-httpx-ws.spec
Normal file
@ -0,0 +1,80 @@
|
||||
#
|
||||
# spec file for package python-httpx-ws
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-httpx-ws
|
||||
Version: 0.6.0
|
||||
Release: 0
|
||||
Summary: WebSockets support for HTTPX
|
||||
License: MIT
|
||||
URL: https://github.com/frankie567/httpx-ws
|
||||
Source: https://files.pythonhosted.org/packages/source/h/httpx_ws/httpx_ws-%{version}.tar.gz
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-anyio >= 4
|
||||
Requires: python-httpcore >= 1.0.4
|
||||
Requires: python-httpx >= 0.23.1
|
||||
Requires: python-wsproto
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module anyio >= 4}
|
||||
BuildRequires: %{python_module flaky}
|
||||
BuildRequires: %{python_module httpcore >= 1.0.4}
|
||||
BuildRequires: %{python_module httpx >= 0.23.1}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module starlette}
|
||||
BuildRequires: %{python_module trio}
|
||||
BuildRequires: %{python_module uvicorn}
|
||||
BuildRequires: %{python_module wsproto}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
WebSockets support for HTTPX
|
||||
* [X] Sync and async client
|
||||
* [X] Helper methods to send text, binary and JSON data
|
||||
* [X] Helper methods to receive text, binary and JSON data
|
||||
* [X] Automatic ping/pong answers
|
||||
* [X] HTTPX transport to test WebSockets defined in ASGI apps
|
||||
* [X] Automatic keepalive ping
|
||||
* [X] asyncio and Trio support through AnyIO
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n httpx_ws-%{version}
|
||||
sed -i /addopts/d pyproject.toml
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# hangs inside obs
|
||||
donttest="websockets"
|
||||
# flaky
|
||||
donttest="$donttest or test_async_keepalive_ping"
|
||||
%pytest -k "not ($donttest)"
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/httpx_ws
|
||||
%{python_sitelib}/httpx_ws-%{version}.dist-info
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user