Skip to content

Commit de22cdf

Browse files
authored
Take version info from pyproject.toml (#24)
1 parent 3378438 commit de22cdf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

jpeg_ls/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from importlib.metadata import version
12
import logging
23

34
from .CharLS import (
@@ -16,7 +17,7 @@
1617
from _CharLS import decode_from_buffer # noqa: F401
1718

1819

19-
__version__ = "1.3.0"
20+
__version__: str = version("pyjpegls")
2021

2122

2223
# Setup default logging

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ license = {text = "MIT"}
3333
name = "pyjpegls"
3434
readme = "readme.md"
3535
requires-python = ">=3.9"
36-
version = "1.5.0"
36+
version = "1.5.1"
3737

3838
[project.urls]
3939
documentation = "https://pydicom.github.io/pydicom"

0 commit comments

Comments
 (0)