15
0
forked from pool/python-dist

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dist?expand=0&rev=8
This commit is contained in:
2025-05-26 11:59:14 +00:00
committed by Git OBS Bridge
commit 4486296b66
6 changed files with 146 additions and 0 deletions

30
python-dist-no-six.patch Normal file
View File

@@ -0,0 +1,30 @@
Index: dist-1.0.3/tests/test_performance.py
===================================================================
--- dist-1.0.3.orig/tests/test_performance.py
+++ dist-1.0.3/tests/test_performance.py
@@ -1,8 +1,6 @@
import math
from timeit import default_timer as timer
-from six.moves import xrange
-
import dist
@@ -27,14 +25,14 @@ def test_positive_scenario():
def test_performance():
start_time = timer()
- for _ in xrange(10000000):
+ for _ in range(10000000):
pure_py_dist(10.1, 12.1, 10.1, 10.1)
pure_py_time = timer() - start_time
start_time = timer()
- for _ in xrange(10000000):
+ for _ in range(10000000):
dist.compute(10.1, 12.1, 10.1, 10.1)
ext_time = timer() - start_time