From 63cc69ac8d30c510d2b21c6bed5abac146b0d354e7a5bec130a2d97fa6105247 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Wed, 13 Nov 2024 08:20:21 +0000 Subject: [PATCH] Enable sentry-sdk only in Tumbleweed OBS-URL: https://build.opensuse.org/package/show/network:vpn/python-proton-vpn-api-core?expand=0&rev=2 --- python-proton-vpn-api-core.changes | 6 ++++++ python-proton-vpn-api-core.spec | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/python-proton-vpn-api-core.changes b/python-proton-vpn-api-core.changes index a024d9e..5a2a57d 100644 --- a/python-proton-vpn-api-core.changes +++ b/python-proton-vpn-api-core.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 12 12:07:11 UTC 2024 - Alexandre Vicenzi + +- Enable sentry-sdk only in Tumbleweed + * Not available in Leap/SLE + ------------------------------------------------------------------- Thu Oct 24 00:35:05 UTC 2024 - Yunhe Guo diff --git a/python-proton-vpn-api-core.spec b/python-proton-vpn-api-core.spec index a8049c3..26a396a 100644 --- a/python-proton-vpn-api-core.spec +++ b/python-proton-vpn-api-core.spec @@ -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