[141851] trunk/dports/python
petr at macports.org
petr at macports.org
Sat Dec 12 03:16:40 PST 2015
Revision: 141851
https://trac.macports.org/changeset/141851
Author: petr at macports.org
Date: 2015-10-29 12:26:19 -0700 (Thu, 29 Oct 2015)
Log Message:
-----------
py-threadpool: update to 1.3.1, retire py26 and add py{34,35} subport
Modified Paths:
--------------
trunk/dports/python/py-graveyard/Portfile
trunk/dports/python/py-threadpool/Portfile
Added Paths:
-----------
trunk/dports/python/py-threadpool/files/
trunk/dports/python/py-threadpool/files/release.py
Modified: trunk/dports/python/py-graveyard/Portfile
===================================================================
--- trunk/dports/python/py-graveyard/Portfile 2015-10-29 19:22:02 UTC (rev 141850)
+++ trunk/dports/python/py-graveyard/Portfile 2015-10-29 19:26:19 UTC (rev 141851)
@@ -574,6 +574,7 @@
py-tempita 0.5.1_1 24 25
py-textile 2.1.3_1 24 25 26
py-texttable 0.6.0_2 24
+py-threadpool 1.2.7_1 26
py-thrift 0.9.0_1 25
py-tiff 0.1.6_2 24
py-timeformat 1.0.0_2 24
Modified: trunk/dports/python/py-threadpool/Portfile
===================================================================
--- trunk/dports/python/py-threadpool/Portfile 2015-10-29 19:22:02 UTC (rev 141850)
+++ trunk/dports/python/py-threadpool/Portfile 2015-10-29 19:26:19 UTC (rev 141851)
@@ -8,7 +8,7 @@
set _n [string index ${_name} 0]
name py-${_name}
-version 1.2.7
+version 1.3.1
categories-append net parallel
platforms darwin
supported_archs noarch
@@ -32,15 +32,20 @@
master_sites http://chrisarndt.de/projects/${_name}/download/ \
https://pypi.python.org/packages/source/${_n}/${_name}/
-checksums md5 e1d5a4f73440ed701dfd0b3eb0d9c1ca \
- rmd160 9bcc55d7c800996ce953d73702d42f9ced90eb65 \
- sha256 538539b3783acc7f7b2bbb5611bd66e98e5026ae665f014e8bd5da19dbb55acf
+checksums md5 579285012d5fb2ed84fc9e8ed7604c9f \
+ rmd160 8bb4b3eb1c036878380ff147407861401fda365f \
+ sha256 4766335691945d4e17c08279f730f68fd1881b0dfd5ca515b71967a657496d05
-python.versions 26 27
+python.versions 27 34 35
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
+ # TEMP: add missing file
+ post-extract {
+ copy ${filespath}/release.py ${worksrcpath}/src
+ }
+
# Adding documentation
post-destroot {
set dest_doc ${destroot}${prefix}/share/doc/${subport}
Added: trunk/dports/python/py-threadpool/files/release.py
===================================================================
--- trunk/dports/python/py-threadpool/files/release.py (rev 0)
+++ trunk/dports/python/py-threadpool/files/release.py 2015-10-29 19:26:19 UTC (rev 141851)
@@ -0,0 +1,52 @@
+# -*- coding: UTF-8 -*-
+"""Easy to use object-oriented thread pool framework.
+
+.. 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 <https://docs.python.org/3/library/multiprocessing.html>`_
+ 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 perform
+time consuming operations in parallel. It assigns jobs to the threads
+by putting them in a work request queue, where they are picked up by the
+next available thread. This then performs the requested operation in the
+background and puts the results in another queue.
+
+The thread pool object can then collect the results from all threads from
+this queue as soon as they become available or after all threads have
+finished their work. It's also possible, to define callbacks to handle
+each 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.
+
+"""
+# Release info for Threadpool
+
+name = 'threadpool'
+version = '1.3.1'
+description = __doc__.splitlines()[0]
+keywords = 'threads, design pattern, thread pool'
+author = 'Christopher Arndt'
+author_email = 'chris at chrisarndt.de'
+url = 'http://chrisarndt.de/projects/threadpool/'
+download_url = url + 'download/'
+license = "MIT license"
+long_description = "".join(__doc__.splitlines()[2:])
+platforms = "POSIX, Windows, MacOS X"
+classifiers = [
+ 'Development Status :: 5 - Production/Stable',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Python Software Foundation License',
+ 'Operating System :: Microsoft :: Windows',
+ 'Operating System :: POSIX',
+ 'Operating System :: MacOS :: MacOS X',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 3',
+ 'Topic :: Software Development :: Libraries :: Python Modules'
+]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/c4116a06/attachment.html>
More information about the macports-changes
mailing list