File tree 3 files changed +24
-6
lines changed
3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,29 @@ jobs:
30
30
run : |
31
31
python -m pip install cibuildwheel==1.10.0
32
32
33
- - name : Build wheel
33
+ - name : Build sdist
34
+ run : |
35
+ python setup.py sdist
36
+
37
+ - name : Build wheels
34
38
run : |
35
39
python --version
36
- python -m cibuildwheel --output-dir wheelhouse
40
+ python -m cibuildwheel --output-dir dist
37
41
38
42
- uses : actions/upload-artifact@v1
39
43
with :
40
44
name : wheels
41
- path : ./wheelhouse
45
+ path : ./dist
46
+
47
+ # - name: Publish package to Test PyPi
48
+ # uses: pypa/gh-action-pypi-publish@master
49
+ # with:
50
+ # user: __token__
51
+ # password: ${{ secrets.TEST_PYPI_PASSWORD }}
52
+ # repository_url: https://test.pypi.org/legacy/
53
+
54
+ - name : Publish package to PyPi
55
+ uses : pypa/gh-action-pypi-publish@release/v1
56
+ with :
57
+ user : __token__
58
+ password : ${{ secrets.PYPI_PASSWORD }}
Original file line number Diff line number Diff line change @@ -55,8 +55,6 @@ Encoding of JPEG 2000 images is not currently supported
55
55
from pydicom import dcmread
56
56
from pydicom.data import get_testdata_file
57
57
58
- import pylibjpeg
59
-
60
58
ds = dcmread(get_testdata_file(' JPEG2000.dcm' ))
61
59
arr = ds.pixel_array
62
60
```
@@ -73,4 +71,7 @@ from openjpeg import decode
73
71
with open (' filename.j2k' , ' rb' ) as f:
74
72
# Returns a numpy array
75
73
arr = decode(f)
74
+
75
+ # Or simply...
76
+ arr = decode(' filename.j2k' )
76
77
```
Original file line number Diff line number Diff line change 3
3
import re
4
4
5
5
6
- __version__ = '1.1.0.dev0 '
6
+ __version__ = '1.0.2 '
7
7
8
8
9
9
VERSION_PATTERN = r"""
You can’t perform that action at this time.
0 commit comments