diff --git a/Authlib-1.0.1.tar.gz b/Authlib-1.0.1.tar.gz deleted file mode 100644 index 7739389..0000000 --- a/Authlib-1.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6e74a4846ac36dfc882b3cc2fbd3d9eb410a627f2f2dc11771276655345223b1 -size 139484 diff --git a/authlib-1.0.1.tar.gz b/authlib-1.0.1.tar.gz new file mode 100644 index 0000000..9a2e572 --- /dev/null +++ b/authlib-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e560775b2a829eab380a085cdb61cf52cfaab42bc748c44bd95a3519d35c8fd8 +size 301883 diff --git a/python-Authlib.changes b/python-Authlib.changes index 05f2f5b..fef7e10 100644 --- a/python-Authlib.changes +++ b/python-Authlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 9 22:06:00 UTC 2022 - Matej Cepl + +- Fix tests. + ------------------------------------------------------------------- Thu Apr 21 11:29:21 UTC 2022 - Michael Ströder diff --git a/python-Authlib.spec b/python-Authlib.spec index ad985d3..9a3d1f2 100644 --- a/python-Authlib.spec +++ b/python-Authlib.spec @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%define modname authlib Name: python-Authlib Version: 1.0.1 @@ -25,11 +26,26 @@ Release: 0 Summary: Python library for building OAuth and OpenID Connect servers License: BSD-3-Clause URL: https://authlib.org/ -Source: https://files.pythonhosted.org/packages/source/A/Authlib/Authlib-%{version}.tar.gz +Source: https://github.com/lepture/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros # SECTION test requirements +BuildRequires: %{python_module anyio} +BuildRequires: %{python_module Django} +BuildRequires: %{python_module Flask-SQLAlchemy} +BuildRequires: %{python_module Flask} +BuildRequires: %{python_module SQLAlchemy} +BuildRequires: %{python_module Werkzeug} +BuildRequires: %{python_module cachelib} BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module httpx} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module starlette} +BuildRequires: %{python_module typing_extensions} # /SECTION BuildRequires: fdupes Requires: python-cryptography @@ -41,7 +57,7 @@ BuildArch: noarch A Python library for building OAuth and OpenID Connect servers. %prep -%setup -q -n Authlib-%{version} +%setup -q -n %{modname}-%{version} %build %python_build @@ -50,9 +66,22 @@ A Python library for building OAuth and OpenID Connect servers. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 +$python -mpytest tests/core +$python -mpytest tests/flask +# gh#lepture/authlib#456 +$python -mpytest tests/jose -k 'not (test_dir_alg_xc20p or test_xc20p_content_encryption_decryption)' +export DJANGO_SETTINGS_MODULE=tests.clients.test_django.settings +$python -mpytest tests/clients +# export DJANGO_SETTINGS_MODULE=tests.django.settings +# $python -mpytest tests/django +} + %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/%{modname} +%{python_sitelib}/Authlib-%{version}*-info %changelog