diff --git a/PyFxA-0.6.0.tar.gz b/PyFxA-0.6.0.tar.gz deleted file mode 100644 index 4b41b2c..0000000 --- a/PyFxA-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d511b6f43a9445587c609a138636d378de76661561116e1f4259fcec9d09b42b -size 35446 diff --git a/PyFxA-0.7.1.tar.gz b/PyFxA-0.7.1.tar.gz new file mode 100644 index 0000000..c12ef2f --- /dev/null +++ b/PyFxA-0.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:616689486d8d63956aa40836cffafde6e7590cdeb200badabaaf3c17d5b26cce +size 36451 diff --git a/python-PyFxA.changes b/python-PyFxA.changes index 07d93ac..e17770c 100644 --- a/python-PyFxA.changes +++ b/python-PyFxA.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Mar 26 12:47:52 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-PyFxA.spec b/python-PyFxA.spec index ec25dda..94f1c2c 100644 --- a/python-PyFxA.spec +++ b/python-PyFxA.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyFxA # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017-2018 The openSUSE Project. # # All modifications and additions to the file contributed by third parties @@ -18,16 +18,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with test Name: python-PyFxA -Version: 0.6.0 +Version: 0.7.1 Release: 0 Summary: Firefox Accounts client library for Python License: MPL-2.0 Group: Development/Languages/Python -Url: https://github.com/mozilla/PyFxA +URL: https://github.com/mozilla/PyFxA Source: https://files.pythonhosted.org/packages/source/P/PyFxA/PyFxA-%{version}.tar.gz +BuildRequires: %{python_module PyBrowserID} +BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module hawkauthlib} +BuildRequires: %{python_module mock} +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 six} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyBrowserID @@ -35,15 +43,8 @@ Requires: python-cryptography Requires: python-requests >= 2.4.2 Requires: python-six BuildArch: noarch -%if %{with test} -BuildRequires: %{python_module PyBrowserID} -BuildRequires: %{python_module cryptography} -BuildRequires: %{python_module grequests} -BuildRequires: %{python_module hawkauthlib} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module requests >= 2.4.2} -BuildRequires: %{python_module responses} -BuildRequires: %{python_module six} +%ifpython3 +Requires: python-setuptools %endif %python_subpackages @@ -53,6 +54,9 @@ This is python library for interacting with the Firefox Accounts ecosystem. %prep %setup -q -n PyFxA-%{version} sed -i -e '/^#!\/usr\/bin\/env python/d' fxa/__main__.py +# Remove online tests +rm -f fxa/tests/test_core.py +find ./ -type f -exec chmod -x {} + %build %python_build @@ -61,10 +65,9 @@ sed -i -e '/^#!\/usr\/bin\/env python/d' fxa/__main__.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +# test_monkey_patch_for_gevent gevent no longer packaged as it is deprecated +%pytest -k 'not test_monkey_patch_for_gevent' fxa/tests/ %files %{python_files} %doc CHANGES.txt README.rst