File tree Expand file tree Collapse file tree 5 files changed +21
-7
lines changed Expand file tree Collapse file tree 5 files changed +21
-7
lines changed Original file line number Diff line number Diff line change
1
+ environment :
2
+ matrix :
3
+ - PYTHON : " C:\\ Python37"
4
+
5
+ build : off
6
+ install :
7
+ - " %PYTHON%\\ python.exe -m pip install --upgrade pip setuptools"
8
+ - " %PYTHON%\\ python.exe -m pip install --upgrade --editable .[dev]"
9
+ test_script :
10
+ - " %PYTHON%\\ python.exe -m pytest -vvv --exitfirst tests/ --cov-fail-under 100 --cov src --cov tests"
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ Changelog
6
6
Next
7
7
----
8
8
9
+ * Add Windows support.
10
+
9
11
2019.11.23.0
10
12
------------
11
13
Original file line number Diff line number Diff line change 1
1
VWS-Auth-Tools == 2019.12.28.3
2
+ func-timeout == 4.3.5
2
3
requests == 2.23.0
3
- timeout-decorator == 0.4.1
4
4
urllib3 == 1.25.8
Original file line number Diff line number Diff line change 1
1
[check-manifest]
2
2
ignore =
3
3
*.enc
4
+ .appveyor.yml
4
5
.coveragerc
5
6
.isort.cfg
6
7
.markdownlint.json
Original file line number Diff line number Diff line change 11
11
from urllib .parse import urljoin
12
12
13
13
import requests
14
+ from func_timeout import func_set_timeout
15
+ from func_timeout .exceptions import FunctionTimedOut
14
16
from requests import Response
15
- from timeout_decorator import timeout
16
17
from vws_auth_tools import authorization_header , rfc_1123_date
17
18
18
19
from vws ._result_codes import raise_for_result_code
@@ -321,17 +322,17 @@ def wait_for_target_processed(
321
322
time sent to Vuforia.
322
323
"""
323
324
324
- @timeout (
325
- seconds = timeout_seconds ,
326
- timeout_exception = TargetProcessingTimeout ,
327
- )
325
+ @func_set_timeout (timeout = timeout_seconds )
328
326
def decorated () -> None :
329
327
self ._wait_for_target_processed (
330
328
target_id = target_id ,
331
329
seconds_between_requests = seconds_between_requests ,
332
330
)
333
331
334
- decorated ()
332
+ try :
333
+ decorated ()
334
+ except FunctionTimedOut :
335
+ raise TargetProcessingTimeout
335
336
336
337
def list_targets (self ) -> List [str ]:
337
338
"""
You can’t perform that action at this time.
0 commit comments