Skip to content

Commit

Permalink
Make rle and openjpeg requirements optional (#66)
Browse files Browse the repository at this point in the history
* Make rle and openjpeg requirements optional
* Update version and add release note
* Fix package name in module docstring
  • Loading branch information
hackermd authored Jan 4, 2022
1 parent a539187 commit 68455e3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ A Python 3.6+ framework for decoding JPEG images and decoding/encoding RLE datas
pip install pylibjpeg
```

##### Installing extra requirements

The package can be installed with extra requirements `openjpeg` or `rle` to enable support for JPEG-2000 and Run-Length Encoding (RLE), respectively:

```
pip install pylibjpeg[openjpeg,rle]
```

#### Installing the development version

Make sure [Git](https://git-scm.com/) is installed, then
Expand Down
6 changes: 6 additions & 0 deletions docs/release_notes/v1.4.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _v1.4.0:

1.4.0
=====

* Made pylibjpeg-openjpeg and pylibjpeg-rle dependencies optional (using `extras_require`)
4 changes: 2 additions & 2 deletions pylibjpeg/_version.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Version information for pynetdicom based on PEP396 and 440."""
"""Version information for pylibjpeg based on PEP396 and 440."""

import re


__version__ = '1.3.0'
__version__ = '1.4.0'


VERSION_PATTERN = r"""
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
"Topic :: Software Development :: Libraries",
],
packages = find_packages(),
install_requires = ['numpy', 'pylibjpeg-openjpeg', 'pylibjpeg-rle'],
extras_require = {
'rle': ['pylibjpeg-rle'],
'openjpeg': ['pylibjpeg-openjpeg']
},
install_requires = ['numpy'],
include_package_data = True,
zip_safe = False,
python_requires = ">=3.6",
Expand Down

0 comments on commit 68455e3

Please sign in to comment.