| |
@@ -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 @@
|
| |
# 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 @@
|
| |
%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 <cstratak@redhat.com> - 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 <python-maint@redhat.com> - 0.3.1-29
|
| |
- Rebuilt for Python 3.11
|
| |
|
| |
Utilize unittest instead of the deprecated nose test runner
Change to the github tarball which includes the tests
Use mock from the stdlib instead of the standalone package