#2 Update to 0.4.1
Merged 2 years ago by cstratak. Opened 2 years ago by cstratak.
rpms/ cstratak/python-sanction 0.4.1_nose  into  rawhide

file modified
+1
@@ -1,2 +1,3 @@ 

  /sanction-0.1.4.zip

  /sanction-0.3.1.tar.gz

+ /0.4.1.tar.gz

file modified
+14 -6
@@ -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

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- 6f65800509a554e1ffb72f58358a854f  sanction-0.3.1.tar.gz

+ SHA512 (0.4.1.tar.gz) = a4c9df7b69a5bb37edd2b0071fbb35c0577c8daa7f2c9715240fb76f3f9b2217a4cefe2afc55845d20d81ffb8bde6c9281301cde19b3e2b0b5ec7a4cd06fe6ba

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

rebased onto 4573209

2 years ago

Pull-Request has been merged by cstratak

2 years ago