diff --git a/.gitignore b/.gitignore index c658913..24df2dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /sanction-0.1.4.zip /sanction-0.3.1.tar.gz +/0.4.1.tar.gz diff --git a/python-sanction.spec b/python-sanction.spec index 24a029e..3480ac2 100644 --- a/python-sanction.spec +++ b/python-sanction.spec @@ -2,18 +2,17 @@ %global modname sanction Name: python-sanction -Version: 0.3.1 -Release: 29%{?dist} +Version: 0.4.1 +Release: 1%{?dist} Summary: A simple, lightweight OAuth2 client License: MIT URL: http://pypi.python.org/pypi/sanction -Source0: http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz +Source0: https://github.com/demianbrecht/%{modname}/archive/refs/tags/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-nose %global _description\ @@ -88,6 +87,10 @@ sanction has been tested with the following OAuth2 providers: # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info +# Use the standard library instead of a backport + sed -i -e 's/^import mock/from unittest import mock/' \ + -e 's/^from mock import /from unittest.mock import /' \ + %{modname}/test.py tests.py %build %py3_build @@ -96,14 +99,19 @@ rm -rf %{modname}.egg-info %py3_install %check -PYTHONPATH=$(pwd) nosetests-%{python3_version} +%{python3} -m unittest discover -v %files -n python3-sanction -%doc README.rst LICENSE.txt +%doc README LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}* %changelog +* Wed Jun 08 2022 Charalampos Stratakis - 0.4.1-1 +- Update to 0.4.1 +- Utilize unittest instead of the deprecated nose test runner +- Change to the github tarball + * Mon Jun 13 2022 Python Maint - 0.3.1-29 - Rebuilt for Python 3.11 diff --git a/sources b/sources index 3d1dd01..b9205cd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6f65800509a554e1ffb72f58358a854f sanction-0.3.1.tar.gz +SHA512 (0.4.1.tar.gz) = a4c9df7b69a5bb37edd2b0071fbb35c0577c8daa7f2c9715240fb76f3f9b2217a4cefe2afc55845d20d81ffb8bde6c9281301cde19b3e2b0b5ec7a4cd06fe6ba