forked from pool/python-billiard
		
	Accepting request 897842 from devel:languages:python
- update to 3.6.4.0: * Issue #309: Add Python 3.9 support to spawnv_passfds() * fix #314 - drop billiard-pr310-py39-fork_exec.patch (upstream) - add billiard-sphinx4.patch: compat with Sphinx 4.x OBS-URL: https://build.opensuse.org/request/show/897842 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-billiard?expand=0&rev=21
This commit is contained in:
		@@ -1,3 +0,0 @@
 | 
				
			|||||||
version https://git-lfs.github.com/spec/v1
 | 
					 | 
				
			||||||
oid sha256:d91725ce6425f33a97dfa72fb6bfef0e47d4652acd98a032bd1a7fbf06d5fa6a
 | 
					 | 
				
			||||||
size 155090
 | 
					 | 
				
			||||||
							
								
								
									
										3
									
								
								billiard-3.6.4.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								billiard-3.6.4.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					version https://git-lfs.github.com/spec/v1
 | 
				
			||||||
 | 
					oid sha256:299de5a8da28a783d51b197d496bef4f1595dd023a93a4f59dde1886ae905547
 | 
				
			||||||
 | 
					size 155303
 | 
				
			||||||
@@ -1,33 +0,0 @@
 | 
				
			|||||||
From a508ebafadcfe2e25554b029593f3e66d01ede6c Mon Sep 17 00:00:00 2001
 | 
					 | 
				
			||||||
From: Victor Stinner <vstinner@python.org>
 | 
					 | 
				
			||||||
Date: Mon, 16 Mar 2020 21:50:36 +0100
 | 
					 | 
				
			||||||
Subject: [PATCH] Issue #309: Add Python 3.9 support to spawnv_passfds()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Python 3.9 added (umask, user, group, extra_groups) parameters to
 | 
					 | 
				
			||||||
_posixsubprocess.fork_exec().
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
 billiard/compat.py | 8 ++++++--
 | 
					 | 
				
			||||||
 ~~tox.ini            | 2 +-~~
 | 
					 | 
				
			||||||
 2 files changed, 7 insertions(+), 3 deletions(-)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
diff --git a/billiard/compat.py b/billiard/compat.py
 | 
					 | 
				
			||||||
index b172d9a..b5ce7c7 100644
 | 
					 | 
				
			||||||
--- a/billiard/compat.py
 | 
					 | 
				
			||||||
+++ b/billiard/compat.py
 | 
					 | 
				
			||||||
@@ -220,10 +220,14 @@ def spawnv_passfds(path, args, passfds):
 | 
					 | 
				
			||||||
         passfds = sorted(passfds)
 | 
					 | 
				
			||||||
         errpipe_read, errpipe_write = os.pipe()
 | 
					 | 
				
			||||||
         try:
 | 
					 | 
				
			||||||
-            return _posixsubprocess.fork_exec(
 | 
					 | 
				
			||||||
+            args = [
 | 
					 | 
				
			||||||
                 args, [fsencode(path)], True, tuple(passfds), None, None,
 | 
					 | 
				
			||||||
                 -1, -1, -1, -1, -1, -1, errpipe_read, errpipe_write,
 | 
					 | 
				
			||||||
-                False, False, None)
 | 
					 | 
				
			||||||
+                False, False]
 | 
					 | 
				
			||||||
+            if sys.version_info >= (3, 9):
 | 
					 | 
				
			||||||
+                args.extend((None, None, None, -1))  # group, extra_groups, user, umask
 | 
					 | 
				
			||||||
+            args.append(None)  # preexec_fn
 | 
					 | 
				
			||||||
