Skip to content

Commit b9332e9

Browse files
authored
Pre-release preparations (#38)
1 parent db0c710 commit b9332e9

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.github/workflows/wheel-builds.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,29 @@ jobs:
3030
run: |
3131
python -m pip install cibuildwheel==1.10.0
3232
33-
- name: Build wheel
33+
- name: Build sdist
34+
run: |
35+
python setup.py sdist
36+
37+
- name: Build wheels
3438
run: |
3539
python --version
36-
python -m cibuildwheel --output-dir wheelhouse
40+
python -m cibuildwheel --output-dir dist
3741
3842
- uses: actions/upload-artifact@v1
3943
with:
4044
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 }}

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ Encoding of JPEG 2000 images is not currently supported
5555
from pydicom import dcmread
5656
from pydicom.data import get_testdata_file
5757

58-
import pylibjpeg
59-
6058
ds = dcmread(get_testdata_file('JPEG2000.dcm'))
6159
arr = ds.pixel_array
6260
```
@@ -73,4 +71,7 @@ from openjpeg import decode
7371
with open('filename.j2k', 'rb') as f:
7472
# Returns a numpy array
7573
arr = decode(f)
74+
75+
# Or simply...
76+
arr = decode('filename.j2k')
7677
```

openjpeg/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55

6-
__version__ = '1.1.0.dev0'
6+
__version__ = '1.0.2'
77

88

99
VERSION_PATTERN = r"""

0 commit comments

Comments
 (0)