#7 Fix Python 3.11 compatibility wrt random.randint()
Merged 2 years ago by churchyard. Opened 2 years ago by churchyard.
rpms/ churchyard/python-numpy-stl python3.11  into  rawhide

file added
+22
@@ -0,0 +1,22 @@ 

+ From 988630fae0de7e561b60e62a41a6fff8aa6b4fbf Mon Sep 17 00:00:00 2001

+ From: Rick van Hattem <Wolph@wol.ph>

+ Date: Thu, 3 Feb 2022 13:47:04 +0100

+ Subject: [PATCH] Fixed Python 3.11 compatibility. Fixes #188

+ 

+ ---

+  stl/main.py | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/stl/main.py b/stl/main.py

+ index aa15390..60db581 100644

+ --- a/stl/main.py

+ +++ b/stl/main.py

+ @@ -29,7 +29,7 @@ def _get_name(args):

+          args.name,

+          getattr(args.outfile, 'name', None),

+          getattr(args.infile, 'name', None),

+ -        'numpy-stl-%06d' % random.randint(0, 1e6),

+ +        'numpy-stl-%06d' % random.randint(0, 1_000_000),

+      ]

+  

+      for name in names:  # pragma: no branch

file modified
+5 -1
@@ -7,7 +7,11 @@ 

  

  License:        BSD

  URL:            https://github.com/WoLpH/numpy-stl/

- Source0:        %{pypi_source}

+ Source:         %{pypi_source}

+ 

+ # Fix Python 3.11 compatibility wrt random.randint()

+ Patch:          https://github.com/WoLpH/numpy-stl/commit/988630fae0.patch

+ 

  BuildRequires:  gcc

  

  BuildRequires:  python3-devel

no initial comment

Pull-Request has been merged by churchyard

2 years ago
Metadata