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:
41
python-infinity-no-six.patch
Normal file
41
python-infinity-no-six.patch
Normal 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
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 7 09:49:08 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- do not require python-six
|
||||
- added patches
|
||||
fix https://github.com/kvesteri/infinity/issues/7
|
||||
+ python-infinity-no-six.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 27 02:40:34 UTC 2020 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-infinity
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-infinity
|
||||
Version: 1.5
|
||||
@@ -24,8 +23,10 @@ Release: 0
|
||||
Summary: All-in-one infinity value for Python
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/kvesteri/infinity
|
||||
URL: https://github.com/kvesteri/infinity
|
||||
Source: https://files.pythonhosted.org/packages/source/i/infinity/infinity-%{version}.tar.gz
|
||||
# https://github.com/kvesteri/infinity/issues/7
|
||||
Patch0: python-infinity-no-six.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -44,6 +45,7 @@ All-in-one infinity value for Python. Can be compared to any object.
|
||||
|
||||
%prep
|
||||
%setup -q -n infinity-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -60,6 +62,8 @@ All-in-one infinity value for Python. Can be compared to any object.
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/__pycache__
|
||||
%{python_sitelib}/*.py
|
||||
%{python_sitelib}/infinity*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user