File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [ master ]
6
6
pull_request :
7
- branches : [ master ]
8
7
9
8
jobs :
10
9
ubuntu :
@@ -29,12 +28,17 @@ jobs:
29
28
python -m pip install .
30
29
python -m pip uninstall -y pylibjpeg-openjpeg
31
30
python -m pip install git+https://github.com/pydicom/pylibjpeg-data
32
- python -m pip install pytest coverage pytest-cov pydicom
31
+ python -m pip install pytest coverage pytest-cov
33
32
34
33
- name : Run pytest with no plugins
35
34
run : |
36
35
pytest --cov=pylibjpeg --cov-append
37
36
37
+ - name : Rerun pytest with pydicom and no plugins
38
+ run : |
39
+ pip install pydicom
40
+ pytest --cov=pylibjpeg --cov-append
41
+
38
42
- name : Rerun pytest with -lj plugin
39
43
run : |
40
44
Original file line number Diff line number Diff line change @@ -27,8 +27,14 @@ def debug_logger():
27
27
28
28
try :
29
29
import pydicom
30
- add_handler ()
31
30
_logger .debug ('pydicom module loaded' )
32
31
from pylibjpeg .pydicom .utils import generate_frames
32
+
33
+ # We only add a handler if pydicom doesn't already have one
34
+ try :
35
+ import pydicom .pixel_data_handlers .pylibjpeg_handler
36
+ except ImportError :
37
+ add_handler ()
38
+
33
39
except ImportError :
34
40
pass
Original file line number Diff line number Diff line change 3
3
import re
4
4
5
5
6
- __version__ = '1.1.0 '
6
+ __version__ = '1.1.1 '
7
7
8
8
9
9
VERSION_PATTERN = r"""
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ def test_get_pixeldata_no_lj_syntax(self):
72
72
handler .get_pixeldata (ds )
73
73
74
74
75
+ @pytest .mark .skipif (not HAS_PYDICOM , reason = "No pydicom" )
75
76
class TestPlugins (object ):
76
77
"""Test interaction with plugins."""
77
78
@pytest .mark .skipif (not RUN_JPEG , reason = "No JPEG plugin" )
Original file line number Diff line number Diff line change 1
1
[bdist_wheel]
2
- universal = 1
2
+ universal = 0
You can’t perform that action at this time.
0 commit comments