+            return _posixsubprocess.fork_exec(*args)
 | 
					 | 
				
			||||||
         finally:
 | 
					 | 
				
			||||||
             os.close(errpipe_read)
 | 
					 | 
				
			||||||
             os.close(errpipe_write)
 | 
					 | 
				
			||||||
							
								
								
									
										15
									
								
								billiard-sphinx4.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								billiard-sphinx4.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					Index: billiard-3.6.4.0/Doc/conf.py
 | 
				
			||||||
 | 
					===================================================================
 | 
				
			||||||
 | 
					--- billiard-3.6.4.0.orig/Doc/conf.py
 | 
				
			||||||
 | 
					+++ billiard-3.6.4.0/Doc/conf.py
 | 
				
			||||||
 | 
					@@ -170,8 +170,8 @@ htmlhelp_basename = 'multiprocessingdoc'
 | 
				
			||||||
 | 
					 # Grouping the document tree into LaTeX files. List of tuples
 | 
				
			||||||
 | 
					 # (source start file, target name, title, author, document class [howto/manual]).
 | 
				
			||||||
 | 
					 latex_documents = [
 | 
				
			||||||
 | 
					-  ('index', 'multiprocessing.tex', ur'multiprocessing Documentation',
 | 
				
			||||||
 | 
					-   ur'Python Software Foundation', 'manual'),
 | 
				
			||||||
 | 
					+  ('index', 'multiprocessing.tex', 'multiprocessing Documentation',
 | 
				
			||||||
 | 
					+   'Python Software Foundation', 'manual'),
 | 
				
			||||||
 | 
					 ]
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					 # The name of an image file (relative to this directory) to place at the top of
 | 
				
			||||||
@@ -1,3 +1,12 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Fri Jun  4 20:49:11 UTC 2021 - Dirk Müller <dmueller@suse.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- update to 3.6.4.0:
 | 
				
			||||||
 | 
					  * Issue #309: Add Python 3.9 support to spawnv_passfds()
 | 
				
			||||||
 | 
					  * fix #314 
 | 
				
			||||||
 | 
					- drop billiard-pr310-py39-fork_exec.patch (upstream)
 | 
				
			||||||
 | 
					- add billiard-sphinx4.patch: compat with Sphinx 4.x
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-------------------------------------------------------------------
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
Fri Mar 19 19:42:02 UTC 2021 - Ben Greiner <code@bnavigator.de>
 | 
					Fri Mar 19 19:42:02 UTC 2021 - Ben Greiner <code@bnavigator.de>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,15 +19,14 @@
 | 
				
			|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
				
			||||||
%define skip_python2 1
 | 
					%define skip_python2 1
 | 
				
			||||||
Name:           python-billiard
 | 
					Name:           python-billiard
 | 
				
			||||||
Version:        3.6.3.0
 | 
					Version:        3.6.4.0
 | 
				
			||||||
Release:        0
 | 
					Release:        0
 | 
				
			||||||
Summary:        Python multiprocessing fork
 | 
					Summary:        Python multiprocessing fork
 | 
				
			||||||
License:        BSD-3-Clause
 | 
					License:        BSD-3-Clause
 | 
				
			||||||
Group:          Development/Languages/Python
 | 
					Group:          Development/Languages/Python
 | 
				
			||||||
URL:            https://github.com/celery/billiard
 | 
					URL:            https://github.com/celery/billiard
 | 
				
			||||||
Source:         https://files.pythonhosted.org/packages/source/b/billiard/billiard-%{version}.tar.gz
 | 
					Source:         https://files.pythonhosted.org/packages/source/b/billiard/billiard-%{version}.tar.gz
 | 
				
			||||||
# PATCH-FIX-UPSTREAM billiard-pr310-py39-fork_exec.patch -- gh#celery/billiard#310
 | 
					Patch0:         billiard-sphinx4.patch
 | 
				
			||||||
Patch0:         billiard-pr310-py39-fork_exec.patch
 | 
					 | 
				
			||||||
BuildRequires:  %{python_module case >= 1.3.1}
 | 
					BuildRequires:  %{python_module case >= 1.3.1}
 | 
				
			||||||
BuildRequires:  %{python_module psutil}
 | 
					BuildRequires:  %{python_module psutil}
 | 
				
			||||||
BuildRequires:  %{python_module pytest}
 | 
					BuildRequires:  %{python_module pytest}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user