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 44 push :
55 branches : [ master ]
66 pull_request :
7- branches : [ master ]
87
98jobs :
109 ubuntu :
@@ -29,12 +28,17 @@ jobs:
2928 python -m pip install .
3029 python -m pip uninstall -y pylibjpeg-openjpeg
3130 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
3332
3433 - name : Run pytest with no plugins
3534 run : |
3635 pytest --cov=pylibjpeg --cov-append
3736
37+ - name : Rerun pytest with pydicom and no plugins
38+ run : |
39+ pip install pydicom
40+ pytest --cov=pylibjpeg --cov-append
41+
3842 - name : Rerun pytest with -lj plugin
3943 run : |
4044
Original file line number Diff line number Diff line change @@ -27,8 +27,14 @@ def debug_logger():
2727
2828try :
2929 import pydicom
30- add_handler ()
3130 _logger .debug ('pydicom module loaded' )
3231 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+
3339except ImportError :
3440 pass
Original file line number Diff line number Diff line change 33import re
44
55
6- __version__ = '1.1.0 '
6+ __version__ = '1.1.1 '
77
88
99VERSION_PATTERN = r"""
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ def test_get_pixeldata_no_lj_syntax(self):
7272 handler .get_pixeldata (ds )
7373
7474
75+ @pytest .mark .skipif (not HAS_PYDICOM , reason = "No pydicom" )
7576class TestPlugins (object ):
7677 """Test interaction with plugins."""
7778 @pytest .mark .skipif (not RUN_JPEG , reason = "No JPEG plugin" )
Original file line number Diff line number Diff line change 11[bdist_wheel]
2- universal = 1
2+ universal = 0
You can’t perform that action at this time.
0 commit comments