17
0

Accepting request 1034121 from home:pgajdos:python

- do not require python-six
- added patches
  fix https://github.com/kvesteri/infinity/issues/7
  + python-infinity-no-six.patch

OBS-URL: https://build.opensuse.org/request/show/1034121
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-infinity?expand=0&rev=7
This commit is contained in:
2022-11-07 13:04:26 +00:00
committed by Git OBS Bridge
parent 8ec4f128fa
commit d152f7f089
3 changed files with 57 additions and 4 deletions

View File

@@ -0,0 +1,41 @@
Index: infinity-1.5/test_infinity.py
===================================================================
--- infinity-1.5.orig/test_infinity.py
+++ infinity-1.5/test_infinity.py
@@ -2,7 +2,6 @@ import operator
from datetime import datetime
import pytest
-import six
from infinity import inf, Infinity
@@ -59,7 +58,7 @@ class TestNegativeInfinity(InfinityTestC
value = -inf
def test_unicode_coercion(self):
- assert six.text_type(-inf) == '-inf'
+ assert str(-inf) == '-inf'
def test_repr(self):
assert repr(-inf) == '-inf'
@@ -125,7 +124,7 @@ class TestNegativeInfinity(InfinityTestC
class TestInfinity(InfinityTestCase):
def test_unicode_coercion(self):
- assert six.text_type(inf) == 'inf'
+ assert str(inf) == 'inf'
def test_float_coercion(self):
assert float(inf) == float('inf')
Index: infinity-1.5/infinity.egg-info/requires.txt
===================================================================
--- infinity-1.5.orig/infinity.egg-info/requires.txt
+++ infinity-1.5/infinity.egg-info/requires.txt
@@ -2,6 +2,5 @@
[test]
pytest>=2.2.3
Pygments>=1.2
-six>=1.4.1
flake8>=2.4.0
isort>=4.2.2