From a0e1951ba30529d120d32a4b575b5492c68faa0dfec40582cd89534d7d494f76 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Mon, 31 Mar 2025 10:03:46 +0000 Subject: [PATCH] Accepting request 1265622 from home:raspher:branches:network:vpn - Update to 0.42.3: * Expose method to get DNS IPs based on provided IP version * Always load feature flag cache/defaults * Add a breaks/conflicts clause for python3-proton-vpn-network-manager < 0.12.10 * Fix Certificate Expired error when requesting certificate in pem format * Switch DisplayPortForwarding env var to Feature Flag * Added local agent to OpenVPN, minor bug fix * Added local agent to OpenVPN * Manage file containing forwarded port * Encrypt openvpn certificate private key * Notify connecting/disconnecting state early * Notify subscribers when state context changes * Fix sentry event username masking * Cleanup old feature flags * Update event context so that it passes a forwarded port * Ensure default settings use feature flags even after login the next time they are fetched * Switch default protocol to WireGuard if feature flag is present * Ensure no crash occurs if cache files are non-decodable * Set default expiration time for features flags to expired, so that they're fetched from the API and cached as soon as possible * Emit connection state update after state tasks are completed * Update how time is calculated in logging module * Drop Ubuntu 20.04 support * Added semgrep scanning to CI * Refactor custom DNS * Introduce custom DNS * Automatically generate the changelog files for debian and fedora * Switch to /vpn/v2 API * Use versioned API endpoints * Fix for certificate based authentication for openvpn, feature flag was out of date * Fix certificate expired regression * Enable certificate based authentication for openvpn * Improve logic on when to update location details * Use a 'before_send' callback in sentry to sanitize events in sentry * Update location object after successfully connecting to VPN server via local agent - remove unneeded requires OBS-URL: https://build.opensuse.org/request/show/1265622 OBS-URL: https://build.opensuse.org/package/show/network:vpn/python-proton-vpn-api-core?expand=0&rev=3 --- python-proton-vpn-api-core.changes | 38 ++++++++++++++++++++++++++++++ python-proton-vpn-api-core.spec | 22 +++++++---------- v0.35.5.tar.gz | 3 --- v0.42.3.tar.gz | 3 +++ 4 files changed, 50 insertions(+), 16 deletions(-) delete mode 100644 v0.35.5.tar.gz create mode 100644 v0.42.3.tar.gz diff --git a/python-proton-vpn-api-core.changes b/python-proton-vpn-api-core.changes index 5a2a57d..ee5068c 100644 --- a/python-proton-vpn-api-core.changes +++ b/python-proton-vpn-api-core.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Thu Mar 27 13:14:43 UTC 2025 - Szymon Scholz + +- Update to 0.42.3: + * Expose method to get DNS IPs based on provided IP version + * Always load feature flag cache/defaults + * Add a breaks/conflicts clause for python3-proton-vpn-network-manager < 0.12.10 + * Fix Certificate Expired error when requesting certificate in pem format + * Switch DisplayPortForwarding env var to Feature Flag + * Added local agent to OpenVPN, minor bug fix + * Added local agent to OpenVPN + * Manage file containing forwarded port + * Encrypt openvpn certificate private key + * Notify connecting/disconnecting state early + * Notify subscribers when state context changes + * Fix sentry event username masking + * Cleanup old feature flags + * Update event context so that it passes a forwarded port + * Ensure default settings use feature flags even after login the next time they are fetched + * Switch default protocol to WireGuard if feature flag is present + * Ensure no crash occurs if cache files are non-decodable + * Set default expiration time for features flags to expired, so that they're fetched from the API and cached as soon as possible + * Emit connection state update after state tasks are completed + * Update how time is calculated in logging module + * Drop Ubuntu 20.04 support + * Added semgrep scanning to CI + * Refactor custom DNS + * Introduce custom DNS + * Automatically generate the changelog files for debian and fedora + * Switch to /vpn/v2 API + * Use versioned API endpoints + * Fix for certificate based authentication for openvpn, feature flag was out of date + * Fix certificate expired regression + * Enable certificate based authentication for openvpn + * Improve logic on when to update location details + * Use a 'before_send' callback in sentry to sanitize events in sentry + * Update location object after successfully connecting to VPN server via local agent + ------------------------------------------------------------------- Tue Nov 12 12:07:11 UTC 2024 - Alexandre Vicenzi diff --git a/python-proton-vpn-api-core.spec b/python-proton-vpn-api-core.spec index 26a396a..d89bfbf 100644 --- a/python-proton-vpn-api-core.spec +++ b/python-proton-vpn-api-core.spec @@ -18,14 +18,13 @@ %{?sle15_python_module_pythons} Name: python-proton-vpn-api-core -Version: 0.35.5 +Version: 0.42.3 Release: 0 Summary: Proton VPN API library License: GPL-3.0-or-later Group: Development/Languages/Python URL: https://github.com/ProtonVPN/python-proton-vpn-api-core Source: https://github.com/ProtonVPN/python-proton-vpn-api-core/archive/refs/tags/v%{version}.tar.gz -BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module PyNaCl} BuildRequires: %{python_module cryptography} BuildRequires: %{python_module distro} @@ -42,18 +41,20 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: pkgconfig BuildRequires: python-rpm-macros -Requires: python-Jinja2 Requires: python-PyNaCl Requires: python-cryptography Requires: python-distro -Requires: python-proton-core +Requires: python-proton-core >= 0.4.0 # 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 +Conflicts: proton-vpn < 4.8.2 +Conflicts: python-proton-vpn-network-manager < 0.12.10 +Obsoletes: python-proton-vpn-session <= 0.6.7 +Obsoletes: python-proton-vpn-connection <= 0.14.4 +Obsoletes: python-proton-vpn-killswitch <= 0.4.0 +Obsoletes: python-proton-vpn-logger <= 0.2.1 BuildArch: noarch %python_subpackages @@ -71,14 +72,9 @@ 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 --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 +%pytest tests --ignore=tests/connection/test_vpnconfiguration.py --ignore=tests/connection/test_events.py --ignore=tests/connection/test_persistence.py --ignore=tests/connection/test_publisher.py --ignore=tests/connection/test_states.py --ignore=tests/connection/test_vpnconnection.py --ignore=tests/core/refresher/test_certificate_refresher.py --ignore=tests/core/refresher/test_client_config_refresher.py --ignore=tests/core/refresher/test_feature_flags_refresher.py --ignore=tests/core/refresher/test_server_list_refresher.py --ignore=tests/core/refresher/test_scheduler.py --ignore=tests/core/refresher/test_vpn_data_refresher.py --ignore=tests/core/test_connection.py --ignore=tests/core/test_settings.py --ignore=tests/core/test_usage.py %files %{python_files} %license LICENSE diff --git a/v0.35.5.tar.gz b/v0.35.5.tar.gz deleted file mode 100644 index ed78102..0000000 --- a/v0.35.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f81968376b4dff850497a79cf6b858e5a4aff4976538663eef95d64db47fbd43 -size 115028 diff --git a/v0.42.3.tar.gz b/v0.42.3.tar.gz new file mode 100644 index 0000000..359e2fd --- /dev/null +++ b/v0.42.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59ff220b8f488b0f631fee5e4725e6bbc02d9b668bbca028ca8cedc69e11bb4f +size 107341