Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-dist for openSUSE:Factory 
checked in at 2023-04-13 14:11:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dist (Old)
 and      /work/SRC/openSUSE:Factory/.python-dist.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dist"

Thu Apr 13 14:11:33 2023 rev:3 rq:1079121 version:1.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dist/python-dist.changes  2021-11-08 
17:25:23.236740711 +0100
+++ /work/SRC/openSUSE:Factory/.python-dist.new.19717/python-dist.changes       
2023-04-13 14:11:37.484598778 +0200
@@ -1,0 +2,8 @@
+Thu Apr 13 10:37:20 UTC 2023 - [email protected]
+
+- do not require six
+- added patches
+  fix https://github.com/duboviy/dist/issues/8
+  + python-dist-no-six.patch
+
+-------------------------------------------------------------------

New:
----
  python-dist-no-six.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dist.spec ++++++
--- /var/tmp/diff_new_pack.aNM23M/_old  2023-04-13 14:11:37.952601466 +0200
+++ /var/tmp/diff_new_pack.aNM23M/_new  2023-04-13 14:11:37.960601512 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-dist
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,9 +25,10 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/duboviy/dist
 Source:         https://github.com/duboviy/dist/archive/%{version}.tar.gz
+# https://github.com/duboviy/dist/issues/8
+Patch0:         python-dist-no-six.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
@@ -42,7 +43,7 @@
 that is almost 3 times faster than similar fast pure python implementation.
 
 %prep
-%setup -q -n dist-%{version}
+%autosetup -p1 -n dist-%{version}
 
 %build
 export CFLAGS="%{optflags}"

++++++ python-dist-no-six.patch ++++++
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

Reply via email to