svn commit: r408644 - in head/devel: . py-terminable_thread

Don Lewis truckman at FreeBSD.org
Wed Feb 10 19:11:24 UTC 2016


Author: truckman
Date: Wed Feb 10 19:11:22 2016
New Revision: 408644
URL: https://svnweb.freebsd.org/changeset/ports/408644

Log:
  New port devel/py-terminable_thread:
  
    terminable_thread provides a subclass of threading.Thread, adding
    the facility to raise exceptions in the context of the given
    thread.
  
    This facility is incorporated in the terminable_thread.Thread
    methods raise_exc, which raises an arbitrary exception, and
    terminate, which raises SystemExit.
  
    This is not done in an entirely robust manner, and there may be
    unreported issues with it.
  
    It uses the unexposed PyThreadState_SetAsyncExc function (via
    ctypes) to raise an exception for the given thread.
  
  Sponsored by:	Farsight Security, Inc.

Added:
  head/devel/py-terminable_thread/
  head/devel/py-terminable_thread/Makefile   (contents, props changed)
  head/devel/py-terminable_thread/distinfo   (contents, props changed)
  head/devel/py-terminable_thread/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Feb 10 18:59:23 2016	(r408643)
+++ head/devel/Makefile	Wed Feb 10 19:11:22 2016	(r408644)
@@ -4379,6 +4379,7 @@
     SUBDIR += py-tempora
     SUBDIR += py-tempstorage
     SUBDIR += py-termcolor
+    SUBDIR += py-terminable_thread
     SUBDIR += py-termstyle
     SUBDIR += py-testgears
     SUBDIR += py-testoob

Added: head/devel/py-terminable_thread/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-terminable_thread/Makefile	Wed Feb 10 19:11:22 2016	(r408644)
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME=	terminable_thread
+PORTVERSION=	0.7.1
+PORTREVISION=	1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	truckman at FreeBSD.org
+COMMENT=	Thread subclass / raise exceptions or terminate from another thread
+
+LICENSE=	PD
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+NO_ARCH=	yes
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+.include <bsd.port.mk>

Added: head/devel/py-terminable_thread/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-terminable_thread/distinfo	Wed Feb 10 19:11:22 2016	(r408644)
@@ -0,0 +1,2 @@
+SHA256 (terminable_thread-0.7.1.tar.gz) = c07d98a8230568757cffd13c6315409db45f6f479c4e3640df84b2225db10b27
+SIZE (terminable_thread-0.7.1.tar.gz) = 5247

Added: head/devel/py-terminable_thread/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-terminable_thread/pkg-descr	Wed Feb 10 19:11:22 2016	(r408644)
@@ -0,0 +1,17 @@
+Provides a subclass of Thread with facilities to raise an exception
+in the thread or terminate the thread from another thread.
+
+terminable_thread provides a subclass of threading.Thread, adding
+the facility to raise exceptions in the context of the given thread.
+
+This facility is incorporated in the terminable_thread.Thread methods
+raise_exc, which raises an arbitrary exception, and terminate, which
+raises SystemExit.
+
+This is not done in an entirely robust manner, and there may be
+unreported issues with it.
+
+It uses the unexposed PyThreadState_SetAsyncExc function (via ctypes)
+to raise an exception for the given thread.
+
+WWW: http://github.com/intuited/terminable_thread


More information about the svn-ports-all mailing list