%global _empty_manifest_terminate_build 0 Name: python-threadpool Version: 1.3.2 Release: 1 Summary: Easy to use object-oriented thread pool framework. License: MIT license URL: http://chrisarndt.de/projects/threadpool/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1f/0f/e14266504330f08e8cddfe1bc03198a94193770c6740a4836985e8a64b5f/threadpool-1.3.2.tar.bz2 BuildArch: noarch %description .. warning:: This module is **OBSOLETE** and is only provided on PyPI to support old projects that still use it. Please **DO NOT USE IT FOR NEW PROJECTS!** Use modern alternatives like the `multiprocessing `_ module in the standard library or even an asynchroneous approach with `asyncio <_asyncio: https://docs.python.org/3/library/asyncio.html>`_.A thread pool is an object that maintains a pool of worker threads to performtime consuming operations in parallel. It assigns jobs to the threadsby putting them in a work request queue, where they are picked up by thenext available thread. This then performs the requested operation in thebackground and puts the results in another queue.The thread pool object can then collect the results from all threads fromthis queue as soon as they become available or after all threads havefinished their work. It's also possible, to define callbacks to handleeach result as it comes in... note:: This module is regarded as an extended example, not as a finished product. Feel free to adapt it too your needs. %package -n python3-threadpool Summary: Easy to use object-oriented thread pool framework. Provides: python-threadpool BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-threadpool .. warning:: This module is **OBSOLETE** and is only provided on PyPI to support old projects that still use it. Please **DO NOT USE IT FOR NEW PROJECTS!** Use modern alternatives like the `multiprocessing `_ module in the standard library or even an asynchroneous approach with `asyncio <_asyncio: https://docs.python.org/3/library/asyncio.html>`_.A thread pool is an object that maintains a pool of worker threads to performtime consuming operations in parallel. It assigns jobs to the threadsby putting them in a work request queue, where they are picked up by thenext available thread. This then performs the requested operation in thebackground and puts the results in another queue.The thread pool object can then collect the results from all threads fromthis queue as soon as they become available or after all threads havefinished their work. It's also possible, to define callbacks to handleeach result as it comes in... note:: This module is regarded as an extended example, not as a finished product. Feel free to adapt it too your needs. %package help Summary: Development documents and examples for threadpool Provides: python3-threadpool-doc %description help .. warning:: This module is **OBSOLETE** and is only provided on PyPI to support old projects that still use it. Please **DO NOT USE IT FOR NEW PROJECTS!** Use modern alternatives like the `multiprocessing `_ module in the standard library or even an asynchroneous approach with `asyncio <_asyncio: https://docs.python.org/3/library/asyncio.html>`_.A thread pool is an object that maintains a pool of worker threads to performtime consuming operations in parallel. It assigns jobs to the threadsby putting them in a work request queue, where they are picked up by thenext available thread. This then performs the requested operation in thebackground and puts the results in another queue.The thread pool object can then collect the results from all threads fromthis queue as soon as they become available or after all threads havefinished their work. It's also possible, to define callbacks to handleeach result as it comes in... note:: This module is regarded as an extended example, not as a finished product. Feel free to adapt it too your needs. %prep %autosetup -n threadpool-1.3.2 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-threadpool -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Sun Apr 23 2023 Python_Bot - 1.3.2-1 - Package Spec generated