commit 51ca6cd39f9229139eed5d89680a25a1550276ea9f03dfc64b696c2d84a5beb1 Author: Matej Cepl Date: Fri Feb 16 17:14:37 2024 +0000 Accepting request 1147041 from home:avicenzi:protonvpn Add python-proton-vpn-api-core for Proton VPN OBS-URL: https://build.opensuse.org/request/show/1147041 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-vpn-api-core?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-proton-vpn-api-core.changes b/python-proton-vpn-api-core.changes new file mode 100644 index 0000000..db15c6f --- /dev/null +++ b/python-proton-vpn-api-core.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Feb 9 10:30:27 UTC 2024 - Alexandre Vicenzi + +- Initial revision diff --git a/python-proton-vpn-api-core.spec b/python-proton-vpn-api-core.spec new file mode 100644 index 0000000..b7ec059 --- /dev/null +++ b/python-proton-vpn-api-core.spec @@ -0,0 +1,75 @@ +# +# 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/ +# + + +%define skip_python2 1 +Name: python-proton-vpn-api-core +Version: 0.20.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 base >= 3.8} +BuildRequires: %{python_module distro} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module proton-core} +BuildRequires: %{python_module proton-vpn-connection} +BuildRequires: %{python_module proton-vpn-killswitch} +BuildRequires: %{python_module proton-vpn-logger} +BuildRequires: %{python_module proton-vpn-session} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +Requires: python-base >= 3.8 +Requires: python-distro +Requires: python-proton-core +Requires: python-proton-vpn-connection +Requires: python-proton-vpn-killswitch +Requires: python-proton-vpn-logger +Requires: python-proton-vpn-session +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 +%pytest tests + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/proton +%{python_sitelib}/proton_vpn_api_core-%{version}*-info + +%changelog diff --git a/v0.20.3.tar.gz b/v0.20.3.tar.gz new file mode 100644 index 0000000..b7325dd --- /dev/null +++ b/v0.20.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80a137ec4be07e016bbe77bd75e51b5abdf232cc4f584dd5bc5e2c95419ab5b1 +size 27003