15
0
forked from pool/python-PyFxA

- Update to version 0.8.1

* Fixes issue with BrowserID removal
- from version 0.8.0
  * Remove BrowserID Support
- Add support for libalternatives
- Use Python 3.11 on SLE-15 by default
- Update BuildRequires and Requires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyFxA?expand=0&rev=32
This commit is contained in:
2025-11-18 07:57:45 +00:00
committed by Git OBS Bridge
commit d2bc835467
6 changed files with 265 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
pyfxa-0.7.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:753b161566aa5fa632a4d273f564a573126560eb2d993bb6660386dd13d2562c
size 43683

3
pyfxa-0.8.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:df3c575b314e8d67275fc8404294731a5cd39a75e36639fd8c5f8c76c1ee1a4c
size 39903

128
python-PyFxA.changes Normal file
View File

@@ -0,0 +1,128 @@
-------------------------------------------------------------------
Mon Nov 17 15:56:25 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 0.8.1
* Fixes issue with BrowserID removal
- from version 0.8.0
* Remove BrowserID Support
- Add support for libalternatives
- Use Python 3.11 on SLE-15 by default
- Update BuildRequires and Requires from pyproject.toml
-------------------------------------------------------------------
Tue Nov 5 12:22:50 UTC 2024 - pgajdos@suse.com
- version update to 0.7.9
* Python3 support
* Add support for v2 password hashes
* Updated to pyproject.toml
* Updated libraries
-------------------------------------------------------------------
Thu Mar 21 17:09:04 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.7.8:
* Add retries to the APIClient session
-------------------------------------------------------------------
Wed Apr 6 10:23:23 UTC 2022 - pgajdos@suse.com
- python-mock is not required for build
-------------------------------------------------------------------
Mon Feb 22 14:42:08 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Drop broken %ifpython3 macro, we don't need setuptools during runtime
-------------------------------------------------------------------
Tue Sep 22 18:46:00 UTC 2020 - Antoine Belvire <antoine.belvire@opensuse.org>
- Update to version 0.7.7:
* Fix incorrect validation of JWKs passed to oauth.Client
constructor, which was actually *preventing* the caller from
setting a correct value rather than checking that they did so.
- Fix check section: Use double quotes when defining the list of
tests since single quotes mess with the pytest macro.
-------------------------------------------------------------------
Sat Jul 11 13:33:33 UTC 2020 - Antoine Belvire <antoine.belvire@opensuse.org>
- Update to version 0.7.6:
* Add ability to configure a fixed list of JWT access token keys,
by passing them as an argument to `oauth.Client()` rather than
fetching them at runtime from the server.
* Fix verification of JWT access token `typ` header.
* Fix verification of `scope` list obtained from a JWT access
token.
- Changes from version 0.7.5:
* Add support for `reason` and `verification_method` keyword
arguments to the `login` method.
- Changes from version 0.7.4:
* Perform more complete checking of the `state` parameter when
authorizing an OAuth code.
* When verifying OAuth access tokens, try to verify them locally
as a JWT rather than passing them to the remote verification
endpoint.
- Add new dependency: PyJWT.
- Update existing dependency: six >= 1.14.
- Update list of excluded tests.
-------------------------------------------------------------------
Wed May 20 07:26:28 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Jul 26 07:07:23 UTC 2019 - Antoine Belvire <antoine.belvire@opensuse.org>
- Update to version 0.7.3:
* Allow specifying a `ttl` when redeeming an authorization code.
-------------------------------------------------------------------
Mon Jun 3 18:34:02 UTC 2019 - Antoine Belvire <antoine.belvire@opensuse.org>
- Update to version 0.7.2:
* Several cleans for Python3 compatibility.
* Fix a bug which could accidentally introduce multiple slashes
into the result of oauth.Client.get_redirect_url.
-------------------------------------------------------------------
Tue Mar 26 12:47:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.7.1:
* Fix test bustage due to session verification.
* Add support for TOTP.
- Add missing deps
- Enable tests
-------------------------------------------------------------------
Tue Dec 4 12:52:13 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Mon Aug 13 13:15:39 UTC 2018 - mcepl@suse.com
- Remove dependency on unittest2
-------------------------------------------------------------------
Sun May 13 10:04:02 UTC 2018 - antoine.belvire@opensuse.org
- Update to version 0.6.0:
* Add support for PKCE challenge and response in the OAuth flow.
* Add ability to supply `keys_jwk` when starting an OAuth flow.
* Improve scope-matching logic based on new FxA testcases,
including handling of URL-format scopes.
-------------------------------------------------------------------
Fri Jan 12 06:33:53 UTC 2018 - antoine.belvire@opensuse.org
- Update to version 0.5.0:
* Add ability to login with unblock codes.
* Tell testrunners to ignore some test helper utilities.
-------------------------------------------------------------------
Sat Dec 2 10:33:45 UTC 2017 - antoine.belvire@opensuse.org
- Initial package: python-PyFxA 0.4.0.

107
python-PyFxA.spec Normal file
View File

@@ -0,0 +1,107 @@
#
# spec file for package python-PyFxA
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2017-2018 The openSUSE Project.
#
# 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/
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-PyFxA
Version: 0.8.1
Release: 0
Summary: Firefox Accounts client library for Python
License: MPL-2.0
Group: Development/Languages/Python
URL: https://github.com/mozilla/PyFxA
Source: https://files.pythonhosted.org/packages/source/P/PyFxA/pyfxa-%{version}.tar.gz
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module hawkauthlib}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyotp}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.4.2}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyJWT
Requires: python-cryptography
Requires: python-hawkauthlib
Requires: python-requests >= 2.4.2
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
%endif
BuildArch: noarch
%python_subpackages
%description
This is python library for interacting with the Firefox Accounts ecosystem.
%prep
%autosetup -p1 -n pyfxa-%{version}
sed -i -e '/^#!\/usr\/bin\/env python/d' fxa/__main__.py
find ./ -type f -exec chmod -x {} +
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/fxa-client
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Exclude tests which require network connection +
# deprecated test_monkey_patch_for_gevent
includedTests="\
not TestAuthClientAuthorizeToken and\
not TestAuthClientVerifyCode and\
not TestCachedClient and\
not TestCoreClient and\
not TestCoreClientSession and\
not TestJwtToken and\
not test_monkey_patch_for_gevent"
%pytest -k "${includedTests}" fxa/tests/
%if %{with libalternatives}
%pre
%python_libalternatives_reset_alternative fxa-client
%else
%post
%python_install_alternative fxa-client
%postun
%python_uninstall_alternative fxa-client
%endif
%files %{python_files}
%doc CHANGES.txt README.rst
%python_alternative %{_bindir}/fxa-client
%{python_sitelib}/fxa
%{python_sitelib}/pyfxa-%{version}.dist-info
%changelog