From 6fe93040467795ac5ecf725dd1ba397ea7e0045b809514a080c8bea9775d347d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 30 Sep 2024 13:05:48 +0000 Subject: [PATCH] - update to 0.3.3: * Amend type hinting * ProtonSSO : allow selecting the keyring backend (unspecified: load default keyring) * External contribution from 'wesinator' : fix hostname segment regex * Minor changes following feedback/review * Allow clients to support 'If-Modified-Since' * Make logs less verbose OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proton-core?expand=0&rev=8 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-proton-core.changes | 37 +++++++++++++++++++ python-proton-core.spec | 76 ++++++++++++++++++++++++++++++++++++++ v0.1.16.tar.gz | 3 ++ v0.2.0.tar.gz | 3 ++ v0.3.3.tar.gz | 3 ++ 7 files changed, 146 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-proton-core.changes create mode 100644 python-proton-core.spec create mode 100644 v0.1.16.tar.gz create mode 100644 v0.2.0.tar.gz create mode 100644 v0.3.3.tar.gz 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-core.changes b/python-proton-core.changes new file mode 100644 index 0000000..fe1d1b2 --- /dev/null +++ b/python-proton-core.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Mon Sep 30 13:04:30 UTC 2024 - Dirk Müller + +- update to 0.3.3: + * Amend type hinting + * ProtonSSO : allow selecting the keyring backend (unspecified: + load default keyring) + * External contribution from 'wesinator' : fix hostname segment + regex + * Minor changes following feedback/review + * Allow clients to support 'If-Modified-Since' + * Make logs less verbose + +------------------------------------------------------------------- +Mon Aug 5 19:00:36 UTC 2024 - Dirk Müller + +- update to 0.2.0: + * Add dynamic module validation + * Sanitize DNS response + * Fix invalid modulus error when logging in + * Session forking + +------------------------------------------------------------------- +Fri Mar 15 10:33:01 UTC 2024 - Alexandre Vicenzi + +- Update source tarball URL +- Build package for Leap + +------------------------------------------------------------------- +Thu Feb 15 08:53:08 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + +------------------------------------------------------------------- +Thu Feb 8 15:06:05 UTC 2024 - Alexandre Vicenzi + +- Initial revision diff --git a/python-proton-core.spec b/python-proton-core.spec new file mode 100644 index 0000000..610124e --- /dev/null +++ b/python-proton-core.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-proton-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 +%{?sle15_python_module_pythons} +Name: python-proton-core +Version: 0.3.3 +Release: 0 +Summary: Proton VPN core library +License: GPL-3.0-or-later +Group: Development/Languages/Python +URL: https://github.com/ProtonVPN/python-proton-core +Source: https://github.com/ProtonVPN/python-proton-core/archive/refs/tags/v%{version}.tar.gz +BuildRequires: %{python_module aiohttp} +BuildRequires: %{python_module bcrypt} +BuildRequires: %{python_module gnupg} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pyOpenSSL} +BuildRequires: %{python_module pyotp} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: unzip +BuildRequires: pkgconfig(libopenssl) +Requires: python-aiohttp +Requires: python-bcrypt +Requires: python-gnupg +Requires: python-pyOpenSSL +Requires: python-requests +Conflicts: python-proton-client +BuildArch: noarch +%python_subpackages + +%description +This package contains core logic used by the other Proton components. + +%prep +%autosetup -p1 -n python-proton-core-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# skip some tests as OBS has no network access +%pytest tests --ignore=tests/test_alternativerouting.py --ignore=tests/test_autotransport.py --ignore=tests/test_protonsso.py --ignore=tests/test_session.py --ignore=tests/test_tlsverification.py + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/proton +%{python_sitelib}/proton_core-%{version}*-info + +%changelog diff --git a/v0.1.16.tar.gz b/v0.1.16.tar.gz new file mode 100644 index 0000000..1654763 --- /dev/null +++ b/v0.1.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:713862400e980889153a1ae62fb579830801b7e8f7b9dd5982531511eb3c27de +size 70945 diff --git a/v0.2.0.tar.gz b/v0.2.0.tar.gz new file mode 100644 index 0000000..565688f --- /dev/null +++ b/v0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a13790fab695477d3319453e324aff73a29da34f3821e2cbc1960051b817dbf6 +size 74162 diff --git a/v0.3.3.tar.gz b/v0.3.3.tar.gz new file mode 100644 index 0000000..163daf1 --- /dev/null +++ b/v0.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9837199b8fa35e1b29260f863e5bc8718f18eebab580a9ff1707319151ae51e7 +size 76026