diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f3732d..9e6f014 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog +## 2.4.1 (2023-07-19) + +### Fixed + - Import error when using `create_api` outside a REPL (see [#85](https://github.com/AlexandreDecan/portion/issues/85)). + + + ## 2.4.0 (2023-03-13) ### Added diff --git a/portion/api.py b/portion/api.py index 1f57648..963aa7c 100644 --- a/portion/api.py +++ b/portion/api.py @@ -1,5 +1,6 @@ import functools import importlib +import importlib.util from .const import Bound, inf from .func import iterate, open, closed, openclosed, closedopen, empty, singleton diff --git a/setup.py b/setup.py index 2d1fb65..474c1f6 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="portion", - version="2.4.0", + version="2.4.1", license="LGPLv3", author="Alexandre Decan", url="https://github.com/AlexandreDecan/portion",