python-proton-vpn-api-core/python-proton-vpn-api-core.spec

90 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

- Conflicts python-proton-vpn-connection - Conflicts python-proton-vpn-killswitch - Conflicts python-proton-vpn-logger - Update to 0.35.5 * Fix regression sending errors to sentry. * Fix to rpm package.spec, added accidentally removed Obsoletes statement. * Send all errors to sentry, but swallow api errors. * Merge logger package into this one. * Fix refregresion (logout user on 401 API error). * Catch and send LA errors to sentry. * Import refreshers from app. * Ensure there is a way to disable IPv6. * Change IPv6 default value and move out of the features dict. * Properly configure OpenVPN with IPv6 value. * Pass IPv6 value. * Put changes to fetching with timestamp (If-Modified-Since), behind a feature flag. * Fixes support for 'If-Modified-Since', expiration times. * Fixes support for 'If-Modified-Since' header in server list requests. * This adds support for 'If-Modified-Since' header in server list requests. * Make sure features cant be request after connection as well. * Expose property in VPNConnection to know if features can be applied on active connections. * Tier 0 level users can't control the features they have. So don't send any feature requests for them. * Fix crash after logout * Get rid of VPNConnectorWrapper. * Enable wireguard feature flag by default. * Handle UnicodeDecodeError when loading persisted VPN connection. * Update connection features via local agent if available. * Disconnect and notify the user when the maximum number of sessions is reached. * Handle ExpiredCertificate events. * Update default feature flags and update feature flags interface. * Update credentials in the background * Fix crash initializing VPN connector. * Update VPN credentials when an active VPN connection is found at startup. * Merge connection and kill switch packages into this one. * Improve testing to capture when default value is being passed. * Implement and expose feature flags. * Move local agent management into wireguard backend. * Send CPU architecture following semver's specs. * Switched over to async local agent api. * Attempt to use external local agent package, otherwise fallback to existent one. * Add the architecture in the appversion field for ProtonSSO. * Switch over to automatically generated changelogs for debian and rpm. * Fix sentry error sanitization crash. * Fix certificate duration regression. * Send wireguard certificate to server via local agent. * Increase certificate duration. * Refactor of Settings to ensure settings are only saved when they are changed. * Stop raising exceptions when getting wireguard certificate and it is expired. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=10
2024-10-30 08:33:31 +00:00
#
# spec file for package python-proton-vpn-api-core
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-proton-vpn-api-core
Version: 0.35.5
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}
BuildRequires: %{python_module pip}
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
- Conflicts python-proton-vpn-connection - Conflicts python-proton-vpn-killswitch - Conflicts python-proton-vpn-logger - Update to 0.35.5 * Fix regression sending errors to sentry. * Fix to rpm package.spec, added accidentally removed Obsoletes statement. * Send all errors to sentry, but swallow api errors. * Merge logger package into this one. * Fix refregresion (logout user on 401 API error). * Catch and send LA errors to sentry. * Import refreshers from app. * Ensure there is a way to disable IPv6. * Change IPv6 default value and move out of the features dict. * Properly configure OpenVPN with IPv6 value. * Pass IPv6 value. * Put changes to fetching with timestamp (If-Modified-Since), behind a feature flag. * Fixes support for 'If-Modified-Since', expiration times. * Fixes support for 'If-Modified-Since' header in server list requests. * This adds support for 'If-Modified-Since' header in server list requests. * Make sure features cant be request after connection as well. * Expose property in VPNConnection to know if features can be applied on active connections. * Tier 0 level users can't control the features they have. So don't send any feature requests for them. * Fix crash after logout * Get rid of VPNConnectorWrapper. * Enable wireguard feature flag by default. * Handle UnicodeDecodeError when loading persisted VPN connection. * Update connection features via local agent if available. * Disconnect and notify the user when the maximum number of sessions is reached. * Handle ExpiredCertificate events. * Update default feature flags and update feature flags interface. * Update credentials in the background * Fix crash initializing VPN connector. * Update VPN credentials when an active VPN connection is found at startup. * Merge connection and kill switch packages into this one. * Improve testing to capture when default value is being passed. * Implement and expose feature flags. * Move local agent management into wireguard backend. * Send CPU architecture following semver's specs. * Switched over to async local agent api. * Attempt to use external local agent package, otherwise fallback to existent one. * Add the architecture in the appversion field for ProtonSSO. * Switch over to automatically generated changelogs for debian and rpm. * Fix sentry error sanitization crash. * Fix certificate duration regression. * Send wireguard certificate to server via local agent. * Increase certificate duration. * Refactor of Settings to ensure settings are only saved when they are changed. * Stop raising exceptions when getting wireguard certificate and it is expired. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=10
2024-10-30 08:33:31 +00:00
BuildRequires: %{python_module sentry-sdk}
%endif
- Conflicts python-proton-vpn-connection - Conflicts python-proton-vpn-killswitch - Conflicts python-proton-vpn-logger - Update to 0.35.5 * Fix regression sending errors to sentry. * Fix to rpm package.spec, added accidentally removed Obsoletes statement. * Send all errors to sentry, but swallow api errors. * Merge logger package into this one. * Fix refregresion (logout user on 401 API error). * Catch and send LA errors to sentry. * Import refreshers from app. * Ensure there is a way to disable IPv6. * Change IPv6 default value and move out of the features dict. * Properly configure OpenVPN with IPv6 value. * Pass IPv6 value. * Put changes to fetching with timestamp (If-Modified-Since), behind a feature flag. * Fixes support for 'If-Modified-Since', expiration times. * Fixes support for 'If-Modified-Since' header in server list requests. * This adds support for 'If-Modified-Since' header in server list requests. * Make sure features cant be request after connection as well. * Expose property in VPNConnection to know if features can be applied on active connections. * Tier 0 level users can't control the features they have. So don't send any feature requests for them. * Fix crash after logout * Get rid of VPNConnectorWrapper. * Enable wireguard feature flag by default. * Handle UnicodeDecodeError when loading persisted VPN connection. * Update connection features via local agent if available. * Disconnect and notify the user when the maximum number of sessions is reached. * Handle ExpiredCertificate events. * Update default feature flags and update feature flags interface. * Update credentials in the background * Fix crash initializing VPN connector. * Update VPN credentials when an active VPN connection is found at startup. * Merge connection and kill switch packages into this one. * Improve testing to capture when default value is being passed. * Implement and expose feature flags. * Move local agent management into wireguard backend. * Send CPU architecture following semver's specs. * Switched over to async local agent api. * Attempt to use external local agent package, otherwise fallback to existent one. * Add the architecture in the appversion field for ProtonSSO. * Switch over to automatically generated changelogs for debian and rpm. * Fix sentry error sanitization crash. * Fix certificate duration regression. * Send wireguard certificate to server via local agent. * Increase certificate duration. * Refactor of Settings to ensure settings are only saved when they are changed. * Stop raising exceptions when getting wireguard certificate and it is expired. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=10
2024-10-30 08:33:31 +00:00
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
# sentry-sdk is not mandatory and only available in TW
%if 0%{?suse_version} > 1600
- Conflicts python-proton-vpn-connection - Conflicts python-proton-vpn-killswitch - Conflicts python-proton-vpn-logger - Update to 0.35.5 * Fix regression sending errors to sentry. * Fix to rpm package.spec, added accidentally removed Obsoletes statement. * Send all errors to sentry, but swallow api errors. * Merge logger package into this one. * Fix refregresion (logout user on 401 API error). * Catch and send LA errors to sentry. * Import refreshers from app. * Ensure there is a way to disable IPv6. * Change IPv6 default value and move out of the features dict. * Properly configure OpenVPN with IPv6 value. * Pass IPv6 value. * Put changes to fetching with timestamp (If-Modified-Since), behind a feature flag. * Fixes support for 'If-Modified-Since', expiration times. * Fixes support for 'If-Modified-Since' header in server list requests. * This adds support for 'If-Modified-Since' header in server list requests. * Make sure features cant be request after connection as well. * Expose property in VPNConnection to know if features can be applied on active connections. * Tier 0 level users can't control the features they have. So don't send any feature requests for them. * Fix crash after logout * Get rid of VPNConnectorWrapper. * Enable wireguard feature flag by default. * Handle UnicodeDecodeError when loading persisted VPN connection. * Update connection features via local agent if available. * Disconnect and notify the user when the maximum number of sessions is reached. * Handle ExpiredCertificate events. * Update default feature flags and update feature flags interface. * Update credentials in the background * Fix crash initializing VPN connector. * Update VPN credentials when an active VPN connection is found at startup. * Merge connection and kill switch packages into this one. * Improve testing to capture when default value is being passed. * Implement and expose feature flags. * Move local agent management into wireguard backend. * Send CPU architecture following semver's specs. * Switched over to async local agent api. * Attempt to use external local agent package, otherwise fallback to existent one. * Add the architecture in the appversion field for ProtonSSO. * Switch over to automatically generated changelogs for debian and rpm. * Fix sentry error sanitization crash. * Fix certificate duration regression. * Send wireguard certificate to server via local agent. * Increase certificate duration. * Refactor of Settings to ensure settings are only saved when they are changed. * Stop raising exceptions when getting wireguard certificate and it is expired. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=10
2024-10-30 08:33:31 +00:00
Requires: python-sentry-sdk
%endif
- Conflicts python-proton-vpn-connection - Conflicts python-proton-vpn-killswitch - Conflicts python-proton-vpn-logger - Update to 0.35.5 * Fix regression sending errors to sentry. * Fix to rpm package.spec, added accidentally removed Obsoletes statement. * Send all errors to sentry, but swallow api errors. * Merge logger package into this one. * Fix refregresion (logout user on 401 API error). * Catch and send LA errors to sentry. * Import refreshers from app. * Ensure there is a way to disable IPv6. * Change IPv6 default value and move out of the features dict. * Properly configure OpenVPN with IPv6 value. * Pass IPv6 value. * Put changes to fetching with timestamp (If-Modified-Since), behind a feature flag. * Fixes support for 'If-Modified-Since', expiration times. * Fixes support for 'If-Modified-Since' header in server list requests. * This adds support for 'If-Modified-Since' header in server list requests. * Make sure features cant be request after connection as well. * Expose property in VPNConnection to know if features can be applied on active connections. * Tier 0 level users can't control the features they have. So don't send any feature requests for them. * Fix crash after logout * Get rid of VPNConnectorWrapper. * Enable wireguard feature flag by default. * Handle UnicodeDecodeError when loading persisted VPN connection. * Update connection features via local agent if available. * Disconnect and notify the user when the maximum number of sessions is reached. * Handle ExpiredCertificate events. * Update default feature flags and update feature flags interface. * Update credentials in the background * Fix crash initializing VPN connector. * Update VPN credentials when an active VPN connection is found at startup. * Merge connection and kill switch packages into this one. * Improve testing to capture when default value is being passed. * Implement and expose feature flags. * Move local agent management into wireguard backend. * Send CPU architecture following semver's specs. * Switched over to async local agent api. * Attempt to use external local agent package, otherwise fallback to existent one. * Add the architecture in the appversion field for ProtonSSO. * Switch over to automatically generated changelogs for debian and rpm. * Fix sentry error sanitization crash. * Fix certificate duration regression. * Send wireguard certificate to server via local agent. * Increase certificate duration. * Refactor of Settings to ensure settings are only saved when they are changed. * Stop raising exceptions when getting wireguard certificate and it is expired. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=10
2024-10-30 08:33:31 +00:00
Conflicts: python-proton-vpn-connection
Conflicts: python-proton-vpn-killswitch
Conflicts: python-proton-vpn-logger
BuildArch: noarch
%python_subpackages
%description
This package contains a facade to the other Proton VPN components, exposing a uniform API for Proton VPN client.
%prep
%autosetup -p1 -n python-proton-vpn-api-core-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%if 0%{?suse_version} > 1600
# Failing tests, needs to be investigated
- Conflicts python-proton-vpn-connection - Conflicts python-proton-vpn-killswitch - Conflicts python-proton-vpn-logger - Update to 0.35.5 * Fix regression sending errors to sentry. * Fix to rpm package.spec, added accidentally removed Obsoletes statement. * Send all errors to sentry, but swallow api errors. * Merge logger package into this one. * Fix refregresion (logout user on 401 API error). * Catch and send LA errors to sentry. * Import refreshers from app. * Ensure there is a way to disable IPv6. * Change IPv6 default value and move out of the features dict. * Properly configure OpenVPN with IPv6 value. * Pass IPv6 value. * Put changes to fetching with timestamp (If-Modified-Since), behind a feature flag. * Fixes support for 'If-Modified-Since', expiration times. * Fixes support for 'If-Modified-Since' header in server list requests. * This adds support for 'If-Modified-Since' header in server list requests. * Make sure features cant be request after connection as well. * Expose property in VPNConnection to know if features can be applied on active connections. * Tier 0 level users can't control the features they have. So don't send any feature requests for them. * Fix crash after logout * Get rid of VPNConnectorWrapper. * Enable wireguard feature flag by default. * Handle UnicodeDecodeError when loading persisted VPN connection. * Update connection features via local agent if available. * Disconnect and notify the user when the maximum number of sessions is reached. * Handle ExpiredCertificate events. * Update default feature flags and update feature flags interface. * Update credentials in the background * Fix crash initializing VPN connector. * Update VPN credentials when an active VPN connection is found at startup. * Merge connection and kill switch packages into this one. * Improve testing to capture when default value is being passed. * Implement and expose feature flags. * Move local agent management into wireguard backend. * Send CPU architecture following semver's specs. * Switched over to async local agent api. * Attempt to use external local agent package, otherwise fallback to existent one. * Add the architecture in the appversion field for ProtonSSO. * Switch over to automatically generated changelogs for debian and rpm. * Fix sentry error sanitization crash. * Fix certificate duration regression. * Send wireguard certificate to server via local agent. * Increase certificate duration. * Refactor of Settings to ensure settings are only saved when they are changed. * Stop raising exceptions when getting wireguard certificate and it is expired. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=10
2024-10-30 08:33:31 +00:00
# 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
- Conflicts python-proton-vpn-connection - Conflicts python-proton-vpn-killswitch - Conflicts python-proton-vpn-logger - Update to 0.35.5 * Fix regression sending errors to sentry. * Fix to rpm package.spec, added accidentally removed Obsoletes statement. * Send all errors to sentry, but swallow api errors. * Merge logger package into this one. * Fix refregresion (logout user on 401 API error). * Catch and send LA errors to sentry. * Import refreshers from app. * Ensure there is a way to disable IPv6. * Change IPv6 default value and move out of the features dict. * Properly configure OpenVPN with IPv6 value. * Pass IPv6 value. * Put changes to fetching with timestamp (If-Modified-Since), behind a feature flag. * Fixes support for 'If-Modified-Since', expiration times. * Fixes support for 'If-Modified-Since' header in server list requests. * This adds support for 'If-Modified-Since' header in server list requests. * Make sure features cant be request after connection as well. * Expose property in VPNConnection to know if features can be applied on active connections. * Tier 0 level users can't control the features they have. So don't send any feature requests for them. * Fix crash after logout * Get rid of VPNConnectorWrapper. * Enable wireguard feature flag by default. * Handle UnicodeDecodeError when loading persisted VPN connection. * Update connection features via local agent if available. * Disconnect and notify the user when the maximum number of sessions is reached. * Handle ExpiredCertificate events. * Update default feature flags and update feature flags interface. * Update credentials in the background * Fix crash initializing VPN connector. * Update VPN credentials when an active VPN connection is found at startup. * Merge connection and kill switch packages into this one. * Improve testing to capture when default value is being passed. * Implement and expose feature flags. * Move local agent management into wireguard backend. * Send CPU architecture following semver's specs. * Switched over to async local agent api. * Attempt to use external local agent package, otherwise fallback to existent one. * Add the architecture in the appversion field for ProtonSSO. * Switch over to automatically generated changelogs for debian and rpm. * Fix sentry error sanitization crash. * Fix certificate duration regression. * Send wireguard certificate to server via local agent. * Increase certificate duration. * Refactor of Settings to ensure settings are only saved when they are changed. * Stop raising exceptions when getting wireguard certificate and it is expired. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=10
2024-10-30 08:33:31 +00:00
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/proton
%{python_sitelib}/proton_vpn_api_core-%{version}*-info
%changelog