From e2cfac6aeb0699e058d28c0a919411fcc27006015dcd651bc584b346bec6b720 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Wed, 13 Nov 2024 08:15:30 +0000 Subject: [PATCH 1/2] Accepting request 1223796 from devel:languages:python Please, take this package into network:vpn, where it belongs more OBS-URL: https://build.opensuse.org/request/show/1223796 OBS-URL: https://build.opensuse.org/package/show/network:vpn/python-proton-vpn-api-core?expand=0&rev=1 From e9f1558cd83de5a886f60acfd679df887bf0a626d18c77e55a942a8ac9908a93 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Wed, 13 Nov 2024 08:20:21 +0000 Subject: [PATCH 2/2] Accepting request 1223863 from home:avicenzi:proton Enable sentry-sdk only in Tumbleweed OBS-URL: https://build.opensuse.org/request/show/1223863 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