Joshua Harlow
9645fabfc7
Ensure we pull down futures for appveyor installs
2016-03-02 11:33:59 -08:00
Joshua Harlow
dbbcb3fcc4
Ensure we pull down testtools for appveyor installs
2016-03-02 11:33:02 -08:00
Joshua Harlow
a0d3f2ddab
Fix appveyor badge
2016-03-02 11:23:05 -08:00
Joshua Harlow
ee656d8bd2
Add appveyor badge
2016-03-02 11:21:26 -08:00
Joshua Harlow
a78dd7712f
Add appveyor.yml file for continuous windows testing (part 2)
2016-02-22 19:14:59 -08:00
Joshua Harlow
9f1b2d3883
Add appveyor.yml file for continuous windows testing
2016-02-22 19:09:13 -08:00
Joshua Harlow
fc9cd6cbbe
Merge pull request #23 from johntyree/bug/multiplatform-tests
...
Fix process_lock and tests on Win32
2016-02-22 18:57:53 -08:00
John Tyree
991fe28cbf
TST: add missing import
2016-02-15 16:19:58 -06:00
John Tyree
d99500a9e2
TST: remove print statement
2016-02-15 16:19:42 -06:00
John Tyree
8dab3e07f2
TST: skip multi-opening file handle test on win32
2016-02-15 16:11:24 -06:00
John Tyree
e1dfc359c9
TST: crank up the timeout for external lock tests
...
Windows is really slow, especially in a VM.
2016-02-15 16:11:24 -06:00
John Tyree
75bb703e33
TST: warn when processes timeout
2016-02-15 16:11:24 -06:00
John Tyree
4a3a2f71fb
TST: check exitcodes of child processes
2016-02-15 15:48:47 -06:00
John Tyree
43a6729450
TST: properly scope child processes and get them working on windows
2016-02-15 15:38:26 -06:00
John Tyree
6d9d4ed012
TST: make _do_test_lock_externally work on Windows
...
We need to access the platform-specific file handle locking
mechanisms, but they are hidden away in the class implementations.
This pushes them into static methods to make it easy to access them
while still allowing sub-classing.
2016-02-15 14:58:19 -06:00
John Tyree
526cccebec
TST: move try_lock helper to toplevel
...
Windows apparently can't pickle this properly otherwise.
2016-02-15 14:12:59 -06:00
John Tyree
1157e371b3
TST: skip complicated POSIX-only interprocess test
2016-02-15 14:10:16 -06:00
John Tyree
4d4b4571a5
TST: fix multiplatform support for process lock tests
2016-02-15 14:00:02 -06:00
Joshua Harlow
8b63aafd5a
Merge pull request #21 from harlowja/sanity-check
...
Add sanity __enter__ acquire check
2016-01-19 12:08:31 -08:00
Joshua Harlow
436ec16d18
Add sanity __enter__ acquire check
...
Just incase __enter__ can (but should not) ever fail
at getting a lock raise a threading error if it ever
somehow does fail to get the lock.
2016-01-19 12:03:07 -08:00
Joshua Harlow
4ae44ac918
Add interprocess warning and try-lock example
...
Part of issue #11
2016-01-06 11:37:44 -08:00
Joshua Harlow
5e9ce01c3b
Merge pull request #20 from harlowja/moar-examples
...
Moar useful examples
2016-01-04 22:09:00 -08:00
Joshua Harlow
3bf6487eca
Moar useful examples
...
Part of issue #11
2016-01-04 22:06:50 -08:00
Joshua Harlow
2f4857e5b2
Merge pull request #14 from ubershmekel/patch-2
...
Added a code sample
2016-01-04 21:40:42 -08:00
Joshua Harlow
c4f1457bc6
Add py3.5 to classifiers as its being tested
2015-12-27 20:28:15 -08:00
Joshua Harlow
1e0c52207c
Merge pull request #19 from scop/travis
...
Add Python 3.5 and PyPy to Travis
2015-12-27 20:26:36 -08:00
Ville Skyttä
22912d8358
Add Python 3.5 and PyPy to Travis
2015-12-27 10:40:04 +02:00
Joshua Harlow
95e1ccea3c
Merge pull request #18 from harlowja/add-nice-links
...
Add useful link to locking blog
2015-12-13 12:06:46 -08:00
Joshua Harlow
0797b37095
Add useful link to locking blog
2015-12-13 12:04:17 -08:00
Joshua Harlow
4641f5bdd8
Merge pull request #17 from harlowja/pathlib-and-fsencode
...
Canonicalize paths before using them further
2015-12-13 11:57:24 -08:00
Joshua Harlow
25541c89bf
Canonicalize paths before using them further
...
Convert/normalize path types before further usage
and attempt to translate non-string objects so that
they can be used correctly in further interprocess
locking code.
Fixes issue #16
2015-12-09 23:16:03 -08:00
Yuval Greenfield
ab56d2029f
Added a code sample
...
I have not tested this change, I apologize for that.
2015-11-13 11:38:27 -08:00
Joshua Harlow
0417e414a4
Fix version.py file to reflect reality
2015-11-12 22:46:46 -08:00
Joshua Harlow
f842cd6cb2
0.14.0 version update
2015-11-12 22:42:36 -08:00
Joshua Harlow
ead0eb0ef4
Update changelog with fixed issue
2015-11-12 22:40:28 -08:00
Joshua Harlow
ef6911a996
Merge pull request #13 from ubershmekel/patch-1
...
Avoid breaking with local relative paths
2015-11-12 17:56:32 -08:00
Yuval Greenfield
00dad4c41b
Avoid breaking with local relative paths
...
A fix for https://github.com/harlowja/fasteners/issues/12
2015-11-12 17:39:02 -08:00
Joshua Harlow
95facb4558
Allow providing a custom logger to process lock class
2015-09-23 22:07:33 -07:00
Joshua Harlow
890485e18e
Allow providing a custom exception logger to 'locked' decorator
2015-09-23 21:49:46 -07:00
Joshua Harlow
69a6a52591
Use a readers dict instead of a deque
2015-08-31 17:18:08 -07:00
Joshua Harlow
c055890c98
Release 0.13
2015-08-22 07:28:28 -07:00
Joshua Harlow
25db657c04
Merge pull request #8 from novel/bsdmakedirs
...
Fix _ensure_tree on FreeBSD
2015-08-15 13:55:10 -07:00
Roman Bogorodskiy
ccdd728a48
Fix _ensure_tree on FreeBSD
...
On FreeBSD os.makedirs sets errno to EISDIR instead of EEXiSTS
when a directory exists already, so handle this case instead of
raising and excpetion.
2015-08-15 08:40:25 +03:00
Joshua Harlow
7e1babac4d
Add docstring to specific lock kinds
2015-06-19 16:49:15 -07:00
Joshua Harlow
83152bc303
Avoid lock on 'owner' since its only doing simple reads
2015-06-19 15:29:30 -07:00
Joshua Harlow
7ada7f6baa
Release 0.12.0
2015-06-19 12:17:25 -07:00
Joshua Harlow
dc8745880a
Ensure retry delay respects watch leftover time/timeout
2015-06-18 08:38:55 -07:00
Joshua Harlow
a8a7ba63e8
Update 'ChangeLog' with retry _util class additions
2015-06-18 08:29:56 -07:00
Joshua Harlow
857b24b515
Remove extranous comma
2015-06-16 23:51:20 -07:00
Joshua Harlow
20af3ceffb
Add and use a small retry helper utility object
2015-06-16 23:50:36 -07:00