Accepting request 1225161 from network:vpn

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1225161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-proton-vpn-api-core?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-11-20 16:00:02 +00:00 committed by Git OBS Bridge
commit 679f9a71d2
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 12 12:07:11 UTC 2024 - Alexandre Vicenzi <alexandre.vicenzi@suse.com>
- Enable sentry-sdk only in Tumbleweed
* Not available in Leap/SLE
-------------------------------------------------------------------
Thu Oct 24 00:35:05 UTC 2024 - Yunhe Guo <i@guoyunhe.me>

View File

@ -34,7 +34,10 @@ BuildRequires: %{python_module proton-core}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
# sentry-sdk is not mandatory and only available in TW
%if 0%{?suse_version} > 1600
BuildRequires: %{python_module sentry-sdk}
%endif
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: pkgconfig
@ -44,7 +47,10 @@ Requires: python-PyNaCl
Requires: python-cryptography
Requires: python-distro
Requires: python-proton-core
# sentry-sdk is not mandatory and only available in TW
%if 0%{?suse_version} > 1600
Requires: python-sentry-sdk
%endif
Conflicts: python-proton-vpn-connection
Conflicts: python-proton-vpn-killswitch
Conflicts: python-proton-vpn-logger
@ -65,8 +71,14 @@ This package contains a facade to the other Proton VPN components, exposing a un
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%if 0%{?suse_version} > 1600
# Failing tests, needs to be investigated
# See https://github.com/ProtonVPN/python-proton-vpn-api-core/issues/4
%pytest tests --deselect="tests/connection/test_vpnconfiguration.py"
%pytest tests --ignore=tests/connection/test_vpnconfiguration.py
%else
# sentry-sdk is not mandatory and only available in TW
%pytest tests --ignore=tests/connection/test_vpnconfiguration.py --ignore=tests/core/test_usage.py
%endif
%files %{python_files}
%license LICENSE