Accepting request 955714 from devel:languages:python

- filter two irrelevant tests for h11 0.13.0 (gh#python-hyper/wsproto#169)
- fix version dependency on h11

OBS-URL: https://build.opensuse.org/request/show/955714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wsproto?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2022-02-18 22:02:46 +00:00 committed by Git OBS Bridge
commit 7a24c7ff59
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 17 21:00:48 UTC 2022 - Dirk Müller <dmueller@suse.com>
- filter two irrelevant tests for h11 0.13.0 (gh#python-hyper/wsproto#169)
- fix version dependency on h11
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 25 11:33:52 UTC 2021 - John Vandenberg <jayvdb@gmail.com> Mon Jan 25 11:33:52 UTC 2021 - John Vandenberg <jayvdb@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-wsproto # spec file for package python-wsproto
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -29,14 +29,14 @@ Source: https://files.pythonhosted.org/packages/source/w/wsproto/wsproto
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-h11 >= 0.8.1 Requires: python-h11 >= 0.9.0
BuildArch: noarch BuildArch: noarch
%if 0%{?suse_version} <= 1520 %if 0%{?suse_version} <= 1520
BuildRequires: %{python_module dataclasses} BuildRequires: %{python_module dataclasses}
%endif %endif
BuildRequires: (python36-dataclasses if python36-base) BuildRequires: (python36-dataclasses if python36-base)
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module h11 >= 0.8.1} BuildRequires: %{python_module h11 >= 0.9.0}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
%if 0%{?python_version_nodots} <= 36 %if 0%{?python_version_nodots} <= 36
@ -69,7 +69,8 @@ RFC6455 and Compression Extensions for WebSocket via RFC7692
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest # https://github.com/python-hyper/wsproto/issues/169
%pytest -k 'not (test_handshake or test_handshake_extra_headers)'
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst