diff --git a/oauthlib-3.2.1.tar.gz b/oauthlib-3.2.1.tar.gz deleted file mode 100644 index 111fdb735c67ea6acc2b736cfc87ec414bad11d1..0000000000000000000000000000000000000000 Binary files a/oauthlib-3.2.1.tar.gz and /dev/null differ diff --git a/python-oauthlib.spec b/python-oauthlib.spec index 4558d6ae9084b6e867f19702739fc6190a85f248..80ab7c7035d3741660a74901e65dab96e76ee8af 100644 --- a/python-oauthlib.spec +++ b/python-oauthlib.spec @@ -2,14 +2,14 @@ %global modname oauthlib Name: python-oauthlib -Version: 3.2.1 -Release: %{anolis_release}%{dist} +Version: 3.2.2 +Release: %{anolis_release}%{?dist} Summary: An implementation of the OAuth request-signing logic License: BSD URL: https://github.com/oauthlib/oauthlib -Source0: %{modname}-%{version}.tar.gz +Source0: https://github.com/oauthlib/oauthlib/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch @@ -23,21 +23,9 @@ very little effort. %package -n python3-oauthlib Summary: An implementation of the OAuth request-signing logic -%{?python_provide:%python_provide python3-oauthlib} BuildRequires: python3-devel -BuildRequires: python3-setuptools - -BuildRequires: python3-nose -BuildRequires: python3-mock -BuildRequires: python3-blinker - -BuildRequires: python3-jwt >= 1.6.0 -BuildRequires: python3-cryptography >= 1.4.0 - -%{?python_extras_subpkg:Recommends: python3-oauthlib+signedtoken} -%{!?python_extras_subpkg:Requires: python3-jwt >= 1.6.0} -%{!?python_extras_subpkg:Requires: python3-cryptography >= 1.4.0} +BuildRequires: python3-pytest %description -n python3-oauthlib OAuthLib is a generic utility which implements the logic of OAuth without @@ -47,34 +35,38 @@ onto your favourite web framework. If you're a maintainer of such a library, write a thin veneer on top of OAuthLib and get OAuth support for very little effort. -%{?python_extras_subpkg:%python_extras_subpkg -n python3-oauthlib -i %{python3_sitelib}/%{modname}-%{version}-*.egg-info signedtoken} +%pyproject_extras_subpkg -n python3-oauthlib signedtoken %prep -%setup -q -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} -# python-unittest2 is now provided by "python" package and python-unittest is retired -# adapt setup.py to reflect this fact downstream -sed -i "s/'unittest2', //" setup.py - -# Remove bundled egg-info in case it exists -rm -rf %{modname}.egg-info +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files oauthlib %check -%{__python3} setup.py test - -%files -n python3-oauthlib +echo 'import pytest; __getattr__ = lambda _: pytest.skip("this test needs jwt")' > jwt.py +%{pytest} \ + --ignore tests/oauth2/rfc6749/clients/test_service_application.py \ + --ignore tests/oauth2/rfc6749/clients/test_web_application.py \ + --ignore tests/oauth2/rfc6749/clients/test_mobile_application.py \ + --ignore tests/oauth2/rfc6749/clients/test_legacy_application.py \ + --ignore tests/oauth2/rfc6749/clients/test_backend_application.py \ + --ignore tests/oauth2/rfc6749/test_parameters.py + +%files -n python3-oauthlib -f %{pyproject_files} %doc README.rst -%license LICENSE -%{python3_sitelib}/%{modname}/ -%{python3_sitelib}/%{modname}-%{version}-* %changelog +* Wed Sep 20 2023 Funda Wang - 3.2.2-1 +- New version 3.2.2 + * Sat Dec 17 2022 Chunmei Xu - 3.2.1-1 - update to 3.2.1 diff --git a/v3.2.2.tar.gz b/v3.2.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9693e9cef4f50299f4a8f40e20019772e2ccacbf Binary files /dev/null and b/v3.2.2.tar.gz differ