Commit Graph

109 Commits

Author SHA1 Message Date
Tim Savannah
70b48494bb
Merge pull request #23 from ddurham2/4.3branch
added py3.8, py3.9 and py3.10
2022-02-01 20:18:08 -05:00
Davy Durham
f78a12994d added py3.8, py3.9 and py3.10 2022-01-31 21:39:04 -06:00
Tim Savannah
50baa8db50 Fix years in copyright notice of func_timeout.exceptions. Will not be a new release just for this. 2019-08-19 17:52:33 -04:00
Tim Savannah
45cdbdfe4f 4.3.5 2019-08-19 17:31:36 -04:00
Tim Savannah
514225621f Update cachebust reference in READMEs to pydocs from 4.3.4 to 4.3.5 to reflect newest version 2019-08-19 17:31:29 -04:00
Tim Savannah
5452efab5b Regenerate pydocs 2019-08-19 17:31:02 -04:00
Tim Savannah
5d2afb9582 Changelog 2019-08-19 17:30:01 -04:00
Tim Savannah
af7d6e8a39 Allow instantiation of FunctionTimedOut with empty arguments (to support some patterns in unit testing / mocking). Will replace function name with "Unknown Function" if not provided, and timedOutAfter will be "Unknown" or a float of how long until timeout occurred. 2019-08-19 17:28:33 -04:00
Tim Savannah
cf8a9545bc Update to GoodTests runTests.py version 3.0.5 from 2.1.1 2019-08-19 17:16:48 -04:00
Tim Savannah
176ef7b9d9 Increase test timing and thresholds so it works on slower computers as well. 2019-08-19 17:14:48 -04:00
Tim Savannah
1eba58f599 4.3.4 2019-08-19 16:36:57 -04:00
Tim Savannah
f759dbfeec Add missing test_StoppableThread unit test, may need some minor cleanups and tweaking, but passes. 2019-08-19 16:36:45 -04:00
Tim Savannah
82493fe61d Fix missing newline in unit test TestUtils docstring 2019-08-19 16:36:19 -04:00
Tim Savannah
945b971637 Update cachebust reference on documentation from 4.3.3 to 4.3.4 2019-08-19 16:31:04 -04:00
Tim Savannah
64c3098922 Regen docs, py3 generation for all but py2_raise generated on 2.7 2019-08-19 16:30:15 -04:00
Tim Savannah
3fc998c3ca Changelog 2019-08-19 16:27:12 -04:00
Tim Savannah
caffd41f95
Merge pull request #7 from florczakraf/use_is_alive
Use is_alive in favor of isAlive
2019-08-19 16:22:00 -04:00
Rafał Florczak
1722f34da2
Use is_alive in favor of deprecated isAlive 2019-08-19 12:01:00 +02:00
Tim Savannah
bdc7072176 Update pydoc link with a different value on the GET params to force a regen if old version was cached. 2019-05-13 16:30:03 -04:00
Tim Savannah
e90d850871 Regen pydocs, and generate py2_raise again as well 2019-05-13 16:28:08 -04:00
Tim Savannah
8ab818f94a 4.3.3 2019-05-13 16:26:25 -04:00
Tim Savannah
317a65ce08 Changelog 2019-05-13 16:26:04 -04:00
Tim Savannah
5f9a1e493a Update READMEs and note both ways to create a thread, instead of I think implying that you MUST extend the class. 2019-05-13 16:25:45 -04:00
Tim Savannah
6e869794ef Add expected value before print on old testit.py, and docstring to note where other tests are located. 2019-05-13 11:47:07 -04:00
Tim Savannah
84528e67ed Update mkdoc.sh script to ensure we are in project root dir and to enable nullglob 2019-05-13 11:43:20 -04:00
Tim Savannah
81759d9b2b Remove TODO file 2019-05-13 11:39:16 -04:00
Tim Savannah
515988d9fc Regen pydocs 2019-05-13 11:34:10 -04:00
Tim Savannah
ac5eb257b0 Bump to 4.3.2 to re-release with up-to-date pydoc link. 2019-05-13 11:33:59 -04:00
Tim Savannah
45244ce98e Changelog 2019-05-13 11:33:46 -04:00
Tim Savannah
549251b2a3 Update link to pydoc to use githubpreview, as pythonhosted is old and not currently working. 2019-05-13 11:33:24 -04:00
Tim Savannah
cdd2d6d34f Regen docs for 4.3.1 2019-05-13 11:28:39 -04:00
Tim Savannah
5ab59fd709 Mark as 4.3.1 2019-05-13 11:28:26 -04:00
Tim Savannah
c52d7181d6 Strip trailing whitespace 2019-05-13 11:27:47 -04:00
Tim Savannah
874bc9b576 changelog 2019-05-13 11:27:13 -04:00
Tim Savannah
92dc986332 Regen pydocs 2019-05-13 11:25:41 -04:00
Tim Savannah
dc5fcfe507 Update READMEs, be more clear with sections, add more documentation on StoppableThread 2019-05-13 11:25:21 -04:00
Tim Savannah
f7f761789c Note it works with python 3.7 2019-05-13 11:24:40 -04:00
Tim Savannah
f793e36dc6 StoppableThread - Add more documentation to StoppableThread 2019-05-13 11:24:17 -04:00
Tim Savannah
089172fe0c Be explicit that StoppableThread.stop #exception argument needs to be a class/type, not an instance. 2019-05-13 11:07:33 -04:00
Tim Savannah
b427da2517 4.3.0 2017-08-10 18:50:20 -04:00
Tim Savannah
00685ec546 Issue #2 (Resolve) - Ensure we do not lose function information when using the func_set_timeout wrapper.
This includes things like like name, docstring, etc) when using the func_set_timeout wrapper.

This resolves using functools.wrap standard library function.

Includes unit test (failing before this commit, passing after)

Thanks to belongwqz for noting the issue and suggesting functools.wrap as resolution.
2017-08-10 18:48:50 -04:00
Tim Savannah
2bd33c12fd Tag 4.2.0 For Real and Update setup.py 2017-06-04 04:47:21 -04:00
Tim Savannah
5e15db92b6 Changelog 2017-06-04 04:47:10 -04:00
Tim Savannah
e99d1d8957 Add StoppableThread to the root module (so from 'func_timeout import StoppableThread' now works, instead of needing to do 'from func_timeout.StoppableThread import StoppableThread') 2017-06-04 04:46:47 -04:00
Tim Savannah
0e43f0b161 pydoc 2017-06-04 04:44:20 -04:00
Tim Savannah
f21d4b4b49 Update READMEs to note StoppableThread 2017-06-04 04:43:56 -04:00
Tim Savannah
6bee825db7 Add a bunch of comments to StoppableThread 2017-06-04 04:41:44 -04:00
Tim Savannah
19497ca229 4.2.0 2017-06-04 04:30:58 -04:00
Tim Savannah
4190710ec4 Update pydoc 2017-06-04 04:30:22 -04:00
Tim Savannah
57aed88c7a Add 'stop' method (rather than _stopThread) to StoppableThread 2017-05-28 01:11:42 -04:00