Skip to content

Commit 36945bd

Browse files
authored
Cleanup package and re-add Python 3.6 support (#41)
1 parent c13764a commit 36945bd

File tree

12 files changed

+52
-381
lines changed

12 files changed

+52
-381
lines changed

.github/workflows/pytest-builds.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: [3.7, 3.8, 3.9]
15+
python-version: [3.6, 3.7, 3.8, 3.9]
1616
arch: ['x64', 'x86']
1717

1818
steps:
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Install pydicom release and rerun pytest
4141
run: |
42-
pip install pydicom
42+
pip install pydicom pylibjpeg
4343
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
4444
4545
osx:
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Install pydicom release and rerun pytest
7676
run: |
77-
pip install pydicom
77+
pip install pydicom pylibjpeg
7878
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
7979
8080
ubuntu:
@@ -109,7 +109,7 @@ jobs:
109109
110110
- name: Install pydicom release and rerun pytest
111111
run: |
112-
pip install pydicom
112+
pip install pydicom pylibjpeg
113113
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
114114
115115
- name: Switch to pydicom dev and rerun pytest

.github/workflows/release-wheels.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
name: Build wheels for ${{ matrix.os }}
1010
runs-on: ${{ matrix.os }}
1111
env:
12-
CIBW_BUILD: "cp37-* cp38-* cp39-*"
12+
CIBW_BUILD: "cp3*-*"
13+
CIBW_SKIP: "cp35-*"
1314
strategy:
1415
matrix:
1516
os: [ubuntu-latest, windows-latest, macos-latest]
@@ -36,12 +37,12 @@ jobs:
3637
- name: Build wheels
3738
run: |
3839
python --version
39-
python -m cibuildwheel --output-dir wheelhouse
40+
python -m cibuildwheel --output-dir dist
4041
4142
- uses: actions/upload-artifact@v2
4243
with:
4344
name: wheels
44-
path: ./wheelhouse
45+
path: ./dist
4546

4647
# The pypi upload fails with non-linux containers, so grab the uploaded
4748
# artifacts and run using those

docs/changes/v1.1.1.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _v1.1.1:
2+
3+
1.1.1
4+
=====
5+
6+
Changes
7+
.......
8+
9+
* Re-added support for Python 3.6

openjpeg/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Set package shortcuts."""
22

3-
from ._config import DICOM_ENCODERS, DICOM_DECODERS
43
from ._version import __version__
54
from .utils import decode, decode_pixel_data, get_parameters

openjpeg/_config.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

openjpeg/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55

6-
__version__ = '1.2.0.dev0'
6+
__version__ = '1.1.1'
77

88

99
VERSION_PATTERN = r"""

openjpeg/tests/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Required
1010

1111
Optional
1212
........
13+
[pylibjpeg](https://github.com/pydicom/pylibjpeg)
1314
[pydicom](https://github.com/pydicom/pydicom)

openjpeg/tests/__init__.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import sys
22

3-
try:
4-
from . import pydicom_handler as handler
5-
except ImportError:
6-
pass
7-
83
# Add the testing data to openjpeg (if available)
94
try:
105
import ljdata as _data
@@ -13,29 +8,3 @@
138
sys.modules['openjpeg.data'] = _data
149
except ImportError:
1510
pass
16-
17-
18-
def add_handler():
19-
"""Add the pixel data handler to *pydicom*.
20-
Raises
21-
------
22-
ImportError
23-
If *pydicom* is not available.
24-
"""
25-
import pydicom.config
26-
27-
if handler not in pydicom.config.pixel_data_handlers:
28-
pydicom.config.pixel_data_handlers.append(handler)
29-
30-
31-
def remove_handler():
32-
"""Remove the pixel data handler from *pydicom*.
33-
Raises
34-
------
35-
ImportError
36-
If *pydicom* is not available.
37-
"""
38-
import pydicom.config
39-
40-
if handler in pydicom.config.pixel_data_handlers:
41-
pydicom.config.pixel_data_handlers.remove(handler)

openjpeg/tests/pydicom_handler.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)