From aaf1bc4d9f0b7b99d2a7f947a0ec1242f54a1d4c50335ee6bd409909261e8122 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 9 Oct 2024 06:35:46 +0000 Subject: [PATCH 1/2] - update to 4.2.1: * Remove `SIGUSR2` from `TERMSIGS_DEAULT` * Add on_ready_counter to Worker.__reduce__. * Adapt for logging lock internal changes in Python3.13 * blacksmith.sh: Migrate workflows to blacksmith * Prepare for release: v4.2.1 * fix #314 - Pass arguments when wrapping sys.exit (#275) - Remove win32/py2k special (#276) - Fix compatibility with Python 2.7 on Windows (#283) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-billiard?expand=0&rev=58 --- .gitattributes | 23 ++ .gitignore | 1 + billiard-4.2.0.tar.gz | 3 + billiard-4.2.1.tar.gz | 3 + python-billiard.changes | 473 ++++++++++++++++++++++++++++++++++++++++ python-billiard.spec | 81 +++++++ 6 files changed, 584 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 billiard-4.2.0.tar.gz create mode 100644 billiard-4.2.1.tar.gz create mode 100644 python-billiard.changes create mode 100644 python-billiard.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/billiard-4.2.0.tar.gz b/billiard-4.2.0.tar.gz new file mode 100644 index 0000000..86b28f7 --- /dev/null +++ b/billiard-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a3c3184cb275aa17a732f93f65b20c525d3d9f253722d26a82194803ade5a2c +size 154665 diff --git a/billiard-4.2.1.tar.gz b/billiard-4.2.1.tar.gz new file mode 100644 index 0000000..9a5ac7d --- /dev/null +++ b/billiard-4.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12b641b0c539073fc8d3f5b8b7be998956665c4233c7c1fcd66a7e677c4fb36f +size 155031 diff --git a/python-billiard.changes b/python-billiard.changes new file mode 100644 index 0000000..23a905e --- /dev/null +++ b/python-billiard.changes @@ -0,0 +1,473 @@ +------------------------------------------------------------------- +Wed Oct 9 06:34:27 UTC 2024 - Dirk Müller + +- update to 4.2.1: + * Remove `SIGUSR2` from `TERMSIGS_DEAULT` + * Add on_ready_counter to Worker.__reduce__. + * Adapt for logging lock internal changes in Python3.13 + * blacksmith.sh: Migrate workflows to blacksmith + * Prepare for release: v4.2.1 + +------------------------------------------------------------------- +Fri Nov 10 12:21:25 UTC 2023 - Dirk Müller + +- update to 4.2.0: + * Update process.py to close during join only if process has + completed. + * Adjust the __repr__ in ApplyResult. + * Remove python 3.7 from CI. + * Added Python 3.12 support. + * Fixed (co_positions): resolve issue caused by absence + co_positions (#395). + * Fixed: Replaced mktemp usage for Python 3 from python 2. + * Changed nose test to pytest (#397) in Integration test. + * Changed nose dependency for unit test (#383). + +------------------------------------------------------------------- +Sun Jun 11 13:41:00 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Jan 23 14:11:16 UTC 2023 - Markéta Machová + +- Update to 4.1.0 + * Fixed a python 2 to 3 compat issue which was missed earlier (#374). + * Add Python 3.11 primary support + * Keep exception traceback somehow (#368). + * Support Sphinx 4.x. + * Remove dependency to case. + * Drop support of Python < 3.7. + * Update to psutil 5.9.0. + * Replace deprecated threading Event.isSet with Event.is_set. + * Prevent segmentation fault in get_pdeathsig while using ctypes (#361). +- Drop billiard-sphinx4.patch, not needed anymore + +------------------------------------------------------------------- +Fri Jun 4 20:49:11 UTC 2021 - Dirk Müller + +- 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 + +- Add billiard-pr310-py39-fork_exec.patch -- gh#celery/billiard#310 + +------------------------------------------------------------------- +Mon Apr 6 12:24:22 UTC 2020 - Matej Cepl + +- Stop building Python 2 packages (we avoid also weird constructs + with alternative noarch package). + +------------------------------------------------------------------- +Mon Mar 30 14:04:42 UTC 2020 - Marketa Calabkova + +- Update to 3.6.3.0 + * Close the inqueue and outqueue when terminating to avoid file descriptor leakage. + * upgrade to pytest<6 + * Test against the latest Python 3.8 and PyPy3 release + +------------------------------------------------------------------- +Fri Sep 13 11:19:39 UTC 2019 - Tomáš Chvátal + +- Update to 3.6.1.0: + - Logging max memory reached at INFO rather than WARNING (#255) + - Pass arguments when wrapping sys.exit (#275) + - Remove win32/py2k special (#276) + - Ensure READY messages sent out by exiting worker are consumed prior to it actually existing. + - Pass max_memory_per_child to child worker process (#251) + - Fix compatibility with Python 2.7 on Windows (#283) + +------------------------------------------------------------------- +Sun Jun 2 06:57:27 UTC 2019 - Jan Engelhardt + +- Adjust description grammar. Drop filler wording. + +------------------------------------------------------------------- +Sun Feb 10 13:31:32 UTC 2019 - John Vandenberg + +- Update to v3.6.0.0 + + Add support of sending parent process death signal. + + Previous fix for handling timeouts caused a problem in warm shutdowns + due to use of deepcopy. + We now use a shallow copy of the cache and do so only when it is needed. + + Cleanup old checks and workarounds for Python versions we no longer support. + +------------------------------------------------------------------- +Thu Dec 6 11:17:08 UTC 2018 - Tomáš Chvátal + +- Fix the build again +- Fix the fdupes call +- Update version to 3.5.0.5: (boo#1136100) + * Various small bugfixes all around + +------------------------------------------------------------------- +Tue Dec 4 12:46:06 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Jun 26 20:20:22 UTC 2017 - benoit.monin@gmx.fr + +- update to version 3.5.0.2: + * max_memory_per_child was measured in kilobytes on Linux, but + bytes on *BSD/MacOS, it's now always kilobytes. + * Windows: Adds support for max_memory_per_child, but requires + the psutil package to be installed. + * Fixed bug in ForkingPickler.loadbuf, where it tried to pass + a BytesIO instance directly to ``pickle.loads`` on Python 2.7. +- additional changes from version 3.5.0.1: + * Connection: Properly handle EINTR (Issue #191). + * Fixed bug with missing CreateProcess for Windows on Python 2.7. + * Adds Process._counter for compatibility with Python <3.5. +- additional changes from version 3.5.0.0: + * No longer supports Python 2.6 + You need Python 2.7 or later to use this version of billiard. + * Merged changes from CPython 3.5 +- convert the package to singlespec and import changes from + python3-billiard +- change the source URL to pythonhosted.org +- update the BuildRequires for test: + * remove mock, nose and unittest2 + * add case and pytest +- split the documentation to a separate package +- remove the shebang cleanup: not needed anymore + +------------------------------------------------------------------- +Wed Jan 13 17:52:14 UTC 2016 - antoine.belvire@laposte.net + +- Update to version 3.3.0.22: + * Wheel packages for Windows now available. +- Changes from 3.3.0.21: + * Pool: Fixed semaphore error on Python3. + * Fixed libSystem error on OS X El Capitan. + +------------------------------------------------------------------- +Sat Apr 25 19:37:13 UTC 2015 - benoit.monin@gmx.fr + +- update to version 3.3.0.20: + * Pool: Timeouts will attempt to send SIGKILL, but this signal + does not exist on Windows. Replaced with SIGTERM. +- additional changes from version 3.3.0.19: + * Pool: Exceptions in user timeout callbacks are now logged + instead of crashing the pool. Contributed by Pierre Fersing. + * Pool: Exit codes in errors were improperly being represented + as signals. + * Pool: ``.map``. and ``.imap`` now working again. + * Now builds on FreeBSD 10. Contributed by Michael Fladischer. +- update project URL +- add fdupes as BuildRequires and call it after install +- remove BuildRequires python-nose-cover3, not needed by the tests + anymore +- set a minimum version for python-nose +- remove unwanted shebang of funtests/setup.py +- add -fno-strict-aliasing to CFLAGS to avoid potential breakage + +------------------------------------------------------------------- +Fri Aug 15 11:40:21 UTC 2014 - mcihar@suse.cz + +- Update to 3.3.0.18 + - see https://pypi.python.org/pypi/billiard for complete changelog + +------------------------------------------------------------------- +Sun Dec 1 16:09:02 UTC 2013 - oliver.bengs@opensuse.org + +- Update to version 3.3.0.8: + + Now also sets ``multiprocessing.current_process`` for compatibility + with loggings ``processName`` field + +------------------------------------------------------------------- +Wed Nov 13 16:56:40 UTC 2013 - p.drouand@gmail.com + +- Update to version 3.3.0.6 + + Now works without C extension again. + + New ``_billiard.read(fd, buffer, [len, ])` function + implements os.read with buffer support (new buffer API) + + New pure-python implementation of ``Connection.send_offset``. +- Changes from 3.3.0.5 + + All platforms except for Windows/PyPy/Jython now requires the C extension. +- Changes from 3.3.0.4 + + Fixed problem with Python3 and setblocking. +- Changes from 3.3.0.3 + + Now works on Windows again. +- Changes from 3.3.0.2 + + ApplyResult.terminate() may be set to signify that the job + must not be executed. It can be used in combination with + Pool.terminate_job. + + Pipe/_SimpleQueue: Now supports rnonblock/wnonblock arguments + to set the read or write end of the pipe to be nonblocking. + + Pool: Log message included exception info but exception happened + in another process so the resulting traceback was wrong. + + Pool: Worker process can now prepare results before they are sent + back to the main process (using ``Worker.prepare_result``). +- Changes from 3.3.0.1 + + Pool: New ``correlation_id`` argument to ``apply_async`` can be + used to set a related id for the ``ApplyResult`` object returned: + >>> r = pool.apply_async(target, args, kwargs, correlation_id='foo') + >>> r.correlation_id + 'foo' + + Pool: New callback `on_process_exit` is called when a pool + process exits, with signature ``(pid, exitcode)``. + + Pool: Improved the too many restarts detection. +- Changes from 3.3.0.0 + + Dual code base now runs on Python 2.6+ and Python 3. + + No longer compatible with Python 2.5 + + Includes many changes from multiprocessing in 3.4. + + Now uses ``time.monotonic`` when available, also including + fallback implementations for Linux and OS X. + + No longer cleans up after receiving SIGILL, SIGSEGV or SIGFPE + + ``Finalize`` and ``register_after_fork`` is now aliases to multiprocessing. + It's better to import these from multiprocessing directly now + so that there aren't multiple registries. + + New `billiard.queues._SimpleQueue` that does not use semaphores. + + Pool: Can now be extended to support using multiple IPC queues. + + Pool: Can now use async I/O to write to pool IPC queues. + + Pool: New ``Worker.on_loop_stop`` handler can be used to add actions + at pool worker process shutdown. + Note that, like all finalization handlers, there is no guarantee that + this will be executed. + +------------------------------------------------------------------- +Thu Oct 24 10:59:10 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Wed Sep 25 18:26:02 UTC 2013 - p.drouand@gmail.com + +- Update to version 2.7.3.32 + + Fixed compatibility with Python 3.3 + + Process boostrap: Now ignores errors while flushing stdout (Issue #16) +- Changes from version 2.7.3.31 + + Recent changes broke support for running without C extension (Issue #57) +- Changes from version 2.7.3.30 + + Fixed ImportError in billiard._ext +- Changes from version 2.7.3.29 + + Compilation: Fixed improper handling of HAVE_SEM_OPEN (Issue #55) + + Process now releases logging locks after fork. + + Pool.terminate_job now ignores No such process errors. + + billiard.Pool entrypoint did not support new arguments to billiard.pool.Pool + + Connection inbound buffer size increased from 1kb to 128kb. + + C extension cleaned up by properly adding a namespace to symbols. + +_exit_function now works even if thread wakes up after gc collect. + +------------------------------------------------------------------- +Fri Jun 28 09:13:02 UTC 2013 - speilicke@suse.com + +- Update to version 2.7.3.28: + + Pool: Fixed regression that disabled the deadlock fix in 2.7.3.24 + + Pool: RestartFreqExceeded could be raised prematurely. + + Process: Include pid in startup and process INFO logs. +- Changes from version 2.7.3.27: + + Manager now works again. + + Python 3 fixes for billiard.connection. + + Fixed invalid argument bug when running on Python 3.3 + + Ignore OSError when setting up signal handlers. +- Changes from version 2.7.3.26: + + Pool: Child processes must ignore SIGINT. +- Changes from version 2.7.3.25: + + Pool: 2.7.3.24 broke support for subprocesses (Issue #48). +- Changes from version 2.7.3.24: + + Pool: Make sure finally blocks are called when process exits due to a signal. + + Pool: Can now use GDB to debug pool child processes. + + Fixes Python 3 compatibility problems. + +------------------------------------------------------------------- +Fri Mar 22 16:17:18 UTC 2013 - alexandre@exatati.com.br + +- Update to 2.7.3.23: + - Windows: Now catches SystemExit from setuptools while trying to + build the C extension (Issue #41). +- Aditional changes from 2.7.3.22: + - Pool: apply_async now supports a callbacks_propagate keyword + argument that can be a tuple of exceptions to propagate in + callbacks. (callback, errback, accept_callback, timeout_callback). + - Errors are no longer logged for OK and recycle exit codes. + This would cause normal maxtasksperchild recycled process + to log an error. + - Fixed Python 2.5 compatibility problem (Issue #33). + - FreeBSD: Compilation now disables semaphores if Python was built + without it (Issue #40). + Contributed by William Grzybowski +- Aditional changes from 2.7.3.21: + - Fixed typo EX_REUSE -> EX_RECYCLE + - Code now conforms to new pep8.py rules. +- Aditional changes from 2.7.3.20: + - Pool: Disable restart limit if maxR is not set. + - Pool: Now uses os.kill instead of signal.signal. + Contributed by Lukasz Langa + - Fixed name error in process.py + - Pool: ApplyResult.get now properly raises exceptions. + Fix contributed by xentac. + +------------------------------------------------------------------- +Fri Jan 25 21:10:36 UTC 2013 - jfunk@funktronics.ca + +- Update to 2.7.3.19: + * Fixes problem at shutdown when gc has collected symbols. + * Pool now always uses _kill for Py2.5 compatibility on Windows (Issue + #32). + * Fixes Python 3 compatibility issues + +------------------------------------------------------------------- +Tue Nov 13 20:56:40 UTC 2012 - jfunk@funktronics.ca + +- Update to 2.7.3.18: + * [Pool] Fix for check_timeouts if not set. + Fix contributed by Dmitry Sukhov + * Fixed pickle problem with Traceback. + Code.frame.__loader__ is now ignored as it may be set to an unpickleable + object. + * The Django old-layout warning was always showing. +2.7.3.17 - 2012-09-26 + * Fixes typo +2.7.3.16 - 2012-09-26 + * Windows: Fixes for SemLock._rebuild (Issue #24). + * Pool: Job terminated with terminate_job now raises + billiard.exceptions.Terminated. +2.7.3.15 - 2012-09-21 + * Windows: Fixes unpickling of SemLock when using fallback. + * Windows: Fixes installation when no C compiler. +2.7.3.14 - 2012-09-20 + * Installation now works again for Python 3. +2.7.3.13 - 2012-09-14 + * Merged with Python trunk (many authors, many fixes: see Python changelog + in trunk). + * Using execv now also works with older Django projects using setup_environ + (Issue #10). + * Billiard now installs with a warning that the C extension could not be + built if a compiler is not installed or the build fails in some other way. + It really is recommended to have the C extension installed when running + with force execv, but this change also makes it easier to install. + * Pool: Hard timeouts now sends KILL shortly after TERM so that C extensions + cannot block the signal. + Python signal handlers are called in the interpreter, so they cannot be + called while a C extension is blocking the interpreter from running. + * Now uses a timeout value for Thread.join that doesn't exceed the maximum + on some platforms. + * Fixed bug in the SemLock fallback used when C extensions not installed. + Fix contributed by Mher Movsisyan. + * Pool: Now sets a Process.index attribute for every process in the pool. + This number will always be between 0 and concurrency-1, and can be used + to e.g. create a logfile for each process in the pool without creating a + new logfile whenever a process is replaced. +2.7.3.12 - 2012-08-05 + * Fixed Python 2.5 compatibility issue. + * New Pool.terminate_job(pid) to terminate a job without raising + WorkerLostError +2.7.3.11 - 2012-08-01 + * Adds support for FreeBSD 7+ + Fix contributed by koobs. + * Pool: New argument allow_restart is now required to enable the pool + process sentinel that is required to restart the pool. + It's disabled by default, which reduces the number of file descriptors/ + semaphores required to run the pool. + * Pool: Now emits a warning if a worker process exited with error-code. + But not if the error code is 155, which is now returned if the worker + process was recycled (maxtasksperchild). + * Python 3 compatibility fixes. + * Python 2.5 compatibility fixes. +2.7.3.10 - 2012-06-26 + * The TimeLimitExceeded exception string representation only included the + seconds as a number, it now gives a more human friendly description. + * Fixed typo in LaxBoundedSemaphore.shrink. + * Pool: ResultHandler.handle_event no longer requires any arguments. + * setup.py bdist now works +2.7.3.9 - 2012-06-03 + * Environment variable MP_MAIN_FILE envvar is now set to the path of the + __main__ module when execv is enabled. + * Pool: Errors occurring in the TaskHandler are now reported. +2.7.3.8 - 2012-06-01 + * Can now be installed on Py 3.2 + * Issue #12091: simplify ApplyResult and MapResult with threading.Event + Patch by Charles-Francois Natali + * Pool: Support running without TimeoutHandler thread. + * The with_*_thread arguments has also been replaced with a single + threads=True argument. + * Two new pool callbacks: + * on_timeout_set(job, soft, hard) + Applied when a task is executed with a timeout. + * on_timeout_cancel(job) + Applied when a timeout is cancelled (the job completed) + +------------------------------------------------------------------- +Wed May 23 22:17:05 UTC 2012 - jfunk@funktronics.ca + +- Update to 2.7.3.7 + * Fixes Python 2.5 support. +- 2.7.3.6 - 2012-05-21 + * Pool: Can now be used in an event loop, without starting the supporting + threads (TimeoutHandler still not supported) + * Pool: Process too frequent restart protection now only counts if the + process had a non-successful exitcode. + * Pool: New options max_restart + max_restart_freq + * Pool: The ``WorkerLostError`` message now includes the exitcode of the + process that disappeared. +- Build HTML docs + +------------------------------------------------------------------- +Thu May 17 23:40:18 UTC 2012 - jfunk@funktronics.ca + +- Update to 2.7.3.5 + * Now always cleans up after sys.exc_info() to avoid cyclic references. + * ExceptionInfo without arguments now defaults to sys.exc_info. + * Forking can now be disabled using the MULTIPROCESSING_FORKING_DISABLE + environment variable. + Also this envvar is set so that the behavior is inherited after execv. + * The semaphore cleanup process started when execv is used now sets a useful + process name if the setproctitle module is installed. + * Sets the FORKED_BY_MULTIPROCESSING environment variable if forking is + disabled. + +------------------------------------------------------------------- +Fri Apr 27 22:54:35 UTC 2012 - jfunk@funktronics.ca + +- Update to 2.7.3.4 + * Added billiard.ensure_multiprocessing() - Raises NotImplementedError if + the platform does not support multiprocessing (e.g. Jython). + +------------------------------------------------------------------- +Wed Apr 25 19:09:15 UTC 2012 - jfunk@funktronics.ca + +- Generate new spec +- Update to 2.7.3.3 + * PyPy now falls back to using its internal _multiprocessing module, so + everything works except for forking_enable(False) (which silently degrades) + * Fixed Python 2.5 compat issues. + * Uses more with statements + * Merged some of the changes from the Python 3 branch. +- 2.7.3.2 - 2012-04-20 + * Now installs on PyPy/Jython (but does not work). +- 2.7.3.1 - 2012-04-20 + * Python 2.5 support added. +- 2.7.3.0 - 2012-04-20 + * Updated from Python 2.7.3 + * Python 2.4 support removed, now only supports 2.5, 2.6 and 2.7. (may + consider py3k support at some point). + * Pool improvments from Celery. + * no-execv patch added (http://bugs.python.org/issue8713) + +------------------------------------------------------------------- +Fri Nov 25 07:55:37 UTC 2011 - jfunk@funktronics.ca + +- Update to 0.3.1 + * Fixed broken bool evaluation in supervisor. Thanks to jonozzz + The bug originated from a ``a if x else b`` vs. ``x and a or bz`` + confusion when porting code to Python 2.4. + * ``ApplyResult._set`` can't delete the result if it's not been accepted. + This also means ``ApplyResult._ack`` needs to delete the result if the job + has been marked ready. +- 0.3.0 + * Added support for accept callbacks. +- 0.2.3 + * Python 2.4 support. + +------------------------------------------------------------------- +Wed Apr 14 17:16:15 UTC 2010 - jfunk@funktronics.ca + +- Initial import + diff --git a/python-billiard.spec b/python-billiard.spec new file mode 100644 index 0000000..a6d0847 --- /dev/null +++ b/python-billiard.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-billiard +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-billiard +Version: 4.2.1 +Release: 0 +Summary: Python multiprocessing fork +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/celery/billiard +Source: https://files.pythonhosted.org/packages/source/b/billiard/billiard-%{version}.tar.gz +BuildRequires: %{python_module psutil >= 5.9.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# Documentation requirements +BuildRequires: python3-Sphinx >= 0.5 +Suggests: %{name}-doc = %{version} +BuildArch: noarch + +%package -n %{name}-doc +Summary: Documentation for %{name} +Group: Development/Languages/Python +Provides: %{python_module billiard-doc = %{version}} +BuildArch: noarch +%python_subpackages + +%description +billiard is a fork of the Python 2.7 multiprocessing package. The +multiprocessing package itself is a renamed and updated version of +R. Oudkerk's pyprocessing package. This standalone variant is +compatible with Python 2.4 and 2.5, and will draw its +fixes/improvements from python-trunk. + +%description -n %{name}-doc +Documentation and help files for %{name}. + +%prep +%autosetup -p1 -n billiard-%{version} + +%build +%python_build +pushd Doc +sphinx-build -b html . html +rm -r html/.buildinfo html/.doctrees +popd + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest + +%files %{python_files} +%doc CHANGES.txt README.rst +%license LICENSE.txt +%{python_sitelib}/* + +%files -n %{name}-doc +%doc Doc/html + +%changelog From 0253a3b0a2291f6a30fefa172aaa05daa629a20848d3c9578b3dc77469528bf1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 9 Oct 2024 06:35:50 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-billiard?expand=0&rev=59 --- billiard-4.2.0.tar.gz | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 billiard-4.2.0.tar.gz diff --git a/billiard-4.2.0.tar.gz b/billiard-4.2.0.tar.gz deleted file mode 100644 index 86b28f7..0000000 --- a/billiard-4.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9a3c3184cb275aa17a732f93f65b20c525d3d9f253722d26a82194803ade5a2c -size 154665